Same formula's but one puts ties in Alpha order and the other does not

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
598
Office Version
  1. 365
Platform
  1. Windows
I have these formulas below. For now, they are sorting the same data. As weeks go on, one will do a weekly sort and other a YTD sort. For now, they are using the same data, but one puts ties in Alpha order and the other formulas do not. Is there something different between any of these formulas that would make one set put ties in Alpha order and the other does not.

Does not put ties in Alpha order
=SMALL($W$4:$W$23,ROWS($W$27:AA27))
=IFERROR(@INDEX(AA$4:AA$23,AGGREGATE(15,6,(ROW(AA$4:AA$23)-ROW(AA$4)+1)/($W$4:$W$23=$U28),COUNTIF($U28:$U$46,$U28))),"")
=SUMPRODUCT((ABS(AU29-0)<ABS($AS$3:$AS$23-0))+0)+1
Does put ties in Alpha order
=SMALL($A$5:$A$24,ROWS($A$5:L32))
=IFERROR(@INDEX(K$5:K$24,AGGREGATE(15,6,(ROW(K$5:K$24)-ROW(K$5)+1)/($A$5:$A$24=$O33),COUNTIF($O$5:$O33,$O33))),"")
=SUMPRODUCT((ABS(AK34-0)<ABS($M$5:$M$24-0))+0)+1

Any feedback will be appreciated.
James
 
I don't think that the formula is putting them in alphabetical order, rather it is using the order of the original list for the ties.

In the absence of accompanying sample data it is not entirely clear what you are attempting to do with those formulas but I would imagine that you could replace them with =SORT(FILTER(...
 
Upvote 0

Forum statistics

Threads
1,226,841
Messages
6,193,286
Members
453,788
Latest member
drcharle

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