Index and Match or similar

Access Beginner

Active Member
Joined
Nov 8, 2010
Messages
311
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I have below some test data. Which in my version at work is a Pivot Table ( based on over 300,000 rows of data). The data is linked to a query in Access and when new data is imported and the pivot table is refreshed, values of 'Subject may' change. Once the new data has been updated in the Pivot Table, I copy the whole sheet and replace as values, thus removing the Pivot Table and leaving a static table. The raw data is then deleted, as the file is over 250MB with the data included, which is why I cannot use the power of a Pivot Table when sending the document up the chain.

What I do with this is then, create a dynamic table, which is used to create a chart, so a user can select his/her Region and the chart will update.

My issue, as the values of Subject may change, using a vlookup, means I will have to update the column number in each of the formulas. I had used Index and Match, but I cannot get it to work with 3 criteria.

This is a small example of the data, there could be up to 25 subjects and the subject numbers may vary from week to week. My data is run weekly.

I hope I have been clear.



Test data as below


Excel 2010
BCDEFGH
4FemaleFemaleFemaleMaleMaleMale
5Region NameSubject 1Subject 2Subject 3Subject 1Subject 3Subject 5
6Region 11202159514933875641306
7Region 2328536846633741625
8Region 3166915521765135112771190
9Region 4627151254211431091749
10Region 5136715106402474921852
11Region 6751263194512271441181
12Region 714744421219153112931808
13Region 81265411106510321820409
14Region 96511565173527001972
15Region 10148114938316548551164
16Region 111659145964613451049290
17Region 12582149414491843108555
18Region 13196312091698571906974
19Region 1419331013118513767151830
20Region 151369104417471262101049
21Region 16176063016791467285816
22All Regions191091770119875173691325717270
23
24Expected results when All Regions is selected ( data validation)
25FemaleFemaleFemaleMaleMaleMale
26Subject 1Subject 2Subject 3Subject 1Subject 3Subject 5
27All Regions191091770119875173691325717270
Sheet1
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

Perhaps try something like this for your 3 criteria match:

Sheet1
ABCDEFG
1
2
3
4FemaleFemaleFemaleMaleMaleMale
5Region NameSubject 1Subject 2Subject 3Subject 1Subject 3Subject 5
6Region 11202159514933875641306
7Region 2328536846633741625
8Region 3166915521765135112771190
9Region 4627151254211431091749
10Region 5136715106402474921852
11Region 6751263194512271441181
12Region 714744421219153112931808
13Region 81265411106510321820409
14Region 96511565173527001972
15Region 10148114938316548551164
16Region 111659145964613451049290
17Region 12582149414491843108555
18Region 13196312091698571906974
19Region 1419331013118513767151830
20Region 151369104417471262101049
21Region 16176063016791467285816
22All Regions191091770119875173691325717270
23
24Expected results when All Regions is selected ( data validation)
25FemaleFemaleFemaleMaleMaleMale
26Subject 1Subject 2Subject 3Subject 1Subject 3Subject 5
27All Regions191091770119875173691325717270

<thead>
</thead><tbody>
</tbody>
Excel 2010

Worksheet Formulas
CellFormula
B27=INDEX(4:22,MATCH($A27,$A$4:$A$22,0),MATCH(B$25&B$26,INDEX(4:4&5:5,0),0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
thanks for that, worked perfectly.

=INDEX(4:22.... part of the formula is referencing A4 to A22? Haven't seen cell referenced like that before, but then again, I'm still learning Excel.

Once again thanks :)
 
Upvote 0
thanks for that, worked perfectly.

=INDEX(4:22.... part of the formula is referencing A4 to A22? Haven't seen cell referenced like that before, but then again, I'm still learning Excel.

Once again thanks :)
Your welcome! No - the 4:22 references the whole of those rows. E.g. if your last column is XFD then it would be similar to A4:XFD22
 
Upvote 0

Forum statistics

Threads
1,215,329
Messages
6,124,302
Members
449,149
Latest member
mwdbActuary

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