Help with creating a matching formula?

JMITCH26

Board Regular
Joined
May 18, 2005
Messages
91
How can I Look in cells A1:F1 to see if there is a match in cells A12: A17.
If there is a match say "YES" if not then say "NO" in cell H1
If no data is entered in cells A1:F1 then be blank in H1

Example:

look at Cells
...... A1 B1 C1 D1 E1 F1
1 . 3 2 4 1 4 1

...... A2 B2 C2 D2 E2 F2
2 . 2 3 2 3 5 0

...... A3 B3 C3 D3 E3 F3
3 . 2 3 5 0 5 0

...... A4 B4 C4 D4 E4 F4
4 . 2 3 2 3 2 3

Then compare to Cells A12:A17
A12.. 324141
A13.. 504132
A14.. 232323
A15.. 232323
A16.. 413232
A17.. 414141

if there is a match then say "yes" or "no" in cell H1
H1=Yes
H2=NO
H3=NO
H4=Yes
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Soi you are saying that you have a cell containing 3, another with 2, another with 4 etc
and you want to compare the combined contents o 6 cells with the contents of 1 cell, elsewhere?
 
Upvote 0
Here are 2 options to consider. Column I option requires Excel 2016 through Office 365.
I have assumed A12:A17 contains numbers, not text. If text, leave out the "+0"


Book1
ABCDEFGHI
1324141YesYes
2232250NoNo
3235050NoNo
4232323YesYes
5
11
12324141
13504132
14232323
15232323
16413232
17414141
Match anywhere
Cell Formulas
RangeFormula
H1=IF(ISNUMBER(MATCH((A1&B1&C1&D1&E1&F1)+0,A$12:A$17,0)),"Yes","No")
I1=IF(ISNUMBER(MATCH(CONCAT(A1:F1)+0,A$12:A$17,0)),"Yes","No")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,637
Latest member
Ezio2866

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