Forum Discussion

buzzwack1959's avatar
buzzwack1959
Copper Contributor
Mar 08, 2024

sortby

As far as i can work out "sortby"  can only use 2 sort arrays, but i need to use 3 sort arrays, does anyone know if this is possible with Sortby

  • buzzwack1959 

    You can specify many ranges to sort by. For example:

     

    =SORTBY(A17:G250, I17:I250, 1, K17:K250, -1, M17:M250, 1, N17:N250, -1)

     

    This will sort the range A17:G250, first ascending by I17:I250, then within that descending by K17:K250, next ascending by M17:M250 and finally descending by N17:N250.

    • buzzwack1959's avatar
      buzzwack1959
      Copper Contributor
      Thanks but excel 365 will NOT let me go beyond [using your example] column K, it will not permit me to add M and N it gives me the message "you can't change part of an array", i have set out my formula just as you have done but get that message thus not allowing me to go beyond two arrays to sort.

Share

Resources