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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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