I just don't get why these dates don't sort.

mayday1

Board Regular
Joined
Oct 5, 2007
Messages
241
I have a column with dates that look like this in the formula bar when I select the cell.
1/1/2011 1:01:40 PM

The cells are formatted Number / Category = Date / Type = *3/14/2001

In another column, I get the month with this formula:
=TEXT(C2,"MMM-YY")
and in the cell it looks like this:
JAN-11
The cells in this columns are formated as
MAR-01

When I do a pivot table, the columns are placed in alphabetical order. How can I get them to be in date order?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Which version of Excel?

I know that in 2007, you can leave your dates as is on the spreadsheet and format the results in the PivotTable.
 
Upvote 0
If you restore Excel's default formatting (Horizontal: General) how does that data align, left or right?

If left, the dates are stored as text. Select the column and do Data > text to columns > Finish.
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

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