Max value on auto scaled chart axis

n0gel

Board Regular
Joined
Mar 7, 2005
Messages
177
Hello forum. I'm trying to find a way to read the maximum value displayed on an auto scaling chart. It's the primary horizontal axis and it's in currency. I'm thinking some vba code that will paste the maximum value into a cell so I can work with it. The axis is set so values are displayed every $10,000, so the maximum value will always be a multiple of 10,000. Thanks for any help you can offer.

Edit: I'm using Office 2007 on an XP machine
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Can you derive this by looking at the maximum value in your data, and not directly looking at the chart scale ?

For example, if your chart series data is in the range a1:a100....
Code:
=roundup(max(a1:a100),-4)
will find the maximum value, and round it UP to the nearest 10,000.
 
Upvote 0
Thanks Gerald, I have put together a formula that guesses what the chart will do. I didn't use the function you suggested but I got there.
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,600
Members
452,927
Latest member
whitfieldcraig

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