Sorting by Multiple Columns Problem

TK AZ

New Member
Joined
Jan 15, 2019
Messages
6
Hi. This is probably a very simple question, but I'm stuck. :(

I have a 24 column sheet where Column A is the contribution date and Column L is the contribution amount. I'm trying to sort from oldest to newest, then largest to smallest. The sort by date part works fine, but it's not sorting by amount as the secondary sort.

I recently did the same sort on a similar file and it worked, although I did struggle with it for a while (but I can't remember what I did to fix it).

Are there common things I should be looking for to figure out where I'm going wrong? The formatting seems fine, nothing is hidden, the data header box in the sort tool is selected, so I'm not sure what I am missing.

Thanks for any tips. :)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
It appears as if the problem is related to the format of the date data.

The raw data source produces dates in this format: 9/27/2020 2:35:32 PM.

I'm now using =MONTH(A2) & "/" & DAY(A2) & "/" & YEAR(A2) to convert those cells into just 9/27/20 format.

After doing that, the sort seems to work the way I expected it to.

I don't really know why this would fix it. It seems like including the time information would just make it more accurate in the sort, but I'm sure there's a reason for it.
 
Upvote 0

Forum statistics

Threads
1,215,639
Messages
6,125,971
Members
449,276
Latest member
surendra75

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