I have two sheets of raw data on one workbook. The goal is to match the "Rep Name" in sheet one: "Master", Column E, Rows 3-138 to "Delivery Name" in sheet two "Tracking Numbers", Column H, Rows 2-22. If there is a match, then I would like the cell to return the "Tracking Number" found in sheet two"Tracking Numbers", Column I, Rows 2-22 and place it into sheet one "Master", Column N, Rows 2-22. If there is no match, then I would like the field to be left blank.
I've eliminated duplicate names on the "Master" sheet so it should be looking 1:1. Sheet two "Tracking Numbers" is attached to a query that pulls data from Dynamics AX 2009, so the number of rows will change in the future depending on the number of tracking numbers. For the purposes of figuring this problem out, the connection to the database has been disconnected.
I believe I need a combination of MATCH, IF and VLOOKUP.
Here's how I verbally work through what I need:
IF the rep name = delivery name, then return the tracking number.
If rep name does not equal delivery name, then return blank space.
This is the formula I worked out, but I'm missing something somewhere (obviously):IF((MATCH(E23,'Tracking Numbers'!$H$2:$H$22,8)),VLOOKUP(E23,'Tracking Numbers'!$H$2:$H$22,9,FALSE),0),'Tracking Numbers'!$I$2:$I$22," "))
Any input and assistance is greatly appreciated. I think I have the equation correct in my brain, but I can't get the formulas to mimic my logic.
Thank you in advance!
Bookmarks