Thread: Sorting Dates
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 299
Default Sorting Dates

1. You don't need a complicated formula to get the index numbers of the
month (I can't see the original post)

=MONTH(A1)

will give you the same numbers without having the workbook being volatile

use a third column and

=DAY(A1)

then select all 3 columns, then sort by first month help column, then the
day help column and finally the original column



--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com



"Murray" wrote in message
...
This is great and works for the months. Any way I can get the days to be
included in the sort?

"VBA Noob" wrote:


You could add another column and enter this formula

=CHOOSE(TEXT(A1,"m"),12,1,2,3,4,5,6,7,8,9,10,11)

This will enter 1 for the month of Feb, 2 for the month of March and so
on.

Then sort by the new column

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile:
http://www.excelforum.com/member.php...o&userid=33833
View this thread:
http://www.excelforum.com/showthread...hreadid=562611