How can I check to see if 3 values exist in 3 other cells in the same row?

statiCat

New Member
Joined
Apr 21, 2018
Messages
19




I am trying to determine the following:


Are the values in G2, H2, and I2 in A2: C2, in any order?
Are the values in J2, K2, and L2 in D2:F2, in any order?
And then if both conditions are True I want M to say "match" or "no_match"




But I am getting "#Value!" What am I doing wrong?


B,C,E,F,H,I,K,L can be """" (empty string) or may have values. In this case they are all """".


My function: "=IF(AND(OR(($G1=$A1,$G1=$B1,$<wbr>G1=$C1),OR($J1=$D1,$J1=$E1,$<wbr>J1=$F1))),"match","no_match")"


0

 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.




I am trying to determine the following:


Are the values in G2, H2, and I2 in A2: C2, in any order?
Are the values in J2, K2, and L2 in D2:F2, in any order?
And then if both conditions are True I want M to say "match" or "no_match"





But I am getting "#Value!" What am I doing wrong?


B,C,E,F,H,I,K,L can be """" (empty string) or may have values. In this case they are all """".


My function: "=IF(AND(OR(($G1=$A1,$G1=$B1,$<wbr>G1=$C1),OR($J1=$D1,$J1=$E1,$<wbr>J1=$F1))),"match","no_match")"


0

Your formula doesn't seem to address the requirements in bold above. I think this formula, although quite clumsy, does.
Code:
=IF(ISNA(MATCH(A2,$G$2:$I$2,0)),"no match",IF(ISNA(MATCH(B2,$G$2:$I$2,0)),"no match",IF(ISNA(MATCH(C2,$G$2:$I$2,0)),"no match",IF(ISNA(MATCH(D2,$J$2:$L$2,0)),"no match",IF(ISNA(MATCH(E2,$J$2:$L$2,0)),"no match",IF(ISNA(MATCH(F2,$J$2:$L$2,0)),"no match","match"))))))
 
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,973
Members
448,933
Latest member
Bluedbw

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