Vlookup - Forname Surname

wrightyrx7

Well-known Member
Joined
Sep 15, 2011
Messages
994
Hello all,

Im wondering if it is possible to do a vlookup to look at a table with Forename and Surname in column index 6 & 7 and return them in the same in the same cell. With a space inbetween obviously.

Thanks
Chris
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Do you want to match on both Surname and Forname or do you just want to return both Surname and Forname (matching on some other value)?

It sounds like the latter to me. If that is the case, just concatenate two VLOOKUP formulas (one returning each column index), i.e.

=VLOOKUP(...) & " " & VLOOKUP(...)

or create a new column in your lookup table which sews these two values together and return that new calculated column in your VLOOKUP, i.e.

= F2 & " " & G2
 
Upvote 0
If I understand, you can try something like this.
If your vlookup range were: G1:H10 (G1:G10 has forenames. H1:H10 has last names.)
Your lookup cell is A1. (Where the forename gets entered.)

Now, in your formula cell somewhere you can try this:
Code:
=A1&" "&VLOOKUP(A1, G1:H10, 2)
Is that what you're looking to do?


EDIT: Oh yeah, if your lookup value is something other than the forename then go with something like Joe's suggestion. If the lookup value is the forename then what I posted should be all you need.
 
Last edited:
Upvote 0
Thanks for the replies guys, i used the =VLOOKUP(...) & " " & VLOOKUP(...) worked like a charm.

Thank you both again

Chris
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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