SORTBY problems

ollyhughes1982

Well-known Member
Joined
Nov 27, 2018
Messages
793
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I am attempting to SORTBY function, but don’t seem to be able to get it to work. Please could someone show me where I am going wrong.

The current formula I am using is:
Excel Formula:
=IF(A2="","",IFERROR(SORTBY(B2:B10001,'Sort List'!A2:A10001),""))

In column D of the ‘Unique Character Extraction’ worksheet, I am trying to sort (spilling down) the non-blank cells from the range B2:B10001t. I have set the order I would like them sorted by in A2:A69 of the second worksheet (‘Sort List’), but it doesn’t seem to be working. For some reason it is showing ‘8’ first ands then a seemingly random order after that, including 0 values. It should sort as I have set in the second worksheet. I assumed SORTBY was the correct function for this, but doesn’t seem to be working.

Screenshot 2024-05-14 at 17.57.39.jpg
Screenshot 2024-05-14 at 17.57.59.jpg


Any help much appreciated!

I’ve also added a link to the file: parkrun - Extract Unique Characters.xlsx

Thanks in advance!

Olly.
 
This is in your column D.
Excel Formula:
=IF(B2="","",TOCOL(SORTBY(B2:B10001,MATCH(B2:B10001,'Sort List'!A2:A10001,0)),3))
 
Upvote 0
Solution

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,867
Messages
6,175,069
Members
452,611
Latest member
bls2024

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