Sort from Z-A with condition

el c

New Member
Joined
Mar 24, 2020
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hi,
I would like to sort the "Location" from Z-A for each order . The label "item" goes with the Location, they are pairs. Here is an example of what I want to do:

Book7
ABCDEFG
1OrdersitemLocationOrdersitemLocation
21367-66-400112761367-66-40011278
31311-12-141111191367-66-40011276
41311-12-14111033 to 1311-12-14111235
51311-12-141112351311-12-14111119
61367-66-400112781311-12-14111033
72418-15-001112372418-15-00111239
82418-15-001112392418-15-00111237
92418-15-001112312418-15-00111231
Sheet1
Cell Formulas
RangeFormula
E2:E9E2=A2
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How about
+Fluff.xlsm
ABCDEFG
1OrdersitemLocationOrdersitemLocation
21367-66-400112761367-66-40011278
31311-12-141111191367-66-40011276
41311-12-141110331311-12-14111235
51311-12-141112351311-12-14111119
61367-66-400112781311-12-14111033
72418-15-001112372418-15-00111239
82418-15-001112392418-15-00111237
92418-15-001112312418-15-00111231
Master
Cell Formulas
RangeFormula
E2:G9E2=SORTBY(A2:C9,A2:A9,1,C2:C9,-1)
Dynamic array formulas.
 
Upvote 0
Thank you for responding. When I copy-paste it it appears like this :

Book7
ABCDEFG
1OrdersitemLocationOrdersitemLocation
21367-66-40011276#NAME?
31311-12-14111119
41311-12-14111033
51311-12-14111235
61367-66-40011278
72418-15-00111237
82418-15-00111239
92418-15-00111231
Sheet1
Cell Formulas
RangeFormula
E2E2=SORTBY(A2:C9,A2:A9,1,C2:C9,-1)
 
Upvote 0
SORTBY()
Note: This function is currently available to Office 365 subscribers in the Monthly channel. It will be available to Office 365 subscribers in the Semi-Annual channel starting in July 2020.
 
Upvote 0
Until you get the SORTBY function, see if these, copied down, do what you want.

20 04 05.xlsm
ABCDEFG
1OrdersitemLocationOrdersitemLocation
21367-66-400112761367-66-40011278
31311-12-141111191367-66-40011276
41311-12-141110331311-12-14111235
51311-12-141112351311-12-14111119
61367-66-400112781311-12-14111033
72418-15-001112372418-15-00111239
82418-15-001112392418-15-00111237
92418-15-001112312418-15-00111231
Sort
Cell Formulas
RangeFormula
E2:E9E2=A2
F2:F9F2=INDEX(B$2:B$9,AGGREGATE(15,6,(ROW(B$2:B$9)-ROW(B$2)+1)/((A$2:A$9=E2)*(C$2:C$9=G2)),1))
G2:G9G2=AGGREGATE(14,6,C$2:C$9/(A$2:A$9=E2),COUNTIF(E$2:E2,E2))
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,669
Members
448,977
Latest member
moonlight6

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