Dynamic Named Ranges on Graphs referencing separate columns

scraffa

New Member
Joined
Jan 5, 2011
Messages
9
Ok, this is a little bit technical but I have always seemed to find a pro on these forums with some advice!

I'm making a graph whose x/y axis needs to auto-populate without any extra spaces. I've been using dynamic ranges in order to try and have it select down to the last non-blank entry.

I've got it working for text, however I can't get it working for numbers.

I need it to start on the second cell down of the A column for the text so I'm using this and it's working for my x Axis, which is job positions.
=OFFSET('Position'!$A$2,0,0,COUNTA(
'Position'!$A2:$A2500),1)
For my Y Axis I'm referencing a number that on the same spreadsheet as positions (but separate from the graph). Right now I'm using:
=OFFSET('Position'!$L$2,0,0,MATCH(1E+306,'Position'!$L2:$L2500,1),1)

Once I plug that range in for my Y axis, the whole thing messes up. Why is this? There is the same amount of entries in each column. Is there a way for me to just have it select the same amount of numbers as the amount of positions that I'm pulling? Maybe with a count statement or something.. So confused. Please help!

Thank you!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,213,487
Messages
6,113,938
Members
448,534
Latest member
benefuexx

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