Creating Graphs Without Blanks Showing As Zeroes

adambgoldstein

New Member
Joined
Jun 30, 2017
Messages
5
I am trying to create a line graph based on the months of the year and a percentage. The percentage is based off of a formula, so if the numbers that are part of the percentage are zero and zero (because the month hasn't happened yet) it comes up as "#DIV/0!". When I graph this information, any cell that is "#DIV/0" comes up as zero instead of not graphing at all. I have tried adding in a qualifier to make the cell " " when it divides zero by zero, but that still shows up as zero in the graph even though the cell shows up as a blank. Below is the data set I am working with. Once it gets to Jun, the line graph shows zero through Dec. Is there a way to have the graph not plot for non numbers? Thank you!
MonthPercent
Jan100%
Feb50%
Mar25%
Apr100%
May60%
Jun#DIV/0!
Jul#DIV/0!
Aug#DIV/0!
Sep#DIV/0!
Oct#DIV/0!
Nov#DIV/0!
Dec#DIV/0!

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
whats the formula you are using
 
Upvote 0
I'm just dividing two numbers. So, for Feb, it would be something like C3/D3 and B3 would be .5 (or 50% when formatted) where C3 is 5 and D3 is 10.
 
Upvote 0
You can use IFERROR to change your errors to #N/A (which will not be graphed).

That is:
=IFERROR(your_formula,NA())
 
Upvote 0
You're welcome, happy to help. Also, welcome to the forum!

Just FYI: You can Conditionally Format the cells with #N/A to have white font so you don't see them.

This would be for aesthetic purposes only.
 
Upvote 0

Forum statistics

Threads
1,214,972
Messages
6,122,530
Members
449,088
Latest member
RandomExceller01

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