I'm quite new at excel, so please bear with me.
On Sheet1 of my workbook I have data like CostumerID, CostumerName, Email and so on spread in columns A-G. CostumerID is filled with ID's and CostumerName is empty.
On Sheet2 of my workbook I have 2 columns (A and B). Column A contains CustomerID and column B contains the correct CustomerName for that CustomerID.
My problem is:
I need a macro that goes to Sheet1, reads the CustomerID in column A, then goes to Sheet2, find that CustomerID also in column A, get the CustomerName in column B and paste that name to column B in Sheet1 next to cell from which it got the first CustomerID.
Further ellaboration:
Step 1: Get value of cell in column A on Sheet 1
Step 2: Go to Sheet2, find that value in column A, then copy CustomerName from same row.
Step 3: Paste that CostumerName into column B on the same row as original value from column A on Sheet1.
Sheet1 can be 100-6000 rows, and it needs to check all CustomerID's in column A in Sheet1 and find the corresponding CustomerName. There can be duplicates in column A on Sheet1, but the value of columns D, F and G are all unique.
Normally I would present my attempt on how to do this, but I have no idea how to do this.
Anybody have an idea?
Any help would be greatly appreciated!