Want to Combine 2 Separate and Opposite IF(AND Statements

RachelGeno

New Member
Joined
Jun 1, 2017
Messages
3
The two IF(AND statements I currently am using are the opposite of each other to compare column C to F and then F to C:
=IF(AND(C3="NOT FOUND",F3<>"NOT FOUND"),"CHECK","OK")
=IF(AND(F3="NOT FOUND",C3<>"NOT FOUND"),"CHECK","OK")

Is there any way of combining the two (maybe with an OR statement?) so that if C3="NOT FOUND" and F3<>"NOT FOUND" OR F3="NOT FOUND" and C3<>"NOT FOUND," then the formula will return "CHECK" and otherwise "OK"?

Thanks!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the forum.

Looks like you want "CHECK" if "NOT FOUND" occurs exactly once in those 2 cells. If so, try:

=IF((C3="NOT FOUND")+(F3="NOT FOUND")=1,"CHECK","OK")
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,840
Members
449,193
Latest member
MikeVol

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