Reference problem with chart when offset and count reduces the max columns to less

Peter Davison

Active Member
Joined
Jun 4, 2020
Messages
437
Office Version
  1. 365
Platform
  1. Windows
I have the cells below all formulas.
I've used the following named range - =OFFSET($DA$7,0,0,COUNTA($DA$7:$DA$100),MAX(DB5:DK5)+1)
The chart displays correct and file saves okay
Once the number of clusters data changes to less than 10 columns (Second Picture Below 6 clusters), the chart still displays correctly but when the file is saved the reference error message appears. (Below)
I know it must be something to do with the formulas in the blank cells, because if I delete the formulas from the clusters 7 to 10 the problem goes away.

Any help would be really appreciated.

1684912746399.png


This is the formula in each of the Cluster 1 to 10 cells for rows 8 to 100 (A bit of a long one I know)

=IFERROR(IF(OR($DA8="",DB$5=""),"",
(SUMIFS($Z$7:$Z$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)/SUMIFS($Z$7:$Z$4998,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)*$Z$3+
SUMIFS($AA$7:$AA$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)/SUMIFS($AA$7:$AA$4998,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)*$AA$3+
SUMIFS($AB$7:$AB$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)/SUMIFS($AB$7:$AB$4998,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)*$AB$3+
SUMIFS($AC$7:$AC$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)/SUMIFS($AC$7:$AC$4998,INDEX($A$7:$BR$4998,,MATCH($DA$5,$A$7:$BR$7,0)),"="&DB$5)*$AC$3)/
(SUMIFS($Z$7:$Z$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8)/SUM($Z$7:$Z$4998)*$Z$3+
SUMIFS($AA$7:$AA$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8)/SUM($AA$7:$AA$4998)*$AA$3+
SUMIFS($AB$7:$AB$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8)/SUM($AB$7:$AB$4998)*$AB$3+
SUMIFS($AC$7:$AC$4998,INDEX($A$7:$BR$4998,,MATCH($DA$6,$A$7:$BR$7,0)),"="&$DA8)/SUM($AC$7:$AC$4998)*$AC$3)*100),"")

1684912299387.png


1684912855738.png


1684912541619.png


1684912810181.png
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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