Formula that compares two sets of data

CatsIgnoreMe

New Member
Joined
Feb 8, 2016
Messages
15
Forgive me for a basic question, but I'm having trouble wrapping my mind around the best way to this. I have 5 columns of data from our existing records: School | Position | Name | Email | Phone and the same 5 columns of data from an updated source. I want Excel to compare to two sets of data. If there is a match, then a value of "Keep" (or any other value to represent "Keep"). If no match is found, the formula would return "New". Thank you for your help!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Can you post a SMALL sample of your data - say half a dozen records from each data source ?
Make the data up if you don't want to post real data.
Be sure to include some examples that you consider to be a match, and some which are similar but not considered to be a match.
 
Upvote 0
I went to generatedata.com to create these sample records. The 01 set represents existing records in our database (from last year). The 02 set represents new data for this year. The unique data shared between the two sets will be the email address. In the 2nd sample set, three of the records are the same (compared to the first set). Two records are different.

01 Data Set
CompanyFirst NameLast NameEmail
Donec Tempus LtdDaquanCollinsVestibulum@lobortisquispede.net
Ultricies Dignissim ConsultingHallMunozsociis.natoque@Fuscealiquetmagna.net
Mauris Inc.JeanetteJacksonNullam.feugiat.placerat@eu.co.uk
Ut LtdZeusWootenat@velpede.net
Metus Vitae Velit Corp.DesireeKnowleslobortis.Class@at.edu

<tbody>
</tbody>


02 Data Set

CompanyFirst NameLast NameEmail
Donec Tempus LtdDaquanCollinsVestibulum@lobortisquispede.net
Ultricies Dignissim ConsultingHallMunozsociis.natoque@Fuscealiquetmagna.net
Mauris Inc.JeanetteJacksonNullam.feugiat.placerat@eu.co.uk
Aliquam Adipiscing Lobortis CorporationRajahParkeret.magnis.dis@nibhlacinia.com
Maecenas CompanyGeraldineHinesIn.mi@vulputate.com

<colgroup><col span="5"></colgroup><tbody>
</tbody>
 
Upvote 0
OK, so are you ONLY comparing the email field, and ignoring any matches or mismatches between other fields ?
 
Upvote 0
OK. There are several ways to do this, here's one.

Let's make some assumptions about where your data is located.

Let's say data set 01 is in the range A1:D100, and data set 02 is in the range E1:H100.

To test whether an email address from data set 02 in cell H2 is found in the data set 01 in the range D1:D100, use something like this
=IF(ISERROR(MATCH(H2,D$1:D$100,0)),"NEW","KEEP")

You can then copy this down as far as required.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

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