Dynamic chart range not displaying all Horizontal Axis Labels

Peter Davison

Active Member
Joined
Jun 4, 2020
Messages
451
Office Version
  1. 365
Platform
  1. Windows
I have created a chart from data in Cells DR5 to DY7 - Although the DY7 could be more columns which is why I am trying to make it dynamic (see below)
I am using this Named Range called - Numberofstores
=IFERROR(OFFSET(Assortment!$DR$5:$EZ$7,0,0,3,COUNT(Assortment!$DR$5:$EZ$5)*1),"")
but as you can see it is still only displaying the one line (Row 5).
I don't think I have the named range formula correct.
Any help would be appreciated.

1707741213788.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try removing the IFERROR function.
 
Upvote 0
When I remove the iferror I get the result but not horizontally, any thoughts? (See below)

1707746360464.png
 
Upvote 0
I am struggling to replicate that. Any chance you can post a workbook somewhere (with suitably anonymised data) that I can have a look at? I can only assume it's something particular to the chart you have set up.
 
Upvote 0
It's really strange because when I create a new chart with values and not formals driving Rows 5 to 7 it works perfectly with -=OFFSET(Sheet1!$DR$5:$EZ$7,0,0,3,COUNT(Sheet1!$DR$5:$EZ$5))
and the chart data looks like this -
1707749127317.png

But when I use same named range formula on my formularised rows 5-7 it looks like this -
1707749210607.png

which is why the figures are transposed on the chart.
I think its because Rows 5 to 7 are formulas but I cannot understand why it is transposing the figures.
Any thoughts why this should happen?
 
Upvote 0
Not offhand. What are the formulas? Are they dynamic arrays, or regular formulas in each cell?
 
Upvote 0
Rows 5 and 6 are regular formulas and Row 7 is a transpose array.
However, probably thinking like you may be, I tried to ignore row 7 and test just with standard formulas and it did the same thing.
The only time it worked was if I used values on the three rows.
Really strange never seen this before.
I appreciate your time with me on this.
 
Upvote 0
Works fine here with some simple formulas, so I think I'd have to see the workbook.
 
Upvote 0
Really odd.
It's a massive workbook with macros and links and client data, so difficult to send to you.
I'll have another look to see if I can spot what could be a problem.
Really do thank you for your time.
 
Upvote 0
Is it possible to cut it down to just the chart and its source data?
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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