Sort By

akalien

New Member
Joined
Jul 2, 2010
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Greetings to all,

I have a file where in 9 columns (C8:K36) either the same status may appear or several different status may appear.
I have as well a custom list Z9:Z17

Is there any way to get a Sortby based on my custom list if the status is found once within the 9 columns and not only in the first of my 9 columns?

Many thanks in advance
 

Attachments

  • Plan de travail.PNG
    Plan de travail.PNG
    75.3 KB · Views: 15
Unfortunately not possible as many things blocked in office.

Here's the actual formula for my whole sheeet I have if this may help:

=SORTBY($A$8:$K$70;MATCH($C$8:$C$70;$Z8:$Z$31;0);1)
 
Upvote 0
You can make you own sortlist:

Excel options
Advanced
General
Edit custom lists
 

Attachments

  • Custom sort list.jpg
    Custom sort list.jpg
    121.3 KB · Views: 5
Upvote 0
In M8
Excel Formula:
=SORTBY(A8:K24,MATCH(C8:C24,Z8:Z17,0),1,MATCH(D8:D24,Z8:Z17,0),1,MATCH(E8:E24,Z8:Z17,0),1,MATCH(F8:F24,Z8:Z17,0),1,MATCH(G8:G24,Z8:Z17,0),1,MATCH(H8:H24,Z8:Z17,0),1,MATCH(I8:I24,Z8:Z17,0),1,MATCH(J8:J24,Z8:Z17,0),1,MATCH(K8:K24,Z8:Z17,0),1)
I have taken last row as 24. Change it as required.
 
Upvote 0
SORT could also be a possibility (with a few other functions):
Excel Formula:
=DROP(SORT(HSTACK(MATCH(C8:K70;Z8:Z31;0);A8:K70);SEQUENCE(;COLUMNS(C8:K70)));;COLUMNS(C8:K70))
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,045
Members
453,772
Latest member
aastupin

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