Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Barbara
 
Posts: n/a
Default How can I look up two seperate values/cells and return the value .

I would like to do two VLOOKUP type functions and have it return the value in
the third column. For instance, if I have an array something like this:

Purple Grape 5
Green Grape 9
Orange Lemon 2

In the spreadsheet I have:

A B C
Purple Grape ?

I would like to say if A and B match then give me C.

Thanks

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way


=INDEX(C2:C2000,MATCH(1,(A2:A2000="Purple")*(B2:B2 000="Grape"),0))


entered with ctrl + shift & enter

you should replace the criteria with cells (replace Grape and Purple woith 2
cells where you type the criteria, that way you don't have to edit the
formula when you want to change lookup values)


Regards,

Peo Sjoblom


"Barbara" wrote:

I would like to do two VLOOKUP type functions and have it return the value in
the third column. For instance, if I have an array something like this:

Purple Grape 5
Green Grape 9
Orange Lemon 2

In the spreadsheet I have:

A B C
Purple Grape ?

I would like to say if A and B match then give me C.

Thanks

  #3   Report Post  
Dave R.
 
Posts: n/a
Default

=INDEX(C1:C3,MATCH("purple",A1:A3,0),MATCH("grape" ,B1:B3,0))



"Barbara" wrote in message
...
I would like to do two VLOOKUP type functions and have it return the value

in
the third column. For instance, if I have an array something like this:

Purple Grape 5
Green Grape 9
Orange Lemon 2

In the spreadsheet I have:

A B C
Purple Grape ?

I would like to say if A and B match then give me C.

Thanks



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
Pivot Table Zero Value jcliquidtension Excel Discussion (Misc queries) 12 January 13th 05 04:21 AM
VLookup Return Value Kevin Excel Worksheet Functions 4 December 3rd 04 03:05 PM
Automatic return in an excel worksheet Peggy Excel Worksheet Functions 2 November 11th 04 01:52 AM
Return the end of month date from a date Steve F. Excel Worksheet Functions 3 October 28th 04 06:17 PM
VBA: Return Searched Value Inputed by End-User Mcasteel Excel Worksheet Functions 1 October 28th 04 03:09 PM


All times are GMT +1. The time now is 01:09 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"