Match cell values to column range for two respective columns

nomnomster

New Member
Joined
Oct 22, 2014
Messages
18
Hello!

I'm trying to check when patient names from one list, split in two columns (one for first name and one for last name), match up with another list of names, also split in two columns. Here's what it looks like:

Column A: First Names Column B: Last Names Column C: First Names Column D: Last Names Column E: Active or Inactive

I need to know when a name from columns C&D matches up with a name from columns A&B. Ideally, I'd like column E to indicate "active" if there's a match or "inactive" if there isn't.
*One last note which probably plays into things: columns C&D are linked so that all cell values are pulled from another workbook.
Let me know if there's anything else I can clarify.

Thanks for any help :)
Naomi
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Naomi,

Assuming your data starts in cell A2, try this in cell E2:
Code:
=IF(SUMPRODUCT(--((A2&B2)=($C$2:$C$9&$D$2:$D$9)))>0,"active","inactive")

and drag down column E. $C$2:$C$100&$D$2:$D$100 will need to be changed based on your how far down your data is in column C and D.
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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