#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Sorting Dates

I have a list which has a date column. I want to sort ascending order but I
want the sort order to reflect my financial year: 2 Feb to 2 Feb rather than
from 1 Jan to 31 Dec. How can I specify my own date order rather than the
default?

Cheers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sorting Dates


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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Sorting Dates

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


  #4   Report Post  
Posted to microsoft.public.excel.misc
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting dates with Vlookup Anders Axson Excel Discussion (Misc queries) 1 May 4th 06 01:30 PM
Sorting Dates dah Excel Discussion (Misc queries) 3 March 23rd 06 03:34 PM
Sorting Dates in Days of the Week Eagle784 Excel Discussion (Misc queries) 3 August 19th 05 05:31 PM
Question on sorting dates Excel heavy user Excel Discussion (Misc queries) 3 January 21st 05 05:12 PM
sorting using dates Tpason Excel Discussion (Misc queries) 1 January 14th 05 09:21 PM


All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"