Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: Can IF function return a blank cell?

Status
Not open for further replies.

sauroneru

Technical User
Mar 5, 2003
8
US
I would like to have IF functions return blank cells. Example:

=if(A2="foo","bar",BLANK)

Then, when filling down, I get either cells with "bar" in them or cells that would return true for the ISBLANK function. It seems "" creates an empty text string, but not a blank cell.
 
Hmmm... that doesn't work for me.

A1 => foo
A2 => =if(A1="foo","")
A3 => =isblank(A2) => FALSE
 
ISBLANK returns TRUE if the cell is empty.

Of course, this cell is NOT empty. It contains a FORMULA that returns a value of a NULL string.

What are you trying to do? Skip,
Skip@TheOfficeExperts.com
 
I am building conditional lists of data in columns. Ie, =if(A1="Name",B1,""). I would then like to do things such as average the data (not a problem) and make histograms (problem, as it tells me my data range contains non-numeric data). I can delete the empty cells using the Goto function and delete, but I've always wondered if there was a more upfront way to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top