If IsBlank

roo181

New Member
Joined
Jul 23, 2013
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hi,

I've set this up to give the Win / Loss / Draw based on the home teams score. But if the teams have a bye, the scores will be blank so if G7 is blank, then I want I7 to be blank also.

2024 - Fixture Results.xlsx
GHI
1Home ScoreOpposition ScoreWIN/LOSS
2DRAW
3144WIN
4217LOSS
5732LOSS
62622WIN
7DRAW
Sheet1
Cell Formulas
RangeFormula
I2:I7I2=IF(G2>H2,"WIN",IF(G2<H2,"LOSS",IF(G2=H2,"DRAW",IF(ISBLANK(G2),"BLANK","NOT BLANK"))))


Thanks for your help
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
How about
Excel Formula:
=IF(G2="","",CHOOSE(SIGN(G2-H2)+2,"LOSS","DRAW","WIN"))
 
Upvote 0
h0w about
=IF(G2="","",IF(G2>H2,"WIN",IF(G2<H2,"LOSS",IF(G2=H2,"DRAW",""))))
 
Upvote 0
Excel Formula:
=IF(ISBLANK(G4),"",IF(G4>H4,"WIN",IF(G4<H4,"LOSS",IF(G4=H4,"DRAW"))))
 
Upvote 0
Solution
Excel Formula:
=IF(ISBLANK(G4),"",IF(G4>H4,"WIN",IF(G4<H4,"LOSS",IF(G4=H4,"DRAW"))))

Thanks to everyone for their quick responses.
I think I like this the best as it's using the Isblank function. I was almost there with the version I had before the one I posted.
 
Upvote 0
The ISBLANK function can sometimes cause problems, you are normally better off using something like G2=""
 
Upvote 0
not applicable here
BUT remember if a formula is in a cell
like in H2
=IF(G2="","",1)
then isblank(H2) will give a false for a blank cell

Book8
DEFGHIJ
1Home ScoreOpposition ScoreWIN/LOSS
2 FALSE  
Sheet1
Cell Formulas
RangeFormula
G2G2=IF(D2="","",1)
H2H2=ISBLANK(G2)
I2I2=IF(G2="","",IF(G2>H2,"WIN",IF(G2<H2,"LOSS",IF(G2=H2,"DRAW",""))))
J2J2=IF(G2="","",IF(G2>H2,"WIN",IF(G2<H2,"LOSS",IF(G2=H2,"DRAW",""))))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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