Ignoring blank cells in OR formula

MGIRC

New Member
Joined
Mar 29, 2016
Messages
4
In Excel 2013, I have a formula similar to this:

=IF(OR(C2>B2, C2>A2, B2>A2),1)

I want to return 1 if any of the inequalities is true. But if one of the cells in my OR statement is blank, I don't want the formula to treat the blank as zero and evaluate but instead read false and move on to the next inequality.

I have searched quite a bit through IFBLANK and IFNUMBER but still not getting this right--help would be very much appreciated. Thanks.
 
Yoicks! The BB truncated part of my formula. It should be:

=IF(SUMPRODUCT(--(A2:C2<>""),--(A2:C2 < A1:C1)),1)

I should have learned by now to watch for that.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,217,346
Messages
6,136,031
Members
449,979
Latest member
trinitybg10

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