Extracting records that match different criteria for multiple reports in different sheets

jayjavina

New Member
Joined
Feb 3, 2009
Messages
34
Hi Excel Gurus,

I would like to ask for some assistance on how I can better manage this monthly report. Below are the conditions and the output will be shown in a different sheet in the below format

1. The DATA will be in a table format (Table1)
2. There will be a dropdown based on Location, Teacher & Name(Highlighted in Yellow)
  • Post Will Be dependent on Location
  • Name will also be dependent on the values selected on top
3. The Name selected will show the ACTUAL results from Table1 in the report table
4. The ACTUAL column will show each months values based on the individual selected.
5. The SAV column are savings based on the different tables at the bottom (Salary, Allowance & Tax Tables)
6. The report needs to be dynamic based on the values selected

I have tried using these formulas but my results didn't come out correct. Am not pretty sure on the accuracy of my data validation too.

=INDEX(A2:A17,AGGREGATE(15,6,(ROW(A2:A17)-ROW(A2)+1)/(A2:A17=$B$22),COLUMNS(B26:B26)),MATCH(A26,C1:K1,0))

=VLOOKUP(B26,A39:B43,2)

Please Help.

Thank you,
Jay



***This report will also be created in earlier versions of excel (2003-2010)

Table1
NameMonthLocationPostSalaryAllow1Allow2Allow3Tax 1Tax 2Tax 3
JoeJanEastTeacher1771304672376564
SiouxJanWestAdmin1147922849619356
ChinJanWestAdmin1482923663954963
MaxJanEastIntern1565922849619356
TimJanEastTeacher1597654286927457
JoeFebEastTeacher1600454375564544
SiouxFebWestAdmin1768274753703487
ChinFebWestAdmin1189384373444896
MaxFebEastIntern1482824287682962
TimFebEastTeacher1597654286927457
JoeMarEastTeacher1597654286927457
SiouxMarWestAdmin1921824287682962
ChinMarWestAdmin1404717851597787
MaxMarEastIntern1665454375564544
TimMarEastTeacher1597654286927457
JoeAprEastTeacher1687224552368552

<tbody>
</tbody>

LocationEast
PostTeacher
NameJoe
JanFebMarAprMay
ACTUALSAVACTUALSAVACTUALSAVACTUALSAVACTUALSAV
Salary177140
Allow1305
Allow24610
Allow37215
Tax 1372
Tax 2656
Tax 3646
Total84
Salary TableAllowance TableTax Table
100010205202
1200204010404
1400306015606
1600408020808
1800501002510010

<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Table 1 is located on Sheet1, A:K, with headers in the first row.

Salary, Allowance, and Tax tables are Sheet3.

Sheet2, where processing takes place.

LocationEast
PostTeacher
NameJoe
Jan
ACTUALSAV
Salary1771
Allow130
Allow246
Allow372
Tax 137
Tax 265
Tax 364

<COLGROUP><COL style="WIDTH: 70pt; mso-width-source: userset; mso-width-alt: 3299" width=93><COL style="WIDTH: 82pt; mso-width-source: userset; mso-width-alt: 3868" width=109><COL style="WIDTH: 48pt" width=64><TBODY>
</TBODY>

B7, control+shift+enter, not just enter, and copy down:
Rich (BB code):

=INDEX(Sheet1!$E$2:$K$17,MATCH(1,IF(Sheet1!$A$2:$A$17=$B$3,
  IF(Sheet1!$B$2:$B$17=B$5,IF(Sheet1!$C$2:$C$17=$B$1,
  IF(Sheet1!$D$2:$D$17=$B$2,1)))),0),MATCH($A7,Sheet1!$E$1:$K$1,0))

I have no idea what SAV is, so tere is no formula proposed for it.
 
Upvote 0
Thanks Aladin! Appreciate the help

Let me try to work it out at my end.

SAV means savings. its actually the Salary, allowance and tax tables.
Savings is based on the ACTUAL value. thats why I used a lookup function to get the desired savings based on the values on the left table or the ACTUAL column.
For example with Joe, since he has a salary of 1771, he will then get a savings of 40. am not sure if am doing it correctly.

My question on the data validation. on the yellow highlighted cells, how can i make it work that if i select east in the Location section, only those posts on the east will appear then the names available will be selected based on the post. what i mean is on those related values will come out if they are selected.

thanks,
Jay
 
Upvote 0
Thanks Aladin! Appreciate the help

Let me try to work it out at my end.

Ok. Here is the workbook I used:

https://dl.dropboxusercontent.com/u/65698317/jayjavina%20conditional%20index%20match.xlsx

SAV means savings. its actually the Salary, allowance and tax tables.
Savings is based on the ACTUAL value. thats why I used a lookup function to get the desired savings based on the values on the left table or the ACTUAL column.
For example with Joe, since he has a salary of 1771, he will then get a savings of 40. am not sure if am doing it correctly.

If you know how to calculate the savings manually, we can try to map that onto Excel

My question on the data validation. on the yellow highlighted cells, how can i make it work that if i select east in the Location section, only those posts on the east will appear then the names available will be selected based on the post. what i mean is on those related values will come out if they are selected.
[...]

If you want to create the required lists for data validation directly from the data (i.e., if you don't have preset lists elsewhere), you would probably need VBA. You can start another thread for that purpose.
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,922
Members
449,056
Latest member
denissimo

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