Blank Cells

G

Guest

Guest
I am using the IF worksheet function. If the logical test produces a value of 0, I'd like the value_if_true to be a blank cell so I could go back later and do an Edit, GoTo, Special, Blanks and delete the rows that contain blanks. I've tried making the value_if_true to be "" and that makes the cell appear blank, but the GoTo procedure described above doesn't recognize the cell as blank. Any ideas on what value_if_true Excel would recognize as a true blank cell?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Can't be done using an Excel worksheet function. All functions MUST return something.
 
Upvote 0
Hi
If you are going to delete the records anyway, try having your formula return "^" instead of zero or "". If ^ is a character that you don't normally use you can then change them to blank cells via the Replace function (ie in the find-what box put ^ and put nothing at all in the replace-with-what box). You can then use Edit, GoTo, Blanks the way you wanted to
Just a thought
regards
Derek
ps ^ is the character above the 6 on your keyboard
This message was edited by Derek on 2002-03-08 08:47
 
Upvote 0
If you are going to delete the records anyway...

Why not just return #N/A and use Edit | Go To... Special... Formulas (and leave only the Errors box checked)?
This message was edited by Mark W. on 2002-03-08 08:54
 
Upvote 0
Thank you for the replies - returning a unique character then replacing it with a blank or returning an error value and doing a GoTo error both accomplish my goal - thanks!
 
Upvote 0

Forum statistics

Threads
1,214,559
Messages
6,120,208
Members
448,951
Latest member
jennlynn

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