Charts - Using a variable to set Min/Max Axis Values

fjaffe

New Member
Joined
Sep 17, 2008
Messages
1
I'm sure this is either easy or impossible. My level of skill is good with Excel, very low with VBA. I'd like to create a chart, and use a variable or name to flexibly set the minimum and maximum values for the X and/or Y axis. When I try, I get an error message that says "Your entry can not be used, an integer or decimal number may be required."
The application is a bowling league. Team members may have scores between zero and three hundred. In order to maximize the use of space, I'd like to set the minimum value of the axis to 10 pins less than the lowest score (season to date), and the maximum value to 10 pins greater than the highest score to date. Finding these scores is, of course easy. Getting the axis to set the min and max values is the part I can't seem to make happen.
I haven't tried using VBA to do this, cause I'm pretty much VBA clueless. Is there, in fact, any way to do this in straight excel? If not, can anyone point me to a VBA example I can crib from? My google-fu failed me. Thanks in advance!!!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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