Secondary Sorts in Tables

Davidns

Board Regular
Joined
May 20, 2011
Messages
159
Office Version
  1. 365
Platform
  1. MacOS
I am familiar with using Custom Sorts for secondary sorts in tables. However, I was wondering if there is an easier way. Generally, one can simply click on the drop down arrow in a column header while holding the control key to designate it as a secondary sort, but that doesn't seem to work in Excel. Is there something similar available in Excel, or an easier approach than going into the Sort and Filter menu, choosing Custom, then clicking Ok?

Also, is there a way to manually move a row within a sort, like there is in pivot table?

Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You can just apply the sorts in reverse order to get the same effect.

For the second question, yes you can move rows in a table, whether sorted or not, by shift dragging.
 
Upvote 0
Thanks Rory,
The shift dragging works great, much appreciated.
On the first question, I am not following you so perhaps I wasn't clear. I am looking for an easy solution to secondary sorting. For example, I have a column called Priority and one called Name. I want to sort by Priority, and then by Name. Currently, this seems to require going into the Custom Sort menu. I would like to know if there is an easier way. Thanks!
 
Upvote 0
Use the drop downs but sort by name first, then priority. That will produce the order you want
 
Upvote 0
Well, that's the issue - if I use the drop downs, choosing a second one seems to overwrite the first one. The only way to have a secondary sort seems to be via the Custom Sort menu. Do I need to press something concurrent with clicking on the drop down button in order to ensure it understands to treat that column as a secondary sort?
 
Upvote 0
Because of the way Excel sorts, if you sort by name first and then priority, you should end up with the same result as a primary sort by priority and then name as secondary. If you aren't, I'd need to see the file.
 
Upvote 0
interesting, but my sort is based on column called Primary and one called Secondary, both of which are numerical. Thus, am assuming I am stuck with the Custom Sort method?
 
Upvote 0
No, it should still work - does it not?
 
Upvote 0
seems to be resulting in inconsistencies. Also, there is no visual clue showing the secondary sort. I think the workaround I just did is a bit clearer - I made a ribbon shortcut for Custom Sort and now just clicking on it shows me the sorts, and then I am one Enter click away to implement the sort. At that point, both sorts are done and both columns show the sort indicator (although ideally it should show which one is the primary).
Thanks for helping me out. Seems like a small issue, but ultimately will save me time.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,987
Members
452,373
Latest member
TimReeks

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