Broken line in line graph when formula is NA

jasoncyrus

New Member
Joined
Jul 20, 2017
Messages
2
Hello,

I am using excel 2010.

What I want to do is show a dotted or broken line to automatically be displayed in my line chart if the formula in the cell is NA. So I might have something like 100%, 90%, 95%, NA, 100%.

It would be great if there was a regular line and then from 95% to NA to 100%, there would be a broken line to show that there is no data for that month.

Any help is much appreciated.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
you could create a second data line that you would show in the background, so that the dotted line is modelled in between the missing values
 
Upvote 0
Problem is, the NA() doesn't leave a gap, it ends up with a line connecting the points on either side.

This whole thing, with #N/A, and blank cells and non-blank cells that look blank, and gaps in the chart, is all too complicated and misunderstood. I wrote a tutorial on my blog, Mind the Gap – Charting Empty Cells, and I hosted a follow-up post, Another approach to plotting gaps in Excel charts. You could read these to get a sense of the problem and maybe find a workaround.

Then once you figure it out, you can combine the approach that leaves a gap with mole999's suggestion to plot a second series first with the dotted line you want to appear where the gap is.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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