Dynamic sorting Largest to Smallest

Jeyakumar

New Member
Joined
Mar 21, 2017
Messages
7
Hello team,

I have an excel sheet with raw data of exits of employees. I want to make dynamic summary of exit report like below with sorting of largest to smallest count exit reason wise (automatically every month, so excel should ignore the exit reason not available in the next month and the highest count of exit reason should come first every month)

Jan'23 report

Exit reason count

1. Better prospects 10
2. Personal reasons 8
3. Performance issue 1


Feb-23 report

Exit reason count

1. Starting own business 11
2. Performance issue 2
3. Personal reasons 1
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Would you be kind enough to help the forum help you and post some mocked up raw data using the xl2bb add in? There is a link below.
 
Upvote 1
365 I hope.
MrExcelPlayground16.xlsx
ABCDE
1NameExit DateReason1/1/2023
2John Smith 11/1/2023Fired for IncompentenceBetter Job - 8
3John Smith 21/2/2023SmellsOwn Business - 5
4John Smith 31/3/2023RetiredQuiet Quit - 5
5John Smith 41/4/2023Better JobSmells - 5
6John Smith 51/5/2023Own BusinessFired for Incompentence - 4
7John Smith 61/6/2023SmellsRetired - 3
8John Smith 71/7/2023RetiredComplete Jerk - 1
9John Smith 81/8/2023Better Job
10John Smith 91/9/2023Own Business
11John Smith 101/10/2023Quiet Quit
12John Smith 111/11/2023Fired for Incompentence
13John Smith 121/12/2023Smells
14John Smith 131/13/2023Better Job
15John Smith 141/14/2023Better Job
16John Smith 151/15/2023Own Business
17John Smith 161/16/2023Quiet Quit
18John Smith 171/17/2023Fired for Incompentence
19John Smith 181/18/2023Smells
20John Smith 191/19/2023Complete Jerk
21John Smith 201/20/2023Better Job
22John Smith 211/21/2023Own Business
23John Smith 221/22/2023Quiet Quit
24John Smith 231/23/2023Fired for Incompentence
25John Smith 241/24/2023Smells
26John Smith 251/25/2023Quiet Quit
27John Smith 261/26/2023Better Job
28John Smith 271/27/2023Better Job
29John Smith 281/28/2023Retired
30John Smith 291/29/2023Better Job
31John Smith 301/30/2023Own Business
32John Smith 311/31/2023Quiet Quit
33John Smith 322/1/2023Fired for Incompentence
34John Smith 332/2/2023Smells
35John Smith 342/3/2023Retired
36John Smith 352/4/2023Better Job
37John Smith 362/5/2023Own Business
38John Smith 372/6/2023Quiet Quit
39John Smith 382/7/2023Fired for Incompentence
40John Smith 392/8/2023Smells
41John Smith 402/9/2023Retired
42John Smith 412/10/2023Better Job
43John Smith 422/11/2023Own Business
44John Smith 432/12/2023Quiet Quit
45John Smith 442/13/2023Smells
46John Smith 452/14/2023Retired
47John Smith 462/15/2023Better Job
48John Smith 472/16/2023Quiet Quit
49John Smith 482/17/2023Fired for Incompentence
50John Smith 492/18/2023Smells
51John Smith 502/19/2023Retired
52John Smith 512/20/2023Better Job
53John Smith 522/21/2023Own Business
54John Smith 532/22/2023Quiet Quit
55John Smith 542/23/2023Fired for Incompentence
56John Smith 552/24/2023Smells
57John Smith 562/25/2023Retired
58John Smith 572/26/2023Better Job
59John Smith 582/27/2023Better Job
60John Smith 592/28/2023Own Business
61John Smith 603/1/2023Quiet Quit
62John Smith 613/2/2023Fired for Incompentence
63John Smith 623/3/2023Smells
64John Smith 633/4/2023Retired
Sheet6
Cell Formulas
RangeFormula
E2:E8E2=LET(a,SORT(FILTER(C2:C64,(B2:B64>=E1)*(B2:B64<=EOMONTH(E1,0)))),b,UNIQUE(a),c,IFERROR(SEQUENCE(ROWS(a))*(--((INDEX(a,1+SEQUENCE(ROWS(a)))=INDEX(a,SEQUENCE(ROWS(a)))))),0),d,SEQUENCE(ROWS(a)),e,FILTER(d,c=0),f,INDEX(e,1+SEQUENCE(ROWS(e)))-INDEX(e,SEQUENCE(ROWS(e))),g,FILTER(f,NOT(ISERR(f))),h,SEQUENCE(ROWS(g)+1,1,0,1),i,IF(h=0,INDEX(e,1),INDEX(g,h)),j,b&" - "&i,SORTBY(j,i,-1))
Dynamic array formulas.
 
Upvote 1
Solution
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 1

Forum statistics

Threads
1,223,275
Messages
6,171,126
Members
452,381
Latest member
Nova88

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