Lookup Across Multiple Worksheets Using Three Criteria

dwgnome

Active Member
Joined
Dec 18, 2005
Messages
441
I have a workbook consisting of worksheets with the same layout by month (i.e, Jan 2012, Feb 2012). From that I wish to lookup across each of the worksheets and list all category levels and corresponding months for the three criteria in columns B, C and D which are drop down boxes.

List Based

*
B
C
D
E
F
7
*
General
*
Category
*
8
Name
Category
Place
Level
Month
9
Tuco
Pictorial
3rd Place
PI
Jan
10
*
*
*

PI​
Apr
11
*
*
*

PI​
May
12
*
*
*
#NUM!
*

<tbody>
</tbody>

Spreadsheet Formulas

Cell
Formula
E9
{=INDEX('May 2012'!$B$9:$B$100,SMALL(IF(($B$9='May 2012'!$C$9:$C$100)*('May 2012'!$I$9:$I$100=$C$9)*('May 2012'!$D$9:$D$100=$D$9),ROW('May 2012'!$B$9:$B$100)-MIN(ROW('May 2012'!$B$9:$B$100))+1),ROW(1:1)))}
E10
{=INDEX('May 2012'!$B$9:$B$100,SMALL(IF(($B$9='May 2012'!$C$9:$C$100)*('May 2012'!$I$9:$I$100=$C$9)*('May 2012'!$D$9:$D$100=$D$9),ROW('May 2012'!$B$9:$B$100)-MIN(ROW('May 2012'!$B$9:$B$100))+1),ROW(2:2)))}
E11
{=INDEX('May 2012'!$B$9:$B$100,SMALL(IF(($B$9='May 2012'!$C$9:$C$100)*('May 2012'!$I$9:$I$100=$C$9)*('May 2012'!$D$9:$D$100=$D$9),ROW('May 2012'!$B$9:$B$100)-MIN(ROW('May 2012'!$B$9:$B$100))+1),ROW(3:3)))}
E12
{=INDEX('May 2012'!$B$9:$B$100,SMALL(IF(($B$9='May 2012'!$C$9:$C$100)*('May 2012'!$I$9:$I$100=$C$9)*('May 2012'!$D$9:$D$100=$D$9),ROW('May 2012'!$B$9:$B$100)-MIN(ROW('May 2012'!$B$9:$B$100))+1),ROW(4:4)))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!


<tbody>
</tbody>

Data Validation in Spreadsheet

Cell
Allow
Datas
Input 1
Input 2
B9
List
*
Tuco, Blonde,Angel Eyes
*
C9
List
*
=Category_General
*
D9
List
*
=Place
*

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4

I was able to get the formula to work for the May 2012 worksheet. However, I need to do this for all worksheets in the named range MnthTabs. The above table shows the results I am looking for so it does not necessarily match the formulas shown. But the formula works for the one month I tested.

In a previous post, I received help which allowed me to sum all occurrences based on two criteria accross sheets:

Code:
=SUMPRODUCT(--(T(OFFSET(INDIRECT("'"&MnthTabs&"'!D9:D100"),ROW(INDIRECT("D9:D100"))-9,,))=G$7),--(T(OFFSET(INDIRECT("'"&MnthTabs&"'!C9:C100"),ROW(INDIRECT("C9:C100"))-9,,))=$E52))

Where MnthTabs is the list of worksheets, G7 is the criteria (Pictorial, Creative etc.) and E52 is the criteria for the persons name.

Perhaps some combination of the two formulas would work. Any ideas?

Excel 2003, native functions only.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
The result in E9 is the result of the corresponding formula. I added the month next to it as I could not figure out how to extract that.

Help much appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,110
Members
449,205
Latest member
ralemanygarcia

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top