Resorting a result that is derived from a sorting formula

Anglais428v2

New Member
Joined
Jun 19, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
I have a formula that does exactly what I want - it gives me the top ten sectors (names) ordered highest to lowest. The formula is:
=LET(u,UNIQUE(FILTER(Sector,year>MIN(year))),TAKE(SORTBY(u,COUNTIFS(Sector,u),-1),10))
I now want to reorder the above list (of 10 sectors highest-lowest) to lowest to highest. The purpose of this is so the chart looks better

SectorCount
A
100​
B
75​
C
59​
D
56​
E
49​
F
37​
G
36​
H
35​
I
23​
J
17​

So the ideal new result would be to switch the above table from A-I order to I-A.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
How about
Excel Formula:
=LET(u,UNIQUE(FILTER(Sector,year>MIN(year))),TAKE(SORTBY(u,COUNTIFS(Sector,u),1),-10))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,871
Messages
6,175,095
Members
452,612
Latest member
MESTeacher

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