Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default Lookup with multiple criteria... please help!

I have a worksheet with a list of results, such as...

Michael Tom Sue
etc
Num1 Num2 Results Num1 Num2 Results Num1 Num2 Results
1 0 5 1 0 7
2 0 10 2 0 11
.... ... ... ... ... ...
10 0 25 10 0 24
1 1 6 1 1 9
2 1 12 2 1 14
.... ... ... ... ... ...
10 1 27 10 1 26

Hopefully, you get the idea. On another worksheet, I need to display the
results given the "name" and "num1" and "num2". The array references change
with the "name" chosen AND there are two search criteria per name. Could
anyone please help me out with the correct formula for this?
Thanks so much!
anna
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Lookup with multiple criteria... please help!

I'd use a pivot table for this.

"anna" wrote:

I have a worksheet with a list of results, such as...

Michael Tom Sue
etc
Num1 Num2 Results Num1 Num2 Results Num1 Num2 Results
1 0 5 1 0 7
2 0 10 2 0 11
... ... ... ... ... ...
10 0 25 10 0 24
1 1 6 1 1 9
2 1 12 2 1 14
... ... ... ... ... ...
10 1 27 10 1 26

Hopefully, you get the idea. On another worksheet, I need to display the
results given the "name" and "num1" and "num2". The array references change
with the "name" chosen AND there are two search criteria per name. Could
anyone please help me out with the correct formula for this?
Thanks so much!
anna

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default Lookup with multiple criteria... please help!

could you elaborate please? I am not familiar with this.
Thanks,
Anna

"Barb Reinhardt" wrote:

I'd use a pivot table for this.

"anna" wrote:

I have a worksheet with a list of results, such as...

Michael Tom Sue
etc
Num1 Num2 Results Num1 Num2 Results Num1 Num2 Results
1 0 5 1 0 7
2 0 10 2 0 11
... ... ... ... ... ...
10 0 25 10 0 24
1 1 6 1 1 9
2 1 12 2 1 14
... ... ... ... ... ...
10 1 27 10 1 26

Hopefully, you get the idea. On another worksheet, I need to display the
results given the "name" and "num1" and "num2". The array references change
with the "name" chosen AND there are two search criteria per name. Could
anyone please help me out with the correct formula for this?
Thanks so much!
anna

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Lookup with multiple criteria... please help!

Anna,
Hopefully this will point you in the right direction. There
may be a smarter way to do this so hopefully one of the "Formulae" gurus will
respond.

My data was cells A1 to I100 for the purpose of this test.

Row 1 contained the names(Michael,Tom, Sue) in every third column (A,D,G)
and row 2 contained the repeated headings "Num1","Num2","Result". Values of
"Num1" etc start in row 3

Cell L1 has the <Name, L2 the value of <Num1 and L3 the value of <Num2

The formula below is entered as an array formula using CtrlL+Shift + Enter

=INDEX($A$3:$I$100,MATCH(1,(L2=OFFSET(A3,0,MATCH(L 1,$A$1:$I$1,0)-1,100,1))*(L3=OFFSET(A3,0,MATCH(L1,$A$1:$I$1,0),10 0,1)),0),MATCH(L1,$A$1:$I$1,0)+2)


It allows for 100 rows of data but this can easily be changed.

You will have to qualify the various ranges sheet name or perhas better make
them named ranges. Note also it doesn't cater for error condtions which can
be handled using:

=IF(ISNA(Formula),"",Formula) to return a blank if an error occurs.

HTH

"anna" wrote:

I have a worksheet with a list of results, such as...

Michael Tom Sue
etc
Num1 Num2 Results Num1 Num2 Results Num1 Num2 Results
1 0 5 1 0 7
2 0 10 2 0 11
... ... ... ... ... ...
10 0 25 10 0 24
1 1 6 1 1 9
2 1 12 2 1 14
... ... ... ... ... ...
10 1 27 10 1 26

Hopefully, you get the idea. On another worksheet, I need to display the
results given the "name" and "num1" and "num2". The array references change
with the "name" chosen AND there are two search criteria per name. Could
anyone please help me out with the correct formula for this?
Thanks so much!
anna

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
Get cell value with multiple criteria lookup James Hobart Excel Worksheet Functions 1 October 28th 05 07:51 PM
Multiple Criteria in SumProduct, N/A Result dcd123 Excel Worksheet Functions 7 October 7th 05 01:26 PM
Counting by multiple criteria Risky Dave Excel Worksheet Functions 4 September 28th 05 01:29 PM
Dynamic range names, multiple criteria, sumproduct [email protected] Excel Discussion (Misc queries) 1 September 20th 05 02:58 AM
COUNTIF or SUM function (Multiple criteria) HELP!! Australia Excel Worksheet Functions 3 September 19th 05 07:39 AM


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