Excel - COLUMN Function Problem - Expert Solution

Question description:
This user has given permission to use the problem statement for this blog.

I have a spread sheet with list of employee id's in column B. I have a 2nd spread sheet that has list of last names in column A, first names in column B and employee id's in column C. I need something that will look at each employee id on the first sheet, match that id up with one on the second sheet and then find the correspnding last name on the same row and replace the employee id with the last name in column B of the first sheet.
Solved by F. A. in 17 mins
This is the chat thread from the real Excelchat help session. It contains no private user information.
Excelchat Expert 01/06/2018 - 06:33
Excelchat Expert 01/06/2018 - 06:33
Welcome to got it pro.
User 01/06/2018 - 06:33
Excelchat Expert 01/06/2018 - 06:34
I understand the problem but to be absolute sure, can you please show me some sample data?
Excelchat Expert 01/06/2018 - 06:36
Please let me know when you are finished.
User 01/06/2018 - 06:36
I copy some info into the document preview. Is that where I put the sample data?
Excelchat Expert 01/06/2018 - 06:37
Yeah, it is. Please go on.
User 01/06/2018 - 06:38
Okay I'm done
Excelchat Expert 01/06/2018 - 06:40
Now, can you please tell me what you need by referencing sheet name and row/columns? I understand you have already described it once but in order to suggest the optimal solution, I need to hear it again.
User 01/06/2018 - 06:42
So i need excel to take every cell in column A of sheet 1 and see if it matches a number in column C of sheet 2 and then replace the number in the cell of column A sheet 1 with a last name from column A of sheet 2
Excelchat Expert 01/06/2018 - 06:44
So basically you want to replace column A of Sheet1 with corresponding last names from sheet2, right?
User 01/06/2018 - 06:46
Yes so for example. If excel took cell A3 from sheet A (82845) and searched for the same number on sheet B, excel would replace cell A3 with the last name Bennett because the employee ids match up
Excelchat Expert 01/06/2018 - 06:46
The thing is excel formula can't be applied to the same cells if you are referencing the cell in formula. In this case we would be looking at column and then replacing that column A with Last name, this is not possible with excel formula.
Excelchat Expert 01/06/2018 - 06:47
Alternatively we can write a formula as shown in column D of sheet1.
User 01/06/2018 - 06:47
That would work
Excelchat Expert 01/06/2018 - 06:47
Great to hear.
Excelchat Expert 01/06/2018 - 06:48
Do you have any question about it?
Excelchat Expert 01/06/2018 - 06:48
The formula is =IFERROR(INDEX(Sheet2!A:A,MATCH(A1,Sheet2!C:C,0)),A1)
User 01/06/2018 - 06:48
No, just the formula. That's awesome. Thank you
Excelchat Expert 01/06/2018 - 06:49
I'm glad to be able to help. I would love if you can rate me 5 star after closing this chat.
Excelchat Expert 01/06/2018 - 06:49
I believe there is a close button on your side.
Excelchat Expert 01/06/2018 - 06:50
Thanks for visiting us today, have a great day ahead!
User 01/06/2018 - 06:50
I definitely will thank you

This is the output file from the real Excelchat help session:
This is an example of the expert help you can get. It contains no private user information.

Get instant expert help with Excel and Google Sheets

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Your privacy is guaranteed. Your session will not be used for blog unless you give us persmission.

Click here to get your free Excelchat help session

Subscribe to Excelchat.co
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
The Allstate Corporation
United Parcel Service
Dell Inc