AND/OR with a MATCH to Return True, else False -- stumped

McNeil87

Board Regular
Joined
Dec 6, 2019
Messages
55
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
Hello,

Am stumped with how to utilize my AND/OR's plus with a Match lookup to return True if all conditions are met, else false. Here is what I have started so far -- open to suggestions.

=IF(N2<>"COMM","TRUE",IF(OR(O2="DIP",O2="BAD",L2=550904),"TRUE",IF(ISERROR(MATCH(L2,Sheet1!$B$2:$B$36,0)),"FALSE","TRUE")))

The following conditions:

1. IF N2 = "COMM"
2. Exclude "COMM" UNLESS fits ONE criteria below:
  • L2=550904
  • O2=DIP or BAD
  • Is located in List (using Match formula)
If ONE of the criteria in bullet points falls under "COMM" Then return "TRUE", otherwise, return "FALSE"

Thank you!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If ONE of the criteria in bullet points falls under "COMM" Then return "TRUE",

=OR( ISNUMBER(MATCH(L2,Sheet1!$B$2:$B$36,0)) , L2=550904 , O2="DIP", O2="BAD")
will return a true if any condition is found
so if Falls UNDER COMM , i assume you mean N2 = comm

then

=AND( N2="COMM", OR( ISNUMBER(MATCH(L2,Sheet1!$B$2:$B$36,0)) , L2=550904 , O2="DIP", O2="BAD") )

should return the TRUE FALSE you need
 
Upvote 0
IF(N2<>"COMM","TRUE"
I'm not sure what you put, does it mean that if it's different from "COMM" then you want true?

If the above is correct, check the following combinations:

varios 10mar2023.xlsm
ALMNOP
1
2COMMFALSE
3XTRUE
4COMMDIPTRUE
5COMMBADTRUE
6550904COMMTRUE
7123COMMTRUE
8200COMMFALSE
Sheet2
Cell Formulas
RangeFormula
P2:P8P2=OR(N2<>"COMM",O2="DIP",O2="BAD",L2=550904,NOT(ISNA(MATCH(L2,Sheet1!$B$2:$B$36,0))))


varios 10mar2023.xlsm
AB
1
2123
3124
4125
5126
6127
7128
8
9
Sheet1
 
Upvote 0
Solution

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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