Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Charlou
 
Posts: n/a
Default Lookup using more than one Lookup value

I am currently using vlookup to put together a summary sheet. However, I
would like to Look up Column A and B, and then return the corresponding
Column C figure. For example:

John Brown 6
John Green 5
John Black 7

If Forename is Column A, Surname is Colume B and Column C is the value I
need to return to the summary sheet. I'm not sure how to lookup more than
one column?

Any ideas??????
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Charlou,

=SUMPRODUCT(--(A1:A3="John"),--(B1:B3="Green"),C1:C3)

Or if you want to have it on another sheet:

=SUMPRODUCT(--(Sheet1!A1:A3="John"),--(Sheet1!B1:B3="Green"),Sheet1!C1:C3)

And the John and Green can also be in cells:

=SUMPRODUCT(--(Sheet1!A1:A3=A1),--(Sheet1!B1:B3=B1),Sheet1!C1:C3)
--
HTH,
Bernie
MS Excel MVP

"Charlou" wrote in message
...
I am currently using vlookup to put together a summary sheet. However, I
would like to Look up Column A and B, and then return the corresponding
Column C figure. For example:

John Brown 6
John Green 5
John Black 7

If Forename is Column A, Surname is Colume B and Column C is the value I
need to return to the summary sheet. I'm not sure how to lookup more than
one column?

Any ideas??????



  #3   Report Post  
RagDyeR
 
Posts: n/a
Default

Try this *array* formula:

=INDEX(Sheet1!$C$2:$C$5,MATCH(1,(Sheet1!$A$2:$A$5= A2)*(Sheet1!$B$2:$B$5=B2),
0))

Array formulas must be entered using C,S,E, <Ctrl <Shift <Enter, instead
of just Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"Charlou" wrote in message
...
I am currently using vlookup to put together a summary sheet. However, I
would like to Look up Column A and B, and then return the corresponding
Column C figure. For example:

John Brown 6
John Green 5
John Black 7

If Forename is Column A, Surname is Colume B and Column C is the value I
need to return to the summary sheet. I'm not sure how to lookup more than
one column?

Any ideas??????


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
How to create a lookup table with an added varable? GIZZMO Excel Worksheet Functions 3 April 6th 09 10:32 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
Lookup Problem StephanieH Excel Worksheet Functions 1 December 20th 04 06:17 PM
Excel Lookup Functions Paul Adams Excel Worksheet Functions 1 November 10th 04 02:40 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


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