I'm having some difficulty figuring out how to match two sets of data with a common field. I assume I'll need to do an if statement, though if it can be done another way, please let me know.
For example,
Data Set #1
Asset ID
#335566
#335568
#335569
Data Set #2
Asset ID, Cost
#335566, $35,000
#335567, $37,000
#335568, $38,000
I'd like Excel to take the asset ID in Data Set #1 and look through Data Set #2 for the same asset ID. If it finds a matching asset ID, I'd like Excel to pull the corresponding Cost value from data set #2 and place it into Data Set #1 (aligned with the correct asset). If it doesn't find the same asset ID in data set #2, it can leave the cell blank.
So essentially Data Set #1 becomes
Asset ID, Cost
#335566, $35,000
#335568, $38,000
#335569, [blank]
Any help would be greatly appreciated.
For example,
Data Set #1
Asset ID
#335566
#335568
#335569
Data Set #2
Asset ID, Cost
#335566, $35,000
#335567, $37,000
#335568, $38,000
I'd like Excel to take the asset ID in Data Set #1 and look through Data Set #2 for the same asset ID. If it finds a matching asset ID, I'd like Excel to pull the corresponding Cost value from data set #2 and place it into Data Set #1 (aligned with the correct asset). If it doesn't find the same asset ID in data set #2, it can leave the cell blank.
So essentially Data Set #1 becomes
Asset ID, Cost
#335566, $35,000
#335568, $38,000
#335569, [blank]
Any help would be greatly appreciated.