Using IF AND and OR using multiple cells as reference

vpar7493

New Member
Joined
Apr 14, 2012
Messages
1
Hi There!

How can make the following work using the IF, AND and OR Functions:

1. getting a result "yes" or "n/a"

aa2 = will automatically display "n/a" if K2 will display the word "yes", if not, will just leave it blank.
ab2 = will automatically display "n/a" if K2 will display the word "yes", if not, will just leave it blank.
ac2 = will automatically display "n/a" if K2 will display the word "yes", if not, will just leave it blank.
ad2 = will automatically display "n/a" if any OR all or H2, I2 and J2 would display the word "yes".

2. Q2 = will display "n/a" if A2 displays the word "single"

3. AK2 = will display "Fit to Work Clearance" if T2 contains the text "class c" in the cell (but with other word in the cell like "pending class c" or "class c - ua"

I know this is a lot for one set of questions. I'm just experimenting on IF(OR(AND functions but usuall fail especially on Question #1.

Thank you so much! :)
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to the board.

AA2: =IF(K2="yes","n/a","")
AB2: =IF(K2="yes","n/a","")
AC2: =IF(K2="yes","n/a","")
AD2: =IF(COUNTIF(H2:J2,"yes"),"n/a","")

Q2: =IF(A2="single","n/a","")

AK2: =IF(ISNUMBER(SEARCH("class c",T2)),"Fit to Work Clearance","")
 
Last edited:
Upvote 0
Your chosen functions are not really suitable for your requirement.

Try

1. AA2,AB2 and AC2 =IF(K2="yes","n/a","")
AD2 =IF(COUNTIF(H2:J2,"yes"),"n/a","")

2. Same format as first formula above, =IF(Q2="single","n/a","")

3. =IF(ISNUMBER(SEARCH("class c",T2)),"Fit to work","")
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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