Expanding and Contracting chart range doesn't save in Excel 2007

Shortmeister1

Board Regular
Joined
Feb 19, 2008
Messages
204
Office Version
  1. 365
  2. 2016
  3. 2013
  4. 2010
  5. 2007
  6. 2003 or older
Platform
  1. Windows
Hi

I've hit a strange problem that I think should work, but doesn't.

My chart data range is: ='Summary Data'!$A$2:$BF$8.

Since it expands a few times a week to BG, BH, BI etc., it seemed to make sense to use the standard OFFSET and COUNTA formulae to expand it. The every time I typed the Offset formula in, it worked but each time I save it, it changes to an updated (correct) fixed reference. i.e. back to the format above.

Am I doing something wrong? Many threads I've read seem to say that you should be able to use an expanding range in charting.

Thanks
Martin
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Thanks for responding - appreciated.

Hmmm. Exactly the same problem.

I think I'm just going to have to write some code. Weird though. It shouldn't do this. :(

Cheers
Martin
 
Upvote 0
Hi Derek

Thanks - you started me on a voyage of discovery.

Solution? - No VBA*.
No Dynamic Offsets for Dynamic Named Ranges.

I used the "Table" functionality introduced to Excel 2007. It integrates perfectly with the Chart dialog boxes.

*I did actually use one bit of code as a one off. This was to name the table to something a little bit more meaningful for me.

Code:
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:$D$5"), , xlYes).Name = "tblSummary"

Cheers
Martin
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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