IF function. BLANK if BLANK please!

28creation

Board Regular
Joined
Oct 13, 2014
Messages
124
Hi all,

Hope you can help me with this little annoyance....


Section Score Pass/Development/Fail
1 Pass
2 Pass
3 Pass


This is the formula that's in the first "Pass" box, opposite "1".

=IF(H28>=90%,"Pass",IF(H28>=75%,"Development Pass",IF(H28<=75%,"Fail")))

The three boxes (H28, 29 & 30) fill up based on results further up the page, & when they're included boxes I28, 29 & 30 alter what they say, ie Pass, Development Pass or Fail.

Yet they say "Pass" automatically, even though there's nothing in the box.

How can I get it to be blank when there's nothing in the H boxes?

So annoying.

Any thoughts please guys?

Thanks.

NB - the three passes are below Pass/Development/Fail & the three boxes below score are blank.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try

=IF(H28="","",IF(H28>=90%,"Pass",IF(H28>=75%,"Development Pass",IF(H28<=75%,"Fail"))))
 
Upvote 0
You can use an If statement to check if the cell is blank.

I have used different functions to establish the Pass/Fail etc because I don't like too many nested IFS (personal preference)


Excel 2010
HI
280.75Fail
290.76Development Pass
300.9Pass
Sheet1
Cell Formulas
RangeFormula
I28=IF(NOT(ISBLANK(H28)),CHOOSE(MATCH(H28,{1,0.8999999,0.75},-1),"Pass","Development Pass","Fail"),"")
 
Upvote 0
Id expect it to say Fail if H28 was empty??
I believe the issue is that H28 is NOT empty.
It's a formula resulting in ""

The three boxes (H28, 29 & 30) fill up based on results further up the page

A formula that returns "" is NOT blank, it's a Text String.
And > < operators consider Text to be greater than numbers.
So H28>=90% = TRUE, result of IF is "Pass"
 
Upvote 0
Yeah sorry I did just read it was result of formula. Sometimes don't see for looking...
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,611
Members
449,109
Latest member
Sebas8956

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