Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default vlookup to return 2 columns

hi

can use vlookup function to return with 2 columns value ?

example:

A B C
1 H Home $200

2 C Car $100

3 B Boat $250


by using the above range, i know how to use the vlookup to return, say, A1,
it return for me "Home"...(i.e: =vlookup(lookupValue,A1:C3,2)

how can i use the lookup to return more than 1 data, example, base on the
above, I want it to display for me "Home" and "$200", and have them place in
separated cell?

any help community ?

thanks community :)


--
oldLearner57
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default vlookup to return 2 columns

You need 2 formulas in 2 cells.

Actually, you can enter 1 formula in 1 cell and then just drag copy across
to the other cell.

Try this:

=VLOOKUP(lookup_value,$A$1:$C$3,COLUMNS($A:B),0)

Now just drag copy across to the other cell.

If the lookup_value is a reference to a cell make at least the column
reference absolute:

H1 = lookup_value

=VLOOKUP($H1,$A$1:$C$3,COLUMNS($A:B),0)

Biff

"oldLearner57" wrote in message
...
hi

can use vlookup function to return with 2 columns value ?

example:

A B C
1 H Home $200

2 C Car $100

3 B Boat $250


by using the above range, i know how to use the vlookup to return, say,
A1,
it return for me "Home"...(i.e: =vlookup(lookupValue,A1:C3,2)

how can i use the lookup to return more than 1 data, example, base on the
above, I want it to display for me "Home" and "$200", and have them place
in
separated cell?

any help community ?

thanks community :)


--
oldLearner57



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default vlookup to return 2 columns

hi T. Valko :) thanks it works well :)
the 2nd formula works fine, need to absolute the lookup range

much appreciated :)

thanks again

thanks community
--
oldLearner57


"T. Valko" wrote:

You need 2 formulas in 2 cells.

Actually, you can enter 1 formula in 1 cell and then just drag copy across
to the other cell.

Try this:

=VLOOKUP(lookup_value,$A$1:$C$3,COLUMNS($A:B),0)

Now just drag copy across to the other cell.

If the lookup_value is a reference to a cell make at least the column
reference absolute:

H1 = lookup_value

=VLOOKUP($H1,$A$1:$C$3,COLUMNS($A:B),0)

Biff

"oldLearner57" wrote in message
...
hi

can use vlookup function to return with 2 columns value ?

example:

A B C
1 H Home $200

2 C Car $100

3 B Boat $250


by using the above range, i know how to use the vlookup to return, say,
A1,
it return for me "Home"...(i.e: =vlookup(lookupValue,A1:C3,2)

how can i use the lookup to return more than 1 data, example, base on the
above, I want it to display for me "Home" and "$200", and have them place
in
separated cell?

any help community ?

thanks community :)


--
oldLearner57




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default vlookup to return 2 columns

Another way...

Select two cells in a row and while selected type in this lookup formula:

=VLOOKUP(D1,A1:C3,{2,3},0)

Now hit Ctrl + Shift + Enter, you will get { }'s around the formula and
your lookup values will be in the two cells.

HTH
Regards,
Howard

"oldLearner57" wrote in message
...
hi

can use vlookup function to return with 2 columns value ?

example:

A B C
1 H Home $200

2 C Car $100

3 B Boat $250


by using the above range, i know how to use the vlookup to return, say,
A1,
it return for me "Home"...(i.e: =vlookup(lookupValue,A1:C3,2)

how can i use the lookup to return more than 1 data, example, base on the
above, I want it to display for me "Home" and "$200", and have them place
in
separated cell?

any help community ?

thanks community :)


--
oldLearner57



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default vlookup to return 2 columns

You're welcome. Thanks for the feedback!

Biff

"oldLearner57" wrote in message
...
hi T. Valko :) thanks it works well :)
the 2nd formula works fine, need to absolute the lookup range

much appreciated :)

thanks again

thanks community
--
oldLearner57


"T. Valko" wrote:

You need 2 formulas in 2 cells.

Actually, you can enter 1 formula in 1 cell and then just drag copy
across
to the other cell.

Try this:

=VLOOKUP(lookup_value,$A$1:$C$3,COLUMNS($A:B),0)

Now just drag copy across to the other cell.

If the lookup_value is a reference to a cell make at least the column
reference absolute:

H1 = lookup_value

=VLOOKUP($H1,$A$1:$C$3,COLUMNS($A:B),0)

Biff

"oldLearner57" wrote in message
...
hi

can use vlookup function to return with 2 columns value ?

example:

A B C
1 H Home $200

2 C Car $100

3 B Boat $250


by using the above range, i know how to use the vlookup to return, say,
A1,
it return for me "Home"...(i.e: =vlookup(lookupValue,A1:C3,2)

how can i use the lookup to return more than 1 data, example, base on
the
above, I want it to display for me "Home" and "$200", and have them
place
in
separated cell?

any help community ?

thanks community :)


--
oldLearner57








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default vlookup to return 2 columns

thanks L. Howard Kittle :) much appreciated :)
yes! it works good

thanks again

thanks community
--
oldLearner57


"L. Howard Kittle" wrote:

Another way...

Select two cells in a row and while selected type in this lookup formula:

=VLOOKUP(D1,A1:C3,{2,3},0)

Now hit Ctrl + Shift + Enter, you will get { }'s around the formula and
your lookup values will be in the two cells.

HTH
Regards,
Howard

"oldLearner57" wrote in message
...
hi

can use vlookup function to return with 2 columns value ?

example:

A B C
1 H Home $200

2 C Car $100

3 B Boat $250


by using the above range, i know how to use the vlookup to return, say,
A1,
it return for me "Home"...(i.e: =vlookup(lookupValue,A1:C3,2)

how can i use the lookup to return more than 1 data, example, base on the
above, I want it to display for me "Home" and "$200", and have them place
in
separated cell?

any help community ?

thanks community :)


--
oldLearner57




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vlookup 3 columns all return same Micayla Bergen Excel Discussion (Misc queries) 4 March 13th 06 10:26 PM
Can I return multiple columns from a vlookup? carolyn Excel Worksheet Functions 3 February 8th 06 09:46 PM
How do I return the row for a value I VLOOKUP? fryerfarm Excel Worksheet Functions 2 December 1st 05 09:40 PM
Vlookup return multiple columns Matt Cromer Excel Worksheet Functions 3 September 19th 05 08:41 PM
Want VLookup to Return the row above JoOwl0 Excel Worksheet Functions 8 April 23rd 05 07:16 PM


All times are GMT +1. The time now is 08:02 AM.

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

About Us

"It's about Microsoft Excel"