Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default vlookup on multiple values

I have the following data in 3 columns

A B C
TOP BULB 1
TOP SCREW 5
TOP LIGHT 1
TOP LAMP 1
TOP PAPER 1
BOTTOM BULB 5
BOTTOM SCREW 4
BOTTOM LIGHT 2
BOTTOM LAMP 8
BOTTOM PAPER 7


I want to be able to first match against the value in column a then find the
match in column b once it finds both match then return the result of column
3.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default vlookup on multiple values

Insert a new column A.

In the new column A concatenate the data from what is now column B and
column C. Example of a row two formula:

=B2&" "&C2

Now you can use a vLookUp function on Column A with an offset of 4 to return
data from what is now column D.

Good Luck.

"samuel" wrote:

I have the following data in 3 columns

A B C
TOP BULB 1
TOP SCREW 5
TOP LIGHT 1
TOP LAMP 1
TOP PAPER 1
BOTTOM BULB 5
BOTTOM SCREW 4
BOTTOM LIGHT 2
BOTTOM LAMP 8
BOTTOM PAPER 7


I want to be able to first match against the value in column a then find the
match in column b once it finds both match then return the result of column
3.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default vlookup on multiple values

1) If you can add a new A column:
In new A1 use =B1&C1
With BOTTOM in G1 and SCREW in H1, use =VLOOKUP(G1&H1,A1:D10,4,FALSE)

2) If you cannot insert, then add a new column (I will assume in D but
anywhere is OK)
In D1 use =A1&B1
With BOTTOM in G1 and SCREW in H1, use =INDEX(D1:D10,MATCH(G1&H1,A1:A10,0))

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"samuel" wrote in message
...
I have the following data in 3 columns

A B C
TOP BULB 1
TOP SCREW 5
TOP LIGHT 1
TOP LAMP 1
TOP PAPER 1
BOTTOM BULB 5
BOTTOM SCREW 4
BOTTOM LIGHT 2
BOTTOM LAMP 8
BOTTOM PAPER 7


I want to be able to first match against the value in column a then find
the
match in column b once it finds both match then return the result of
column
3.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default vlookup on multiple values

=SUMPRODUCT(--(A1:A100="Top"),--(B1:B100="Bulb),C1:C100)


"samuel" wrote:

I have the following data in 3 columns

A B C
TOP BULB 1
TOP SCREW 5
TOP LIGHT 1
TOP LAMP 1
TOP PAPER 1
BOTTOM BULB 5
BOTTOM SCREW 4
BOTTOM LIGHT 2
BOTTOM LAMP 8
BOTTOM PAPER 7


I want to be able to first match against the value in column a then find the
match in column b once it finds both match then return the result of column
3.

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 multiple values suraneniaditya Excel Worksheet Functions 4 March 7th 08 03:58 AM
Vlookup for multiple values SCHM Excel Worksheet Functions 6 June 23rd 06 09:10 PM
How do I allow for multiple values in VLOOKUP? Indy_Ball Excel Worksheet Functions 3 May 1st 06 09:57 PM
vlookup, multiple values, sum values into one cell?? Phillips L Excel Worksheet Functions 4 November 9th 05 12:31 AM
VLOOKUP FOR MULTIPLE VALUES RITA Setting up and Configuration of Excel 1 February 10th 05 11:42 PM


All times are GMT +1. The time now is 08:27 PM.

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"