Find data from a column and see if it matches the concatenated equivalent to 3 columns

tyrese215

New Member
Joined
Feb 25, 2009
Messages
33
I have 3 columns with the following values:
A B C
1 8 2
2 5 4
3 2 6

In column F I have the following data with a separator of | between the values.
1 | 3 | 4
3 | 2 | 6

I want to find if the values column F are in the concatenated equivalent of each record in ABC above.

I know I could create a new column D and with the concatenated equivalent, and then just match the column F to Column d, but I need to compare the concatenated equivalent in ABC. If there is a match then return “YES” otherwise return “NO”

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
1. So this is a match

A B C
1 8 2

against 1 | 8 | 2

but is this a match against 1 | 2 | 8 (same numbers different order) ?

2. Do you want to return Yes/No for each row in column F or just an overall if there is at least one match ?
 
Upvote 0
IN F2 then drag down.

=IF(SUMPRODUCT(--(SUBSTITUTE(F2,"|","")=$A$2:$A$4&$B$2:$B$4&$C$2:$C$4))>0,"YES","NO")
 
Last edited:
Upvote 0
=sumproduct((mid(f1,1,1)+0=a$1:a$3)*(mid(f1,5,1)+0=b$1:b$3)*(mid(f1,9,1)+0=c$1:c$3))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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