Admiral Elm
New Member
- Joined
- May 31, 2013
- Messages
- 2
Hello, longtime lurker, first-time poster here. I didn't happen to see any topics that directly mentioned this, but I apologize if I missed it.
My question is: if I'm populating a chart series with an array formula rather than a range, how do I have missing data points be charted as gaps? It's obvious when I use a range as a series data source, but not with an array.
I know the quick answer is "just use a range instead of an array", but in my current situation, it's preferable to not use ranges.
It's quite easy to replicate this:
Here's the problem: Excel charts this as a straight line from (1,1) to (5,5), despite there being no values for 3.
I tried going into the "Select Data" dialog's "Hidden and Empty Cell Settings" and changing the options; I figured "Connect data points with line" was chosen, but it actually wasn't. In fact, Excel seems to ignore this option completely for array formulas.
I tried entering this, but it's invalid:
And adding something like this just results in the missing position being converted to 0:
I'm using Excel 2013 on Windows 7, but this problem also occurs in Excel 2010.
Any ideas are appreciated. Thank you.
My question is: if I'm populating a chart series with an array formula rather than a range, how do I have missing data points be charted as gaps? It's obvious when I use a range as a series data source, but not with an array.
I know the quick answer is "just use a range instead of an array", but in my current situation, it's preferable to not use ranges.
It's quite easy to replicate this:
- Add a new 2D line chart
- Choose "Select Data" for the chart (either via right-click or the ribbon)
- Click "Add"
- Under "Series Values", type this and hit OK:
Code:={1,2,#N/A,4,5}
Here's the problem: Excel charts this as a straight line from (1,1) to (5,5), despite there being no values for 3.
I tried going into the "Select Data" dialog's "Hidden and Empty Cell Settings" and changing the options; I figured "Connect data points with line" was chosen, but it actually wasn't. In fact, Excel seems to ignore this option completely for array formulas.
I tried entering this, but it's invalid:
Code:
={1,2,,4,5}
And adding something like this just results in the missing position being converted to 0:
Code:
={1,2,"",4,5}
I'm using Excel 2013 on Windows 7, but this problem also occurs in Excel 2010.
Any ideas are appreciated. Thank you.