Chart label in round figures

mandukes

Forum Rules
Joined
May 25, 2013
Messages
90
Hi please have a look at the screen short of the following chart.


What I need is to make labels in round figures so that it may not show up messy and overlapping each other.

f1d6b584b1c5ca7385fafe12f3432325.png




Any suggestion would be appreciated.
Thanks


EDIT : Rounding the cell ( column) does not have any effect on labels figures.
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If you have chosen the "Add Values From Cell" feature then the format should follow that of the linked cells so you can just format those the way you want or you can select the labels and edit the number format in the chart formatting wizard

in any case, you do not need to label each data point in your series, try to label only those that have some kind of relevance or that according to you should stand out
 
Upvote 0
Hi, this chart is created using vba, I need the vba code that would do the same, I want it to round off the values to 2 decimal places without affecting the cell values.

Thanks.


If you have chosen the "Add Values From Cell" feature then the format should follow that of the linked cells so you can just format those the way you want or you can select the labels and edit the number format in the chart formatting wizard

in any case, you do not need to label each data point in your series, try to label only those that have some kind of relevance or that according to you should stand out
 
Upvote 0
Hi please have a look at the screen short of the following chart.


What I need is to make labels in round figures so that it may not show up messy and overlapping each other.

f1d6b584b1c5ca7385fafe12f3432325.png




Any suggestion would be appreciated.
Thanks


EDIT : Rounding the cell ( column) does not have any effect on labels figures.

Hey Mandukes,

This might help you. Just make sure the chart is named "Hydraulic Gradient Line" for example

Sub Format_Labels()


ActiveSheet.ChartObjects("Hydraulic Gradient Line").Activate
ActiveChart.FullSeriesCollection("Hydraulic Gradient Line").DataLabels.Select
Selection.NumberFormat = "#,##0"
ActiveChart.FullSeriesCollection("Ground Level").DataLabels.Select
Selection.NumberFormat = "#,##0"

End Sub
 
Upvote 0
Hey there Steven,

Thank you so much for your solution :)

I have one more question, is it possible to add additional range value in the same graph points?

For example in the second plot (1, 107.6) (8, 107.6) (7,105.6).. so on

instead of the first figures 1,8,7, i need to plot data from a different range : 300, 250,250... so on

So the result should be (300, 107.6) (250, 107.6) (250,105.6).. so on

Regards,
~M
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top