Excel Formula - Sorting

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
961
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Helo everyone,

I wanted to ask how to sort a range of numbers in a cell range with blanks.
I found the following formula and changed to match my cell ranges.
=SMALL($AN20:$CW20,COLUMNS($CY20:CY20))
1>Ascending order
2>Remove any duplicates
Example: cell range AN20:CW20
1,4,6,48,55,1,22,73,46,46,81,6,46
What I would like to display starting in cell CY20
1,4,6,22,46,48,55,73,81
Thank you in advance
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
How about
+Fluff v2.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1
2146485512273464681646146224648557381
Main
Cell Formulas
RangeFormula
Q2:Y2Q2=IFERROR(AGGREGATE(15,6,$A2:$O2/($A2:$O2<>"")/(ISNA(MATCH($A2:$O2,$P2:P2,0))),1),"")
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

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