how to list unique numbers sorted descending

raghuram.star

Board Regular
Joined
Sep 5, 2012
Messages
102
can you please help me get the list of unique numbers from a list sorted in descending order

I have below array formula, this is taking too long to refresh the list, as i have almost 15000 rows source data and the below formula is used 53 to get to 53 from the list

=IFERROR(INDEX($A$1:$A$15000, MATCH(MIN(IF(COUNTIF($B$1:B2, $A$1:$A$15000)=0, 1, MAX((COUNTIF($A$1:$A$15000, ">"&$A$1:$A$15000)+1)*2))*(COUNTIF($A$1:$A$15000, ">"&$A$1:$A$15000)+1)), COUNTIF($A$1:$A$15000, ">"&$A$1:$A$15000)+1, 0)),"")

I have 15000 rows of data in Column A - from A1 to A15000
Formula in Column B - from Cell B2

Any help in getting the same result faster will be a great help.

Thanks in advance
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
could you not just use Data>>Advanced filter>>unique records only
 
Upvote 0
Hi.

If you insist upon a formula solution, then, since you say that the values in column A are numbers, I don't see why you are using a COUNTIF construction.

Simply:

=LARGE(IF(FREQUENCY(A$1:A$15000,A$1:A$15000),A$1:A$15000),ROWS($1:1))

and copied down will suffice, though of course this assumes that every single cell within the range A1:A15000 contains a number (you don't mention blanks, so I assume that there are none within your range).

Regards
 
Upvote 0

Forum statistics

Threads
1,214,613
Messages
6,120,515
Members
448,968
Latest member
Ajax40

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