Top 5 States With Values

ZSchoonover

New Member
Joined
Sep 26, 2017
Messages
8
So I've been researching all day on how to do this, and I'm a bit confused on how to proceed. I need to create multiple top 5 list of States from a data series. I've included a screenshot to help better understand what it I'm trying to achieve. In short, I need excel to auto calculate the top 5 states for students who have applied for spring and fall semesters and return the state name next to the number itself. This info will be populated into 2 separate areas of the sheet C11:D15 and C35:D38. There will be duplicates included with this.

Capture_zps8vqdng8b.png
[/URL][/IMG]

The range L2:L51 is labeled "States", M2:M51 is "Spring18", and N2:N51 is "Fall18". This list is dynamic and will be changing quite often so the formulas that calculate the top 5 need to be dynamic as well. I've not had to go this far in depth with excel in years and as such this is the first time I've dealt with arrays and lengthy functions, so I apologize in advance if I'm missing any pertinent information. I'm also using excel 2016/excel 365.

Thanks,
Zach
 
201820
State
201820
201840
AC/AK
7
AK
0
0
HE
8
AL
0
0
WD
4
AR
0
0
RJ
0
AZ
0
0
Total Apps.
15
CA
0
0
Av. UG GPA
3.08
CO
0
0
CT
0
0
Top 5 States
DE
0
0
State
Apps
FL
1
2
1
GA
0
0
2
HI
0
0
3
IA
0
0
4
ID
0
0
5
IL
0
0
***Check for repating app
IN
0
1
numbers for 5th rank***
KS
0
0
KY
0
0
LA
0
1
MA
0
0
MD
2
1
ME
0
0
MI
1
0
201840
MN
0
0
AC/AK
5
MO
0
0
HE
15
MS
0
0
WD
3
MT
0
0
RJ
0
NC
0
1
Total Apps.
20
ND
0
0
Av. UG GPA
3.08
NE
0
0
NH
0
0
Top 5 States
NJ
0
2
State
Apps
NM
0
0
1
NV
0
0
2
NY
1
0
3
OH
0
0
4
OK
0
0
5
OR
0
0
***Check for repating app
PA
2
3
numbers for 5th rank***
RI
0
0
SC
0
1
SD
0
0
TN
0
0
TX
0
1
UT
0
0
VA
8
7
VT
0
0
WA
0
0
WI
0
0
WV
0
0
WY
0
0

<tbody>
</tbody>
 
Upvote 0

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"

Book1
ABCDEFGHIJKLMN
1201820State201820201840
2AC/AK7AK00
3HE8AL00
4WD4AR00
5RJ0AZ00
6Total Apps.15CA00
7Av. UG GPA3.08CO00
8CT00
9Top 5 StatesDE00
10StateAppsFL12
111GA00
122HI00
133IA00
144ID00
155IL00
16***Check for repating appIN01
17numbers for 5th rank***KS00
18KY00
19LA01
20MA00
21MD21
22ME00
23MI10
24201840MN00
25AC/AK5MO00
26HE15MS00
27WD3MT00
28RJ0NC01
29Total Apps.20ND00
30Av. UG GPA3.08NE00
31NH00
32Top 5 StatesNJ02
33StateAppsNM00
341NV00
352NY10
363OH00
374OK00
385OR00
39***Check for repating appPA23
40numbers for 5th rank***RI00
41SC01
42SD00
43TN00
44TX01
45UT00
46VA87
47VT00
48WA00
49WI00
50WV00
51WY00
1820 & 1840 Charts


Posted using the MrExcelHtml Add-In
 
Upvote 0
I see what I did wrong,

Lets try this in cell: C34

=IF($D34=$D33,INDEX(OFFSET($L$1,MATCH($C33,$L$1:$L$50,0),,51-MATCH($C33,$L$1:$L$51,0),1),MATCH($D34,OFFSET($N$1,MATCH($C33,$L$1:$L$50,0),,51-MATCH($C33,$L$1:$L$51,0),1),0)),INDEX($L$2:$L$51,MATCH($D34,$N$2:$N$51,0)))

Thanks...
 
Upvote 0

Forum statistics

Threads
1,216,174
Messages
6,129,296
Members
449,498
Latest member
Lee_ray

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