populate data based on multiple criteria

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have below sample table that has different teams and managers, what I need to do is, when I select specific team and manager from the drop down menu, the categories list should be updated based on selected team and manager, can anyone help?
I have another challenge, each team has unique manager, i.e. Team1 has Manager1 and Manager2, I need the drop down list to populate only the managers from the selected team, any suggestion?

Here's the data:

Populate Data based on 2 criteria.xlsx
ABCDEFGHIJKLMNOPQ
1Team NameTeam1Team4Team3Team2Team1Team2Team4Team2Team2Team3Team3Team3Team2Team4Team4
2Category/ManagerManager1Manager12Manager10Manager5Manager2Manager3Manager13Manager4Manager6Manager8Manager9Manager11Manager7Manager14Manager15
3Category1335551546038565361465154576249
4Category2184543425313484555375147505741
5Category3365850685543502953374448554855
6Category4507172877935756182676475718178
7Category54632414630383749273233543434
8Category6425958506653585061415359636750
9Category7265451436244567763495253586252
10Category82644443353215453425047476432
11Category9294536404323422446344237405034
12Category103858596463386850525258557563
13Category11335043505550597059395954526538
14Category126081788887807910096757390818465
15Category13-50-25-7-2011-887-40-12-21-28-14-1170
16
17
18
19Team1
20
21Manager1
22
23Category133
24Category218
25Category336
26Category450
27Category5
28Category642
29Category726
30Category826
31Category929
32Category1038
33Category1133
34Category1260
35Category13-50
36
37
Sheet1
Cells with Data Validation
CellAllowCriteria
B19:B20List=$B$1:$P$1
B21List=$B$2:$P$2
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
How about.
Excel Formula:
=FILTER(B3:P15,(B1:P1=B19)*(B2:P2=B21),"")
 
Upvote 0
How about.
Excel Formula:
=FILTER(B3:P15,(B1:P1=B19)*(B2:P2=B21),"")
Thanks for your help! How about a formula to populate all the managers under a selected team from the drop down list? Like below example, I selected Team4, then all the managers within this team should be populated?

Populate Data based on 2 criteria.xlsx
ABCDEFGHIJKLMNOP
1Team NameTeam1Team4Team3Team2Team1Team2Team4Team2Team2Team3Team3Team3Team2Team4Team4
2Category/ManagerManager1Manager12Manager10Manager5Manager2Manager3Manager13Manager4Manager6Manager8Manager9Manager11Manager7Manager14Manager15
3Category1335551546038565361465154576249
4Category2184543425313484555375147505741
5Category3365850685543502953374448554855
6Category4507172877935756182676475718178
7Category54632414630383749273233543434
8Category6425958506653585061415359636750
9Category7265451436244567763495253586252
10Category82644443353215453425047476432
11Category9294536404323422446344237405034
12Category103858596463386850525258557563
13Category11335043505550597059395954526538
14Category126081788887807910096757390818465
15Category13-50-25-7-2011-887-40-12-21-28-14-1170
16
17
18
19Team4
20
21
22Manager12Manager13Manager14Manager15
23Category155566249
24Category245485741
25Category358504855
26Category471758178
27Category546383434
28Category659586750
29Category754566252
30Category844546432
31Category945425034
32Category1058687563
33Category1150596538
34Category1281798465
35Category13-25770
36
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:P1Cell Value="Team4"textNO
Cells with Data Validation
CellAllowCriteria
B19:B20List=$B$1:$P$1
 
Upvote 0
Try:
Excel Formula:
=FILTER(B2:P2,B1:P1=B19)
 
Upvote 0
Try:
Excel Formula:
=FILTER(B2:P2,B1:P1=B19)
The formula gave me only the managers list, what I need is the manager list along with their results, for each category, just like the expected results table in my example below:

Populate Data based on 2 criteria.xlsx
ABCDEFGHIJKLMNOP
1Team NameTeam1Team4Team3Team2Team1Team2Team4Team2Team2Team3Team3Team3Team2Team4Team4
2Category/ManagerManager1Manager12Manager10Manager5Manager2Manager3Manager13Manager4Manager6Manager8Manager9Manager11Manager7Manager14Manager15
3Category1335551546038565361465154576249
4Category2184543425313484555375147505741
5Category3365850685543502953374448554855
6Category4507172877935756182676475718178
7Category54632414630383749273233543434
8Category6425958506653585061415359636750
9Category7265451436244567763495253586252
10Category82644443353215453425047476432
11Category9294536404323422446344237405034
12Category103858596463386850525258557563
13Category11335043505550597059395954526538
14Category126081788887807910096757390818465
15Category13-50-25-7-2011-887-40-12-21-28-14-1170
16
17
18
19Team4
20Expected results
21
22Manager12Manager13Manager14Manager15Manager12Manager13Manager14Manager15
23Category155566249
24Category245485741
25Category358504855
26Category471758178
27Category546383434
28Category659586750
29Category754566252
30Category844546432
31Category945425034
32Category1058687563
33Category1150596538
34Category1281798465
35Category13-25770
36
Sheet1
Cell Formulas
RangeFormula
G22:J22G22=FILTER(B2:P2,B1:P1=B19)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:P1Cell Value="Team4"textNO
Cells with Data Validation
CellAllowCriteria
B19:B20List=$B$1:$P$1
 
Upvote 0
Adjust the first range like this.
Excel Formula:
=FILTER(B2:P15,B1:P1=B19)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,878
Messages
6,181,529
Members
453,053
Latest member
DavidKele

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