Create 'blank' on Graph instead of 0 value?

Cerestes

Board Regular
Joined
Jan 31, 2004
Messages
185
Short Question:

What can I have the IF statement return as a result that will NOT graph at all. Just leave a hole in the graph.

Long Question:
I have a large range of values and dates.
1/1 1/2 1/3 ....etc
10 11 7 .......etc
8 12 6 .....etc

These values are pulled via VLOOKUP() from various places.
When VLOOKUP finds a blank cell, it returns a '0', which doesn't work for me.
I've added an IF(ISBLANK), to return "", which is (I believe) an empty cell.
The problem is, this is still graphing as a zero. So it will be graphing along nicely, and then shoot down to zero and back up again.

Thanks!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Any ideas?
I would like a result an IF statement can return, that is TRUE for ISBLANK().

I've tried null characters (Alt-255), spaces ("", " ") etc.
All return as 'false' for ISBLANK(), and when graphed, drop my graph to zero for that value.
 
Upvote 0
I'm not sure how I would make that work.

The cell currently has this:
=IF(ISBLANK(VLOOKUP($A93,ACCESS,45,FALSE))," ",VLOOKUP($A93,ACCESS,45,FALSE))

The idea is that if the VLOOKUP value is not blank, it returns that value.
If it is blank, it needs to return SOMETHING. (Anything!) that shows up in the cell as a blank AND doesn't graph.

" " shows up in the cell as blank, but it graphs as a 'zero', which makes my graph look wrong.
 
Upvote 0
Cerestes said:
...

" " shows up in the cell as blank, but it graphs as a 'zero', which makes my graph look wrong.

That's a space, i.e., text with a length of 1. What kind of graph are you making?
 
Upvote 0
Also, when you say you don't want to plot the zeros, do you mean you don't want to plot the entire point, or do you just want the graph to include a gap?
 
Upvote 0
I do want to graph zeros - I don't want to graph 'empty' cells.
Ideally, it would simply be a missing spot in the graph.

It works kind of like this.
I have a huge calendar (2002-2006) with 1 value per week for each of ~30 columns.

Depending on what selection is made on the summary sheet, HLOOKUP is used to pull data from 5 of those 30 columns.

Right now, 2006 is empty. On a continous basis, we add data to those rows.
When HLOOKUP grabs data for 2006, and found those cells blank, it returned a 0. I don't want it to return 0 (some values I do want are 0's).
To combat this, I used an IF statement, that if the cell was blank, return "".
This at least leaves the cleaned up data a bit better.
This table that is created by HLOOKUP is then used to create a simple line graph. The problem is, "" is being graphed as 0. So the line runs along nicely, and then drops to 0 for all of 2006.

Is there any value that my IF statement can return instead of a space ("")that will NOT graph out?
 
Upvote 0
I love this site

Isn't this site awesome? Here was a post from almost 3 years ago that gave me the answer I was looking for!!!
 
Upvote 0
What?? It's a post from one year ago, and there's no answer in the thread.

The answer for a line or XY chart is to return NA(). This is not plotted as a point on the chart, and if the series has lines connecting the points, it will draw the line from before the missing point to after it. You get an ugly #N/A error in the cell, but conditional formatting can hide this.
 
Upvote 0
Jon

Can you elaborate? I have a chart set up to capture monthly data and it is plotting a zero for the month of December since there is no data yet.

How do I get the cell to return an #N/A so that it will not plot anything until the data is available?

Thank you

Todd
 
Upvote 0

Forum statistics

Threads
1,214,573
Messages
6,120,310
Members
448,955
Latest member
Dreamz high

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