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
*
*
*
*
*
*
Apr
*
*
*
May
*
*
*
*

<tbody>
[TD="bgcolor: #CACACA, align: center"]7
[/TD]

[TD="align: center"]General
[/TD]

[TD="align: center"]Category
[/TD]

[TD="bgcolor: #CACACA, align: center"]8
[/TD]
[TD="align: center"]Name
[/TD]
[TD="align: center"]Category
[/TD]
[TD="align: center"]Place
[/TD]
[TD="align: center"]Level
[/TD]
[TD="align: center"]Month
[/TD]

[TD="bgcolor: #CACACA, align: center"]9
[/TD]
[TD="bgcolor: #99CC00"]Tuco
[/TD]
[TD="bgcolor: #CCFFCC, align: center"]Pictorial
[/TD]
[TD="bgcolor: #CC99FF, align: center"]3rd Place
[/TD]
[TD="bgcolor: #FFCC00, align: center"]PI
[/TD]
[TD="bgcolor: #FF99CC"]Jan
[/TD]

[TD="bgcolor: #CACACA, align: center"]10
[/TD]

[TD="bgcolor: #FFCC00"]
PI​
[/TD]

[TD="bgcolor: #CACACA, align: center"]11
[/TD]

[TD="bgcolor: #FFCC00"]
PI​
[/TD]

[TD="bgcolor: #CACACA, align: center"]12
[/TD]

[TD="bgcolor: #FFCC00"]#NUM!
[/TD]

</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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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