A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vlookup return value from 2 columns



 
 
Thread Tools Display Modes
  #1  
Old August 18th, 2009, 06:57 PM posted to microsoft.public.excel.newusers
Hugh self taught[_2_]
external usenet poster
 
Posts: 57
Default vlookup return value from 2 columns

Hi All,

Vlookup in it's basic usage is no problem for me but now I need to lookup a
matching value in column 2 & return the values of columns 3 & 4. Preferably
in the format of xxxxxxx & yyyyyyyy since columns 3 & 4 are names.

If you could help with any method that is simple & works would be great.

Cheers
Hugh
  #2  
Old August 18th, 2009, 07:14 PM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default vlookup return value from 2 columns

Just concatenate 2 lookups together. Something like this (all on one line):

=VLOOKUP(A10,B15,2,0)&" & "
&VLOOKUP(A10,B15,3,0)

Or, you can add another column to your table with the names already
concatenated:

=C1&" & "D1

Then do the lookup on this new column:

=VLOOKUP(A10,B1:E5,4,0)

--
Biff
Microsoft Excel MVP


"Hugh self taught" wrote in
message ...
Hi All,

Vlookup in it's basic usage is no problem for me but now I need to lookup
a
matching value in column 2 & return the values of columns 3 & 4.
Preferably
in the format of xxxxxxx & yyyyyyyy since columns 3 & 4 are names.

If you could help with any method that is simple & works would be great.

Cheers
Hugh



  #3  
Old August 18th, 2009, 07:18 PM posted to microsoft.public.excel.newusers
Charles Garrett
external usenet poster
 
Posts: 4
Default vlookup return value from 2 columns

On Aug 18, 1:57*pm, Hugh self taught
wrote:
Hi All,

Vlookup in it's basic usage is no problem for me but now I need to lookup a
matching value in column 2 & return the values of columns 3 & 4. Preferably
in the format of xxxxxxx & yyyyyyyy since columns 3 & 4 are names.

If you could help with any method that is simple & works would be great.

Cheers
Hugh


Give this try. Change cells in this formula to match your needs.

=VLOOKUP(A1,A7:C9,2)&" "&VLOOKUP(A1,A7:C9,3)
  #4  
Old August 18th, 2009, 07:24 PM posted to microsoft.public.excel.newusers
eduardo
external usenet poster
 
Posts: 2,131
Default vlookup return value from 2 columns

Hi,
try
You have the value to lookup in cell D2, values in column A from row 1 to 4,
and the information to put together in rows B and C

=IF(SUMPRODUCT(--(D2=A1:A4)),B1:B4&C1:C4)

change range to fit your needs

"Hugh self taught" wrote:

Hi All,

Vlookup in it's basic usage is no problem for me but now I need to lookup a
matching value in column 2 & return the values of columns 3 & 4. Preferably
in the format of xxxxxxx & yyyyyyyy since columns 3 & 4 are names.

If you could help with any method that is simple & works would be great.

Cheers
Hugh

  #5  
Old August 18th, 2009, 07:51 PM posted to microsoft.public.excel.newusers
Hugh self taught[_2_]
external usenet poster
 
Posts: 57
Default vlookup return value from 2 columns

Thanks guys

"T. Valko" wrote:

Just concatenate 2 lookups together. Something like this (all on one line):

=VLOOKUP(A10,B15,2,0)&" & "
&VLOOKUP(A10,B15,3,0)

Or, you can add another column to your table with the names already
concatenated:

=C1&" & "D1

Then do the lookup on this new column:

=VLOOKUP(A10,B1:E5,4,0)

--
Biff
Microsoft Excel MVP


"Hugh self taught" wrote in
message ...
Hi All,

Vlookup in it's basic usage is no problem for me but now I need to lookup
a
matching value in column 2 & return the values of columns 3 & 4.
Preferably
in the format of xxxxxxx & yyyyyyyy since columns 3 & 4 are names.

If you could help with any method that is simple & works would be great.

Cheers
Hugh




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.