If cell match in one column then check for match among 2 other different columns

jr1977

New Member
Joined
Aug 31, 2015
Messages
6
Hi,
I have a problem that I'm having difficulty solving. Please help.

[TABLE="width: 667"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD="align: right"]1 [/TD]
[TD]Code Name[/TD]
[TD]FirstnameProfile[/TD]
[TD]LastnameProfile[/TD]
[TD]FirstnameonBill[/TD]
[TD]LastnameonBill[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD] max[/TD]
[TD]Bob[/TD]
[TD]Johnson[/TD]
[TD]Robert[/TD]
[TD]Johnson[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD] max[/TD]
[TD]Bob[/TD]
[TD]Johnson[/TD]
[TD]Bob[/TD]
[TD]Johnson[/TD]
[/TR]
[TR]
[TD="align: right"]4 [/TD]
[TD]max[/TD]
[TD]Betty[/TD]
[TD]Johnson[/TD]
[TD]Bob&Betty[/TD]
[TD]Johnson[/TD]
[/TR]
[TR]
[TD="align: right"]5 [/TD]
[TD]royal[/TD]
[TD]Bobby[/TD]
[TD]Piper[/TD]
[TD]Bob[/TD]
[TD]Piper[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD] parrot123[/TD]
[TD]Jimmy[/TD]
[TD]Bear[/TD]
[TD]Jimmy[/TD]
[TD]Bear[/TD]
[/TR]
[TR]
[TD="align: right"]7 [/TD]
[TD]boots[/TD]
[TD]Paulie[/TD]
[TD]Roland[/TD]
[TD]Paul[/TD]
[TD]Roland[/TD]
[/TR]
[TR]
[TD="align: right"]8 [/TD]
[TD]boots[/TD]
[TD]Jenny[/TD]
[TD]Lester[/TD]
[TD]Paul[/TD]
[TD]Roland[/TD]
[/TR]
</tbody>[/TABLE]

What I need to do is look at the Code Names column. If any of these match, they are the subject of further investigation. For example, rows 2,3,& 4 are all code name "max". Next I need to see if the FirstnameProfile matches the FirstnameonBill for any of the "max" group. If they match it can print a YES in column F. If no match then No in column F.

For row 2 it would return a Yes because Bob (B2) matches Bob (D3).
For row 3 it would return a Yes because Bob (B3) matches Bob (D3).
For row 4 it would return a No because Betty (B4) does not match any of the First names from D2, D3 or D4.
For row 5 it would return a No because Bobby (B5) does not match D5
For row 6 it would return a Yes because Jimmy matches D6
For row 7 it would return a No because Paulie does not match D7 or D8
For row 8 it would return a No because Jenny does not match D7 or D8

thanks!
 
Understood. I was looking to add in matches to things Paulie and Paul. thanks again. Where in the formula is it looking at column D? Is that the "D" and ":D"? You're a lifesaver thanks!

Yes, the "D" and ":D" are expandable ranges.
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,225,155
Messages
6,183,217
Members
453,151
Latest member
Lizamaison

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