Y axis on line chart with non fixed data set (number of decimals differs every time)

calabresino

New Member
Joined
Feb 6, 2013
Messages
2
Hi there,​

I am trying to build a line chart which is based on a data set which will move over the time.

Basically, sometimes my source data will have 4 decimals, sometimes 3, sometimes 2, etc.

For example, on a set of data which will have a minimum of 1.3012 and a maximum of 1.4512, I would like an axis which goes from 1.30 to 1.4550.

Another example would be, if my data goes from 127.1 to 145.7, I want an axis going from 127 to 146.

My issue here is that the rule is not universal regarding the number of decimals. So first, I would say that I need a formula identifying the scenario (number of decimals) and then how I would like to round my extreme points (rounddown for minimum of the axis / roundup for max?)

Any help / thoughts would be much appreciated!

Thanks in advance​
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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