Dynamic chart range

Peter Davison

Active Member
Joined
Jun 4, 2020
Messages
437
Office Version
  1. 365
Platform
  1. Windows
So back to the Chart.
I have data as below Excel Cells/Rows FA4 to (HZ9 - Random Column)
As there could be any number of stores (e.g. S011) at any time I wanted to make it dynamic.
I am using the following Offset and Counta as a named range (one for each row)
=OFFSET(Dashboard!$FA$6,0,0,COUNTA(Dashboard!$6:$6))
I'm sure I have the offset wrong, any help would be appreciated.
Thanks
TotalTotalS011S011S011S027S027S027
Value%Wastage%Value%LMtr%Wastage%Value%LMtr%Wastage%
Ambient31%10%27%42%8%34%46%10%
Confection4%0%4%9%1%4%6%0%
Drinks23%5%24%19%5%22%22%38%
Perishables39%81%40%30%75%39%27%51%
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I've moved this to its own thread as it was unrelated to your previous question.

I'm not clear what you want your formula to do. You're using COUNTA on an entire row, but using it to as the number of rows, not columns, that your range should include.
 
Upvote 0
Can I ask a Question on This Thread if its Related? I have a dynamic Chart using:

=OFFSET(Sheetname!$C$2,COUNT(Sheetname!$C:$C),0,-13,1)

This gets the last 12 months of data from column C. works great!

Is there a formula that I can get the previous 12 months? so I can make another chart that compares both years?
 
Upvote 0
Subtract 12 from the result of the COUNT formula.
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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