having problems getting line graphs to ignore blank cells

dpolson

New Member
Joined
Apr 7, 2002
Messages
17
I'm trying to find a way to get Excel line graphs to ignore blank cells.

These don't do the job at all:
[1] =if(a1="","",1)
[2] formula as in [1], then copy-paste special-values to another cell

These do half of the job:
[3] =if(a1="",NA(),1)
[4] formula as in [3], then copy-paste special-values to another cell

It seems that for the graph to not only not display the datapoint, but also not display the connecting line (which is the goal):

[5] the data points have to be hand-entered into empty cells the hard way
[6] or you do [1][2] or [3][4], then delete the blank cells to make them empty

Three questions:

Q1 - What does Excel leave behind in the blank cell after doing a copy-paste special-values of an equation that generates a "" in the original cell so that it's not really empty and thus doesn't graph like an empty cell?

Q2 - Is there a way using functions & equations around this?

Q3 - If not, is there a way using macros/VBA around this?

I'd appreaciate anyones wisdom.

Dale
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I don't have an answer, but I'd like to vehemently agree that this is indeed a frustrating problem.

I tried several of the same methods you did, including N/A, paste-special, etc. I found that similar to your attempts, I could do it only after a couple manipulations, like using Goto to select all cells with "" or #N/A in them that should be blank, and then hitting delete to clear them all at once (saves the time of doing it one at a time). But there really should be a way of working it into the spreadsheet from the start...

Clearly the graph sees the formula in the cell and concludes, "Well, if there's a formula in the cell it's obviously not BLANK"

Hopefully someone else can help...
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,085
Members
448,548
Latest member
harryls

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