getting a blank FALSE result in an IF formula?

Robert Minneapolis

New Member
Joined
Aug 10, 2007
Messages
5
I posted this as part of a question in another thread (http://www.mrexcel.com/board2/viewtopic.php?t=287795), but perhaps it would garner some answers as its own rephrased question...

Is using "" the most appropriate way to get a blank result as part of an IF formula? For example, right now the way I would write such a formula looks something like:

=IF(LEFT(A1,5)="PARTY","AWESOME","")

The problem that I am having is that this method seems to somehow mark the cell as nonblank, even when converting the formulas to straight values using 'Paste Special->Values'. For example, although a FALSE result appears blank, a COUNTA formula counts it as a nonblank cell. What gives? How can I avoid this?

any help would be appreciated,
Robert
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Yes, that's the standard way to return a blank.

As you say, it then presents some problems because it isn't treated exactly like true blank cells.

COUNTBLANK function will, however, count both true blanks and "formula blanks".

If you want to count text (not numbers) but exclude formula blanks you can try

=COUNTIF(range,"*?")
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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