Using If Function but ignoring if cells are blank

geparden8450143

New Member
Joined
Nov 15, 2016
Messages
4
I am trying to use the formula below:

=IF(Q26>R26,"W",IF(Q26=R26,"D",IF(R26>Q26,"L",FALSE)))

However, I want the formula to be ignored if the cells referred to are blank e.g. if Q26=R26 but both are blank, I don't want the result to be "D"

Any help or suggestions greatly appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Is this what you need?

=IF((Q26="")*(R26=""),"",IF(Q26 > R26,"W",IF(Q26 < R26,"L","D")))<r26,"l","d")))< html=""></r26,"l","d")))<>
 
Last edited:
Upvote 0
This means they are not really blank/empty.

Try =CODE(Q26) and =CODE(R26) on your "blank/empty" cells. What do you get?

Hi again,

Q26 & R26 each have an INDEX & MATCH formula in. The INDEX MATCH formula refer to two other cells which are empty. So if those two other cells each have e.g. "3" in, I want to display "D" because they are the same BUT if those two other cells are both BLANK I don't want "D" to be displayed, I want nothing to be displayed. Don't know if this explanation makes sense but thanks again for helping.

Michael
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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