Sparkline Dynamic Range

leeshan

New Member
Joined
Jan 27, 2013
Messages
24
i want to do a sparkline for a dynamic range of data. means whenever i add the data, the sparkline will grow automatically. i tried using the offset formula as shown,
=OFFSET(H9,0,0,1,COUNTA(H9:Q9))

But, when i paste this into the sparkline data source, i keep getting the "Data source refrence is not valid".
Any idea where went wrong?

Thanks!
 
there is blank cell if and only if the data of the month is not available yet. For example, now is march i will only have data until march, frm april to dec will be blank.
Thanks!!
 
Upvote 0
in sheet2 ( the tab that i want to lookup the sparkline), i click on the cell and insert sparkline again then use the one as the data source or?
 
Upvote 0
when i define the name to the formula, everything still fine. But when i insert the sparkline and use the name as the source, i check where the source it refers to, it has changed!! Any idea why this happen? The name refers to the correct source but the problems come after i insert the sparkline.
Thanks a lot.
 
Upvote 0
Sorry, I'm not sure what you mean. But I do see that my name definition was wrong. It should be:

=OFFSET(Sheet1!$A$2,0,MATCH(Sheet2!$A$1,Sheet1!$1:$1,FALSE)-1,1,4)
 
Upvote 0

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