#1   Report Post  
nemesis2
 
Posts: n/a
Default lookup two values

I have the following

Size Depth Lenght
24 2 4
24 3 6
24 4 8
30 2 10

Cell A1 = 24, Cell B1 = 3. I want the result on C1 to be 6. What would be
the formula?
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Size = A2:A5
Depth = B2:B5
Length = C2:C5

In C1 enter:

=SUMPRODUCT((A2:A5=A1)*(B2:B5=B1)*C2:C5)

--
HTH,

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


"nemesis2" wrote in message
...
I have the following

Size Depth Lenght
24 2 4
24 3 6
24 4 8
30 2 10

Cell A1 = 24, Cell B1 = 3. I want the result on C1 to be 6. What would

be
the formula?


  #3   Report Post  
paul
 
Posts: n/a
Default

or in c1 vlookup(a1,a2:c5,3),b1 would be vlookup(a1,a2:c5,2).One caveat tho
vlookup will find the first value of 24 and give you the adjacent column.I
dont know if ragdyers sumproduct method shows the options or not
my example assumes your table is a2 c5 and you type in your size or return
it in a1
hope this helps a little!

--
paul
remove nospam for email addy!



"RagDyer" wrote:

Size = A2:A5
Depth = B2:B5
Length = C2:C5

In C1 enter:

=SUMPRODUCT((A2:A5=A1)*(B2:B5=B1)*C2:C5)

--
HTH,

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


"nemesis2" wrote in message
...
I have the following

Size Depth Lenght
24 2 4
24 3 6
24 4 8
30 2 10

Cell A1 = 24, Cell B1 = 3. I want the result on C1 to be 6. What would

be
the formula?



  #4   Report Post  
nemesis2
 
Posts: n/a
Default

Thank you all.. this solved my problem

"RagDyer" wrote:

Size = A2:A5
Depth = B2:B5
Length = C2:C5

In C1 enter:

=SUMPRODUCT((A2:A5=A1)*(B2:B5=B1)*C2:C5)

--
HTH,

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


"nemesis2" wrote in message
...
I have the following

Size Depth Lenght
24 2 4
24 3 6
24 4 8
30 2 10

Cell A1 = 24, Cell B1 = 3. I want the result on C1 to be 6. What would

be
the formula?



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
Only text values matching using index/match lookup - data type pro Stanton Excel Worksheet Functions 1 August 2nd 05 01:05 AM
How do I LOOKUP text values Amber C-W Excel Worksheet Functions 4 July 20th 05 05:27 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
Lookup Function - Specific Values Steve Elliott Excel Worksheet Functions 6 April 9th 05 07:15 PM
Need help with lookup and comparing values Steve Excel Worksheet Functions 7 January 30th 05 02:38 PM


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