Custom sorting: larger master list sorted first by the smaller unique items list selected that day

ok_lets

New Member
Joined
Jan 12, 2025
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I may have already answered my own question but I have just discovered xl2bb so I will post anyway: when I say answered this only means that I won't (please correct me here) be able to achieve what I want by sorting alone so will need to think on or look for guidance/answers here.

(Not sure this first time if xl2bb picks up comments so my question follows - the comments if picked up may help make it clearer)

I have a master list of items col A.
Each day items are picked from that list col B.
col C is unique items for that day and col D is sorted col C.
In this example I want in col E - the master list - sorted by the "sorted unique for the day" in col D:
the sort order should be master list sorted in a 2 part fashion of: -
- top most portion of list should equal the "daily unique" in col D
- the rest of master list after that - but equalling exactly the master list items but sorted as above.

Thanks in advance

test.xlsm
F
7
Sheet24
 
Ha, ha, ha,....! Please excuse my earlier incompetence below is the mini sheet:rolleyes::LOL::


test.xlsm
ABCDE
11111#VALUE!
21x1x1x2
32x1x2x4
422x25
53023212
6329931
7323243232
8321995st33
92311x4ew99
1043243231th121
11995st4432
124w5st51x
134ew4ew312x
144rd31th3331th
1544124ew
16551214rd
175st44rd5st
18115
191231
2031th33
2131tth31th
2231tthh5st
2331432
243312
25121th121
26121432
2713112
281313121
2921212124rd
30
31
32
33
34
35
36
37
38
39
40
Sheet24
Cell Formulas
RangeFormula
C1:C17C1=UNIQUE(B1:B29,,FALSE)
D1:D17D1=SORT(C1#,1,1)
E1E1=SORTBY(A1:A29, D1#, 1)
Dynamic array formulas.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=SORTBY(A1:A29,XMATCH(A1:A29, D1#), 1)
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=SORTBY(A1:A29,XMATCH(A1:A29, D1#), 1)
Spot on Fluff!
You know I looked at and then immediately looked away from a match solution - he, he, he! (doh!)
And thank you Fluff for the welcome
 
Upvote 0

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