Nested IF statement with multiple OR conditions

Galena1

Active Member
Joined
Jun 10, 2010
Messages
305
Hi.

I have a condition where I want to create a nested IF statement that takes into account multiple OR conditions with data in various adjacent and non-adjacent cells. I need something like the literal statement below, that can be easily appended, if I decided to add other cells/criteria.

=IF (C8 ) contains "INF-" OR IF (C8) contains "Main" or IF (F9) equals "(blank)" OR IF (F9) = "XXXXXX", "Don't Count", "Count")

thanks in advance for any solutions/advice...!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Nasty looking formula, but should work if I've understood correctly:
Code:
=IF(OR(OR(C8={"INF-","Main"}),OR(F9={"{blank)","XXXXXX"})),"Don't Count","Count")

Matty
 
Upvote 0
PS, you can have 255 conditions in the one or, only 1 has to evaluate to TRUE for the Or to return TRUE
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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