VLookup

DoggoS

New Member
Joined
Feb 14, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I have 2 sheets containing various employee data - one sheet named 'Employee data' contains the Employee Full Name (in column A) and the other sheet named 'Employee with Samsung' contains Employee Full Name (in column A) along with 'Device Details' (in column B of this sheet).
I need a formula to look up the Employee Name from 'Employee Data' sheet and match it to the Employee Full Name from 'Employee with Samsung' sheet and if it finds it to then retrieve the 'Device Details' from this sheet and populate it into the Device Details (column B) within the 'Employee Data' sheet.
I hope that makes sense...
Grateful for any assistance - thank you in advance
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about
Excel Formula:
=XLOOKUP(A2,'Employee with Samsung'!A$2:A$1000,'Employee with Samsung'!B$2:B$1000,"")
 
Upvote 0
Thanks, Fluff. I have the same situation as the OP and I need help. However, I have Excel 2019 so I don't have the XLOOKUP function. Any other advice?
 
Upvote 0
Hi & welcome to MrExcel.
Please do not "hijack" other peoples threads. You need to start a thread of your own. Thanks
 
Upvote 0
How about
Excel Formula:
=XLOOKUP(A2,'Employee with Samsung'!A$2:A$1000,'Employee with Samsung'!B$2:B$1000,"")
Thank you for the above Fluff but unfortunately it seems to be returning incorrect data?
 
Upvote 0
In that case can you post some sample data that shows the problem.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top