Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
Spin
 
Posts: n/a
Default Sort by date - just not getting it all the way there

Hi,

I am having a nightmare of a time trying to sort a date column in a
spreadsheet. The column is made up of dates as shown below and the dates
will sort in descending order all the way out to the year due to some kind
of limitation. Here is my column:

9/28/2005
9/28/2004
9/27/2005
9/27/2004
9/26/2005
9/26/2004

See what I mean??? I want it to look like this:

9/28/2005
9/27/2005
9/26/2005
9/28/2004
9/27/2004
9/26/2004

Thanks. :-)

--
Spin


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions,microsoft.public.excel
Ron Coderre
 
Posts: n/a
Default Sort by date - just not getting it all the way there

Your "dates" are sorting like they're text....which means...those values are
text, not dates.

Try this:

Select an empty cell.
EditCopy

Select your range of values
EditPaste Special
Check: Add
Check: Values
Click the [OK] button

That should convert your text-that-looks-like-dates into actual dates.

Now try sorting them

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Spin" wrote:

Hi,

I am having a nightmare of a time trying to sort a date column in a
spreadsheet. The column is made up of dates as shown below and the dates
will sort in descending order all the way out to the year due to some kind
of limitation. Here is my column:

9/28/2005
9/28/2004
9/27/2005
9/27/2004
9/26/2005
9/26/2004

See what I mean??? I want it to look like this:

9/28/2005
9/27/2005
9/26/2005
9/28/2004
9/27/2004
9/26/2004

Thanks. :-)

--
Spin



  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
Mark Lincoln
 
Posts: n/a
Default Sort by date - just not getting it all the way there

It looks to me as though your entries are formatted as text. Your
example is a proper descending sort of text entries.

To properly sort dates, your cells must be formatted as dates. Or, to
be more precise, numbers, but formatted as dates so you can read them
properly.

  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
RagDyer
 
Posts: n/a
Default Sort by date - just not getting it all the way there

You're getting the results of a *Text* sort, meaning your dates are*not*
true XL dates, but simply text representations of dates.

To correct this situation, you must convert them to XL readable dates
*before* you perform the sort.

Select your column of 'dates', then:

<Data <Text To Columns <Next <Next,
Under "Column Data Format",
Click in "Date",
And make sure "MDY" is showing in the box.
Then <Finish.

NOW ... try your sorting!
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================





"Spin" wrote in message
...
Hi,

I am having a nightmare of a time trying to sort a date column in a
spreadsheet. The column is made up of dates as shown below and the dates
will sort in descending order all the way out to the year due to some kind
of limitation. Here is my column:

9/28/2005
9/28/2004
9/27/2005
9/27/2004
9/26/2005
9/26/2004

See what I mean??? I want it to look like this:

9/28/2005
9/27/2005
9/26/2005
9/28/2004
9/27/2004
9/26/2004

Thanks. :-)

--
Spin



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
how to sort date in excel pusimani Excel Worksheet Functions 2 December 16th 05 04:57 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
How do I sort by date (not days, weeks, months) in Excel 2000? Tony Excel Discussion (Misc queries) 1 January 21st 05 03:28 PM
In Excel, why sort function fails when applied to a list of date? Excel heavy user Excel Discussion (Misc queries) 1 January 18th 05 06:37 PM


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