Sorting a List by using dropdowns

lost_in_the_sauce

Board Regular
Joined
Jan 18, 2021
Messages
128
Office Version
  1. 365
Platform
  1. Windows
My data set is categorized by store/metric/month, with store in column A, metric (sales, cogs, payroll, etc) in column B. C1-N1 is Jan-Dec, and everything below that is numbers pulled from a tab that contains a data export from Smartsheets. Column A & B repeat enough that there is every possible store/metric combo.

I'd like to have another tab that has a lost of every store in columns with all the metrics in the rows that will populate/reorder high to low based on 2 drop down boxes - one for month and one for metric.
Is this possible? I've been stumped trying to engineer it.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Urban Air Financial Performance by Park 2022.xlsx
ABCDEFGHIJ
1ParkCategoryJanuaryFebruaryMarchAprilMayJuneJulyAugust
2Main St Revenue 161274146176413116.97138502.82167541218278.430176873.57
3Main St COGS 104361442637616.6823034.0525259.9952183.63025586.87
4Main St Gross Profit 150838131750375500.29115468.77142281.01166094.80151286.7
5Main St Payroll 4728942830131959.537941.873959863371.42052668.56
6Main St Marketing -5015007507507500750
7Main St Insurance 5360536512219.825365.02120597452.6206691
8Main St Occupancy 379663860483548.6637013.814153244795.3076501
9Main St Other 198972468472079.9538702.2429953.8828897.88040558.81
10Main St Total Opex 110507111483301307.93119772.94123892.88145267.220177169.37
11Main St EBITDA 403312026774192.36-4304.1718388.1320827.580-25882.67
12Main St EBITDA % 25%14%18%-3%11%10%--15%
13Main St % COGS 6%10%9%17%15%24%-14%
14Main St % GP 94%90%91%83%85%76%-86%
15Main St % Payroll 29%29%32%27%24%29%-30%
16Main St % Marketing 0%0%0%1%0%0%-0%
17Main St % Insurance 3%4%3%4%7%3%-4%
18Main St % Occupancy 24%26%20%27%25%21%-43%
19Main St % Other OpEx 12%17%17%28%18%13%-23%
20Main St % OpEx 69%76%73%86%74%67%-100%
21Chicago St Revenue 683433.541304813.94494203.4412691.43275129.77225493.72508379.04268894.48
22Chicago St COGS 69172.38126160.8362226.5667780.6741830.1625714.2964247.2433632.51
23Chicago St Gross Profit 614261.161178653.11431976.84344910.76233299.61199779.43444131.8235261.97
24Chicago St Payroll 136275.88178065.24109204.9273053.4868441.4474935.64283533.468464.22
25Chicago St Marketing 29051.6644931.5731577.9620804.9317279.1311304.8820999.9815808.2
26Chicago St Insurance 23730.262783.6423943.8813040.1316560.7317025.5835169.1622096.47
27Chicago St Occupancy 61755.9890511.6530383.430963.3129565.9329310.7155840.7730131.91
28Chicago St Other 65381.74115076.9468943.5154456.6254363.8134690.7361403.4130743.1
29Chicago St Total Opex 316195.52431369.04264053.67192318.47186211.04167267.54456946.72167243.9
30Chicago St EBITDA 298065.64747284.07167923.17152592.2947088.5732511.89-12814.9268018.07
31Chicago St EBITDA % 44%57%34%37%17%14%-3%25%
32Chicago St % COGS 10%10%13%16%15%11%13%13%
33Chicago St % GP 90%90%87%84%85%89%87%87%
34Chicago St % Payroll 20%14%22%18%25%33%56%25%
35Chicago St % Marketing 4%3%6%5%6%5%4%6%
36Chicago St % Insurance 3%0%5%3%6%8%7%8%
37Chicago St % Occupancy 9%7%6%8%11%13%11%11%
38Chicago St % Other OpEx 10%9%14%13%20%15%12%11%
39Chicago St % OpEx 46%33%53%47%68%74%90%62%
Data Sort
Cell Formulas
RangeFormula
C2:J3,C5:J9,C21:J22,C24:J28C2=SUMPRODUCT((Data!$B$2:$B$1214=C$1)*(Data!$J$1:$P$1=$B2)*(Data!$F$2:$F$1214=$A2)*(Data!$J$2:$P$1214))
C4:J4,C23:J23C4=C2-C3
C10:J10,C29:J29C10=C9+C8+C7+C6+C5
C11:J11,C30:J30C11=C4-C10
C12:J12,C31:J31C12=IFERROR(C11/C2,"-")
C13:J13,C32:J32C13=IFERROR(C3/C2,"-")
C14:J14,C33:J33C14=IFERROR(C4/C2,"-")
C15:J15,C34:J34C15=IFERROR(C5/C2,"-")
C16:J16,C35:J35C16=IFERROR(C6/C2,"-")
C17:J17,C36:J36C17=IFERROR(C7/C2,"-")
C18:J18,C37:J37C18=IFERROR(C8/C2,"-")
C19:J19,C38:J38C19=IFERROR(C9/C2,"-")
C20:J20,C39:J39C20=IFERROR(C10/C2,"-")
 
Upvote 0
For "Park," there are 157 in this list, each with the metrics listed for each month.

I'd like to have a tab with the 157 parks in column A (probably starting at row 10) and the columns going right are the metrics, that reorder the list by a specific metric based on the two drop downs above, month and metric.
 
Upvote 0
Thanks for sharing sample data. Unfortunately I can't copy the data as it's linked to some another sheet in your database. Still would try to help you.
 
Upvote 0
Urban Air Financial Performance by Park 2022.xlsx
ABCDEFGHIJ
1ParkCategoryJanuaryFebruaryMarchAprilMayJuneJulyAugust
2Urban Air Ahwatukee Revenue 161274146176413116.97138502.82167541218278.430176873.57
3Urban Air Ahwatukee COGS 104361442637616.6823034.0525259.9952183.63025586.87
4Urban Air Ahwatukee Gross Profit 150838131750375500.29115468.77142281.01166094.80151286.7
5Urban Air Ahwatukee Payroll 4728942830131959.537941.873959863371.42052668.56
6Urban Air Ahwatukee Marketing -5015007507507500750
7Urban Air Ahwatukee Insurance 5360536512219.825365.02120597452.6206691
8Urban Air Ahwatukee Occupancy 379663860483548.6637013.814153244795.3076501
9Urban Air Ahwatukee Other 198972468472079.9538702.2429953.8828897.88040558.81
10Urban Air Ahwatukee Total Opex 110507111483301307.93119772.94123892.88145267.220177169.37
11Urban Air Ahwatukee EBITDA 403312026774192.36-4304.1718388.1320827.580-25882.67
12Urban Air Ahwatukee EBITDA % 25%14%18%-3%11%10%--15%
13Urban Air Ahwatukee % COGS 6%10%9%17%15%24%-14%
14Urban Air Ahwatukee % GP 94%90%91%83%85%76%-86%
15Urban Air Ahwatukee % Payroll 29%29%32%27%24%29%-30%
16Urban Air Ahwatukee % Marketing 0%0%0%1%0%0%-0%
17Urban Air Ahwatukee % Insurance 3%4%3%4%7%3%-4%
18Urban Air Ahwatukee % Occupancy 24%26%20%27%25%21%-43%
19Urban Air Ahwatukee % Other OpEx 12%17%17%28%18%13%-23%
20Urban Air Ahwatukee % OpEx 69%76%73%86%74%67%-100%
21Urban Air Akron Revenue 683433.541304813.94494203.4412691.43275129.77225493.72508379.04268894.48
22Urban Air Akron COGS 69172.38126160.8362226.5667780.6741830.1625714.2964247.2433632.51
23Urban Air Akron Gross Profit 614261.161178653.11431976.84344910.76233299.61199779.43444131.8235261.97
24Urban Air Akron Payroll 136275.88178065.24109204.9273053.4868441.4474935.64283533.468464.22
25Urban Air Akron Marketing 29051.6644931.5731577.9620804.9317279.1311304.8820999.9815808.2
26Urban Air Akron Insurance 23730.262783.6423943.8813040.1316560.7317025.5835169.1622096.47
27Urban Air Akron Occupancy 61755.9890511.6530383.430963.3129565.9329310.7155840.7730131.91
28Urban Air Akron Other 65381.74115076.9468943.5154456.6254363.8134690.7361403.4130743.1
29Urban Air Akron Total Opex 316195.52431369.04264053.67192318.47186211.04167267.54456946.72167243.9
30Urban Air Akron EBITDA 298065.64747284.07167923.17152592.2947088.5732511.89-12814.9268018.07
31Urban Air Akron EBITDA % 44%57%34%37%17%14%-3%25%
32Urban Air Akron % COGS 10%10%13%16%15%11%13%13%
33Urban Air Akron % GP 90%90%87%84%85%89%87%87%
34Urban Air Akron % Payroll 20%14%22%18%25%33%56%25%
35Urban Air Akron % Marketing 4%3%6%5%6%5%4%6%
36Urban Air Akron % Insurance 3%0%5%3%6%8%7%8%
37Urban Air Akron % Occupancy 9%7%6%8%11%13%11%11%
38Urban Air Akron % Other OpEx 10%9%14%13%20%15%12%11%
39Urban Air Akron % OpEx 46%33%53%47%68%74%90%62%
Data Sort
 
Upvote 0
I just tried working on data you shared.

Have you tried Table Slicers - I think they can do what you want without much effort.
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,981
Members
449,058
Latest member
oculus

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