Is there a way in excel to do some semi-automated pattern matching and add a new column as a result? Here are some specifics:
I have two excel files. One contains only two columns and essentially never changes (Masterlist). The second file is a report that is generated daily with different bits of data. However there is one common element between the two files called "SiteID." For each daily report I would like to be able to match the SiteID to the Masterlist and add the second column from the Masterlist to the daily report. Example:
Here is what I have now...
Here is what I would like...
Thanks in advance
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.
I have two excel files. One contains only two columns and essentially never changes (Masterlist). The second file is a report that is generated daily with different bits of data. However there is one common element between the two files called "SiteID." For each daily report I would like to be able to match the SiteID to the Masterlist and add the second column from the Masterlist to the daily report. Example:
Here is what I have now...
Code:
Masterlist:
SiteID, Name
01232, bob
03432, james
12243, silvia
23543, justin
DailyReport:
PI, SiteID, City, DOB
qw, 01232, Morrisville, 1980
sd, 12243, Cary, 1961
gw, 23543, Pittsburgh, 1978
as, 03432, Franklin, 1998
Here is what I would like...
Code:
DailyReport:
Name, PI, SiteID, City, DOB
bob, qw, 01232, Morrisville, 1980
silvia, sd, 12243, Cary, 1961
justin, gw, 23543, Pittsburgh, 1978
james, as, 03432, Franklin, 1998
Thanks in advance
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.