Have forgotten how to do a vlookup or a match to return values

buteaur

Board Regular
Joined
Mar 15, 2016
Messages
170
i have one column with numbers and another column with numbers and names associated. I cannot for the life of me remember how to compare the two columns of numbers and when there is a match, return the name associated with any matches.

A2:A496 has numbers
H2:H6494 has numbers where a match needs to be found. I2:I6494 has the names associated with the numbers in H.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Excel Formula:
=iferror(Vlookup($A$2:$A$496,$H$2:$I$6494,2,0),"")


Excel Formula:
=IFERROR(INDEX($H$2:$I$6494,MATCH($A$2:$A$6496,$H$2:$H$6494,0),2),"")
 
Last edited:
Upvote 0
the best solution often varies by version.
For example, for this problem, if you have the XLOOKUP function then the following formula placed in a single cell will return all 495 results without having to copy the formula down 495 rows.

Excel Formula:
=XLOOKUP(A2:A496,H2:H6494,I2:I6494,"Not found")
 
Upvote 0
For example, for this problem, if you have the XLOOKUP function then the following formula placed in a single cell will return all 495 results without having to copy the formula down 495 rows.

Excel Formula:
=XLOOKUP(A2:A496,H2:H6494,I2:I6494,"Not found")
Thank you!
 
Upvote 0
You are welcome. Thanks for the follow-up. :)

.. but please also follow-up on post #2!
If you want people to help in the future, you should make it as easy as possible for them by giving them the information they need to best answer your questions. ;)
 
Upvote 0
You are welcome.
Thanks for the feedback
Be happy and safe
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,259
Members
449,093
Latest member
Vincent Khandagale

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