#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Sort Date

I've read around and no one seems to answer just the straight
question on how to sort by date in a column.

I wrote a post before and was answered and confused me more than
before.

All I want to do is sort a series a dates in order. The dates are in
the form DD/MM/YYYY. This is all in one cell. So how would I sort this
in chronological order.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default Sort Date

Maybe, I am wrong, but dates are no peculiar problem.
Try :
Range("A1:A10").Sort key1:=Range("A1"), Header:=xlNo,
Order1:=xlAscending


I've read around and no one seems to answer just the straight
question on how to sort by date in a column.

I wrote a post before and was answered and confused me more than
before.

All I want to do is sort a series a dates in order. The dates are in
the form DD/MM/YYYY. This is all in one cell. So how would I sort this
in chronological order.

Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Sort Date

That does work as a sort but the problem is that does it as if the
date was in the order MM/DD/YYY. which would work great. My problem is
my dates go in the order DD/MM/YYYY This would say that 20/4/2008
(April 20, 2008) is newer than 1/10/2008 (October, 1 2008). Do you get
what I mean? That is false April comes before October but not
according to the way it's set up now.


On Oct 31, 2:50*pm, wrote:
I've read around and no one seems to answer just the straight
question on how to sort by date in a column.

I wrote a post before and was answered and confused me more than
before.

All I want to do is sort a series a dates in order. The dates are in
the form DD/MM/YYYY. This is all in one cell. So how would I sort this
in chronological order.

Thank you.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default Sort Date

My local settings are DD/MM/YYYY. Which ever is the date format, the
date is fundamentally a number, so sorting should always be correct.
The only point I see would be if a date is entered as M/D/Y in a D/M/Y
formatted cell. Can you post a sample of your data using
www.filedropper.com or else.
Daniel

That does work as a sort but the problem is that does it as if the
date was in the order MM/DD/YYY. which would work great. My problem is
my dates go in the order DD/MM/YYYY This would say that 20/4/2008
(April 20, 2008) is newer than 1/10/2008 (October, 1 2008). Do you get
what I mean? That is false April comes before October but not
according to the way it's set up now.


On Oct 31, 2:50*pm, wrote:
I've read around and no one seems to answer just the straight
question on how to sort by date in a column.

I wrote a post before and was answered and confused me more than
before.

All I want to do is sort a series a dates in order. The dates are in
the form DD/MM/YYYY. This is all in one cell. So how would I sort this
in chronological order.

Thank you.



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
sort date Zina Excel Discussion (Misc queries) 2 February 3rd 09 10:23 AM
sort from date, to date in list Axel Excel Programming 0 January 9th 08 07:15 PM
the date format is not working ,sort by date doesn't work. Rosa Campos Excel Discussion (Misc queries) 1 September 12th 05 10:52 PM
Can't sort by date Laurel New Users to Excel 2 April 12th 05 01:12 PM
Can't sort by date Laurel New Users to Excel 2 April 12th 05 01:05 PM


All times are GMT +1. The time now is 12:07 AM.

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

About Us

"It's about Microsoft Excel"