How can we display the records through chart on excel sheet

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

How can we display the records through chart on excel sheet

Post by prince »

Hello Sir, Will you please tell me the macro code to display marks through Column Chart on Feedback Report sheet of attached file.
Thanks & regards,
Prince
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

What do you mean by "display marks through Column Chart"?
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

Sir when i drag the complete record ( Group of 34 Rows ) then during drag the chart marks display the record of 1st student only . it doesn't change according to the record wise.

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: How can we display the records through chat on excel she

Post by Rudi »

You can use the same macro as in Hans's link, except:

Change this line:

Code: Select all

Set rgA = Range("B" & r - 4 & ":C" & r - 2)
To this line:

Code: Select all

Set rgA = Range("B" & r - 9 & ":D" & r - 2)
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

Its working Mr. Rudi, Its working , but column lines on some records are not showing accurate level of lines.
like Maximum & Obtained marks are equal but the level of line are differ so much.
Regards,
Prince

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

For AmanPreet Kaur, the obtained marks for English is 9.5 but since you don't display the decimal, this is displayed as 10. The chart column represents 9.5 though, so it is less tall than the maximum marks column.
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

Right Mr. Hans. Thank You Sir.

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

Perhaps you should display the obtained marks with 1 decimal place. That would make it clearer.
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

Sir i have done it. Will you please tell me Column E Remarks column with obtained marks why its not showing proper remarks ?
Thanks & regard
Prince

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

Same problem. Your formulas don't take marks such as 9.5 into account: 9.5 is not equal to 10, 9, 8, etc., so the formula returns the remark for a very low score.
What do you want to display if the obtained mark is 9.5, or 8.5, or 7.5 etc.?
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

I got your point Sir.
Thank you so much

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

Mr. HansV I'm trying to change the number format in format option on sheet1 , but why is not showing effect & showing auto round off numbers.
Regards,
Prince

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

That is because of the conditional formatting that you have applied. If you remove the conditional formatting rule with formula =COUNTIF($A4:$I4,"")<9, you'll see the decimals.
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

ok Mr. HansV , But i want both on same workbook. Is this possible ?
Regards,
Prince

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

Sorry, I don't understand your question. What do you mean?
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chat on excel she

Post by prince »

Sir, I want auto border of cells with decimal value. Is this possible?

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How can we display the records through chat on excel she

Post by HansV »

See the attached version.

I have corrected the formulas and conditional formatting. There is only one conditional formatting rule now instead of many.
send file.xlsx
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

prince
2StarLounger
Posts: 171
Joined: 02 Mar 2015, 17:00

Re: How can we display the records through chart on excel sh

Post by prince »

Its working exactly as i want. Thank You Mr. HansV.
Regards,
Prince