Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 08-04-2021, 03:54 PM
Dominique Gascon Dominique Gascon is offline Vlookup help Windows 10 Vlookup help Office 2019
Novice
 
Join Date: Jan 2021
Posts: 7
Dominique Gascon is on a distinguished road
Default

Assuming that the first list is in sheet 1 with names in col A and ID in col B, and the same in sheet 2 for the 2nd list,

then to "=VLOOKUP(A2;Sheet1!A:B;2;0)" will return the ID in sheet 1 of the name in cell A2 of sheet 2.
You need to put a 0 as the 4th parameter to force an exact match.
If there are 2 identical names in sheet 1, the formula will return the first one.


If a name is not found, it will return NA# that you'll need to deal with.


I searched the whole column, but you may want to use a named range or dynamic range to restrict the search, but I don't think that it does make much difference performance wise.



see attached example.
Attached Files
File Type: xlsx Vlookup.xlsx (15.3 KB, 8 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tell me which place the vlookup was successful (within a nested vlookup) Izzii0x Excel 2 07-18-2019 10:29 PM
How can I return Vlookup only if Specific Criteria is met in 1 column of the Vlookup Array EcommDOC Excel 7 01-22-2018 11:00 AM
Vlookup help Vlookup Missthingy Excel 1 02-10-2017 09:59 AM
Vlookup help IF and VLOOKUP SBMC Excel 1 11-07-2012 10:24 AM
Vlookup ibrahimaa Excel 8 01-03-2012 09:32 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft