Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Look up multiple values

I have a table where I want a value based on looking at data in two columns
as follows;
Table:
A B C
1 Bore Pressure Length
2 100 760 80
3 100 1050 100
4 100 1200 100
5 125 670 80
6 125 830 100

I want to find a value in column C, based on an exact value from column A
and when given a value for column B the value immediately above it. (e.g If
i had a bore of 100 and pressure of 900, I would want the value of 100 from
row 3)
Hope this explains it, i have tried SUMPRODUCT in various formats but have
been unsuccessful.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
Default Look up multiple values

Try this array formula

=INDEX(C2:C6,MATCH(1,(A2:A6=100)*(B2:B6=900),0))

--

HTH

Bob

"stretch" wrote in message
...
I have a table where I want a value based on looking at data in two columns
as follows;
Table:
A B C
1 Bore Pressure Length
2 100 760 80
3 100 1050 100
4 100 1200 100
5 125 670 80
6 125 830 100

I want to find a value in column C, based on an exact value from column A
and when given a value for column B the value immediately above it. (e.g
If
i had a bore of 100 and pressure of 900, I would want the value of 100
from
row 3)
Hope this explains it, i have tried SUMPRODUCT in various formats but have
been unsuccessful.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Look up multiple values

I have tried this formula but it just gives a #VALUE, any ideas?




"Bob Phillips" wrote:

Try this array formula

=INDEX(C2:C6,MATCH(1,(A2:A6=100)*(B2:B6=900),0))

--

HTH

Bob

"stretch" wrote in message
...
I have a table where I want a value based on looking at data in two columns
as follows;
Table:
A B C
1 Bore Pressure Length
2 100 760 80
3 100 1050 100
4 100 1200 100
5 125 670 80
6 125 830 100

I want to find a value in column C, based on an exact value from column A
and when given a value for column B the value immediately above it. (e.g
If
i had a bore of 100 and pressure of 900, I would want the value of 100
from
row 3)
Hope this explains it, i have tried SUMPRODUCT in various formats but have
been unsuccessful.
Thanks



.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Look up multiple values

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.


stretch wrote:

I have tried this formula but it just gives a #VALUE, any ideas?

"Bob Phillips" wrote:

Try this array formula

=INDEX(C2:C6,MATCH(1,(A2:A6=100)*(B2:B6=900),0))

--

HTH

Bob

"stretch" wrote in message
...
I have a table where I want a value based on looking at data in two columns
as follows;
Table:
A B C
1 Bore Pressure Length
2 100 760 80
3 100 1050 100
4 100 1200 100
5 125 670 80
6 125 830 100

I want to find a value in column C, based on an exact value from column A
and when given a value for column B the value immediately above it. (e.g
If
i had a bore of 100 and pressure of 900, I would want the value of 100
from
row 3)
Hope this explains it, i have tried SUMPRODUCT in various formats but have
been unsuccessful.
Thanks



.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Look up multiple values

It works fine now, many thanks


"Dave Peterson" wrote:

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.


stretch wrote:

I have tried this formula but it just gives a #VALUE, any ideas?

"Bob Phillips" wrote:

Try this array formula

=INDEX(C2:C6,MATCH(1,(A2:A6=100)*(B2:B6=900),0))

--

HTH

Bob

"stretch" wrote in message
...
I have a table where I want a value based on looking at data in two columns
as follows;
Table:
A B C
1 Bore Pressure Length
2 100 760 80
3 100 1050 100
4 100 1200 100
5 125 670 80
6 125 830 100

I want to find a value in column C, based on an exact value from column A
and when given a value for column B the value immediately above it. (e.g
If
i had a bore of 100 and pressure of 900, I would want the value of 100
from
row 3)
Hope this explains it, i have tried SUMPRODUCT in various formats but have
been unsuccessful.
Thanks


.


--

Dave Peterson
.



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 - sum returned values into single cell se7098 Excel Worksheet Functions 12 April 2nd 23 07:32 PM
Adding multiple values in one column based on multiple values of the same value (text) in another column [email protected] Excel Discussion (Misc queries) 1 May 16th 07 06:02 PM
Adding numerical values based on multiple values in another column Kazmaniac Excel Worksheet Functions 6 April 4th 07 08:53 PM
How to calculate values in multiple values with multi conditions Curtis Excel Worksheet Functions 2 July 15th 05 02:36 AM


All times are GMT +1. The time now is 04:57 PM.

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

About Us

"It's about Microsoft Excel"