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

I have a group of dates I want arranged chronologically. When I sort on the
column that contains the dates, the application seems to think that 5/27/2007
comes before 6/1/2006. It seems to be keying on the month instead of the
year. How do I need to format the cells in order that the application takes
into account the whole date, not just the month and day?
--
Kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Arranging Dates

Kevin,
A date is simply a number that is formatted to look like a date.
Excel will sort those date numbers correctly.
In your case Excel is viewing your entries as the actual text not a number.
To confirm this, widen your column slightly and see if the entries
align to the left. Text aligns left.
Ideally, the cells should be formatted as "Date" before the data is entered
using Format | Cells | Number (tab).

You could use an adjoining column, with the formula...
= DateValue(B5) ' using the appropriate cell
Then sort using the new column as the sort key.

You can also try changing the column format to Date and see if this corrects the problem.
It not, try forcing the conversion by copying a BLANK cell, selecting your data
and using Edit | Paste Special | Add. You will have to then format the cells again.

*Of course, if you are extracting data from another source, the data should be
"made nice" before trying to use it...with the trim and clean functions.
**Please make a copy of your data to experiment with, do not use your
original worksheet.
--
Jim Cone
San Francisco, USA
http://www.officeletter.com/blink/specialsort.html



"Kevin"
wrote in message
I have a group of dates I want arranged chronologically. When I sort on the
column that contains the dates, the application seems to think that 5/27/2007
comes before 6/1/2006. It seems to be keying on the month instead of the
year. How do I need to format the cells in order that the application takes
into account the whole date, not just the month and day?
--
Kevin
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
Identifying unique dates in a row of cells containing dates... cdavidson Excel Discussion (Misc queries) 9 October 13th 06 08:43 PM
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Dates showing are not what I type Mick New Users to Excel 5 July 6th 06 04:19 AM
formula to add dates. S S Excel Worksheet Functions 8 April 5th 06 07:53 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM


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

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"