Vlookup or Xlookup on names

DaveMitch

New Member
Joined
Jun 19, 2015
Messages
20
Hi, I'm trying to do a vlookup but using names instead of numbers, first time using names, I've followed others examples, but still getting a #N/A return.
My formula is: =VLOOKUP(F2&G2,A2:C968,3,FALSE) where F= first name, G=surname, A= first name(lookup), B=surname (lookup), C=employee number (return).
I have also tried adding, as one post suggested, a concatenate column of columns A&B, but this does still not work.
Can anyone help me with what I am doing wrong?
Thanks in advance.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Some options using VLOOKUP or XLOOKUP, with or without helper column:

Book1
ABCDEFGHIJKL
1First NameSurnameEmpNo.First NameSurname
2RandomGuyRandomGuyX001JohnDoeX007X007X007X007
3JohnDoeJohnDoeX007
4JaneDoeJaneDoeX008
Sheet1
Cell Formulas
RangeFormula
I2I2=XLOOKUP(G2&H2,A2:A4&B2:B4,D2:D4)
J2J2=XLOOKUP(G2&H2,C2:C4,D2:D4)
K2K2=VLOOKUP(G2&H2,CHOOSE({1,2},A2:A4&B2:B4,D2:D4),2)
L2L2=VLOOKUP(G2&H2,C2:D4,2,0)
C2:C4C2=A2&B2
 
Upvote 0
Solution

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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