#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Array lookup

Hi, this is my situation. I have a table that I would like to find in the top
row the value given two situation, well let me give you an example:

30 45 60 75
Apple 4 3 2 1
Orange 5 2 3 4
Banana 2 4 3 1

The thing is, if I use Orange and 2 as default, I want to be able to obtain
45. Which formula I need to use?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Array lookup

Assume your "Apple" is in A2 and "30" is in B1:

=INDEX($A$1:$E$1,MATCH(2,OFFSET($A$2:$E$2,MATCH("O range",$A$2:$A$4,0)-1,0),0))

--
Regards,
Dave


"j0rg3a1b3rt0" wrote:

Hi, this is my situation. I have a table that I would like to find in the top
row the value given two situation, well let me give you an example:

30 45 60 75
Apple 4 3 2 1
Orange 5 2 3 4
Banana 2 4 3 1

The thing is, if I use Orange and 2 as default, I want to be able to obtain
45. Which formula I need to use?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 318
Default Array lookup

Here is one of doing it

=INDEX(B1:E1,1,MATCH(A6,OFFSET(B2:E4,MATCH(A5,A2:A 4,0)-1,,1),0))

This assumes that your grid is lying in A1 to E4 and A5 is where you enter
Orange etc and A6 is where you enter 2 etc.


"j0rg3a1b3rt0" wrote:

Hi, this is my situation. I have a table that I would like to find in the top
row the value given two situation, well let me give you an example:

30 45 60 75
Apple 4 3 2 1
Orange 5 2 3 4
Banana 2 4 3 1

The thing is, if I use Orange and 2 as default, I want to be able to obtain
45. Which formula I need to use?

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
lookup array HFC-SC New Users to Excel 3 August 14th 06 09:24 PM
Variable Table Array in Lookup Function matt_the_brum Excel Worksheet Functions 6 August 4th 06 05:07 PM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM
Lookup Array Formula aldsv Excel Worksheet Functions 4 October 25th 05 01:45 PM
Array Brad Excel Worksheet Functions 9 October 17th 05 09:00 PM


All times are GMT +1. The time now is 10:59 AM.

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"