LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default column not sorting correctly by date

Joe,

If you have stuff in addition to a date in a cell, then it's text, not a number, and it'll
sort alphanumerically, not in date sequence. You've made your job difficult by combining
the date with other stuff. And your dates don't have a consistent character count (you
didn't use 04/06/2008). Try this in a helper column. It presumes a space after the date.
Format it for a date format (Format - Cells - Number - Date). Sort on that column:

=DATEVALUE(LEFT(A2,SEARCH(" ",A2,1)-1))
--
Regards from Virginia Beach,

Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Joe" wrote in message
...
I'm trying to sort a spreadsheet by a column that begins with a date
but has other information in the cell. When I sort by ascending it
begins with the cells that don't have any dates preceding the
alphabetical content then it will start with "4/6/2008 then 4/2/2008
then 4/10/2008, then it works it's way down to the March dates
correctly. Is there any way I can get it to straighten out April so
the most recent dates sort from the top? I checked to see if there
were any spaces before the dates and there weren't. Is there anything
else I should check for that would make it sort out of order?





 
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 A COLUMN BY DATE Todd Excel Discussion (Misc queries) 6 March 31st 08 01:25 AM
vlookups not sorting correctly runsrealfast Excel Discussion (Misc queries) 1 January 12th 07 01:02 AM
Sorting numbers doesn't work correctly GrammyEmmy New Users to Excel 8 June 25th 06 11:45 PM
Pivot Table not sorting correctly Marian Charts and Charting in Excel 1 April 28th 06 05:15 PM
Letters and 000s in front of actual number not sorting correctly darkjedi Excel Discussion (Misc queries) 1 December 1st 05 03:48 PM


All times are GMT +1. The time now is 08:32 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"