ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) (https://www.excelbanter.com/new-users-excel/78869-vlookup-%3Dvlookup-f9-lookup1-%24%242-%24b%241504-2-false.html)

MikeR-Oz

Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE)
 
I have a sheet named "lookUp" that has 3 columns

emp No Name Mobile No.
11111 Bruce, Jack lincoln 0404 126 561

and I have been given this:-

=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE)

Which takes the info from the "LookUp" sheet to another sheet and puts the
name in to a cell.

But a new "LookUp1" sheet is laid out as

emp No Surname First Name Mobile No.
11111 Bruce Jack lincoln 0404 126 561

How can I change the Vlookup to now put both the Surname PLUS a comma and
then the First name all into the 1 cell in the sheet seeing that the new
LookUp1 nows seperates the surname(bruce) from the first names ??

So want

enter 1111

get

Bruce, Jack lincoln

Mike


Clivey_UK

Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE)
 

Hi Mike,
I think you should use the & symbol to add two bits of text. Try this:
=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE)&",
"&VLOOKUP(F9,LookUp1!$A$2:$B$1504,3,FALSE)
What this will do is lookup 1111 and return Bruce from the 2nd column,
then it will add ", " and then it will add Jack Lincoln from coloumn 3,
so the result is
Bruce, Jack Lincoln.
Clive

MikeR-Oz Wrote:
I have a sheet named "lookUp" that has 3 columns

emp No Name Mobile No.
11111 Bruce, Jack lincoln 0404 126 561

and I have been given this:-

=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE)

Which takes the info from the "LookUp" sheet to another sheet and puts
the
name in to a cell.

But a new "LookUp1" sheet is laid out as

emp No Surname First Name Mobile No.
11111 Bruce Jack lincoln 0404 126
561

How can I change the Vlookup to now put both the Surname PLUS a comma
and
then the First name all into the 1 cell in the sheet seeing that the
new
LookUp1 nows seperates the surname(bruce) from the first names ??

So want

enter 1111

get

Bruce, Jack lincoln

Mike



--
Clivey_UK
------------------------------------------------------------------------
Clivey_UK's Profile: http://www.excelforum.com/member.php...o&userid=32569
View this thread: http://www.excelforum.com/showthread...hreadid=525139



All times are GMT +1. The time now is 11:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com