ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sorting Dates in format "01/19/09" (https://www.excelbanter.com/excel-worksheet-functions/230735-sorting-dates-format-01-19-09-a.html)

SCH

Sorting Dates in format "01/19/09"
 
How do I set my Excel to Always sort dates in the following format by Year,
Month, and Day? My current setting sorts by Month, date, and then year.
For example my setting is sorting as follows:
01/19/09
02/01/08
02/17/08
etc.

David Biddulph[_2_]

Sorting Dates in format "01/19/09"
 
By the looks of it, you're sorting as text, rather than dates. What
do=ISTEXT(cellref) and =ISNUMBER(cellref) give you for a typical cell in
your range? If you've got text, you'll need to change to dates before
sorting.
--
David Biddulph

"SCH" wrote in message
...
How do I set my Excel to Always sort dates in the following format by
Year,
Month, and Day? My current setting sorts by Month, date, and then year.
For example my setting is sorting as follows:
01/19/09
02/01/08
02/17/08
etc.




Marcelo

Sorting Dates in format "01/19/09"
 
Hello SCH,

dates are numbers in excel and it does not deppend the format you use, it
looks you are working with text, instead of date, if my understand is wrong,
and you have dates as dates not as text, you just need sort descending

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"SCH" escreveu:

How do I set my Excel to Always sort dates in the following format by Year,
Month, and Day? My current setting sorts by Month, date, and then year.
For example my setting is sorting as follows:
01/19/09
02/01/08
02/17/08
etc.


Sean Timmons

Sorting Dates in format "01/19/09"
 
If the dates are set as text, you may see green triangles on the top of the
cells. Highlight all of them, click on the yellow exlamation point that
appears, and perform you correction there.

"Marcelo" wrote:

Hello SCH,

dates are numbers in excel and it does not deppend the format you use, it
looks you are working with text, instead of date, if my understand is wrong,
and you have dates as dates not as text, you just need sort descending

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"SCH" escreveu:

How do I set my Excel to Always sort dates in the following format by Year,
Month, and Day? My current setting sorts by Month, date, and then year.
For example my setting is sorting as follows:
01/19/09
02/01/08
02/17/08
etc.


Ron Rosenfeld

Sorting Dates in format "01/19/09"
 
On Wed, 13 May 2009 09:48:08 -0700, SCH wrote:

How do I set my Excel to Always sort dates in the following format by Year,
Month, and Day? My current setting sorts by Month, date, and then year.
For example my setting is sorting as follows:
01/19/09
02/01/08
02/17/08
etc.


Most likely your data is stored as TEXT rather than as dates.

To prove this, =ISNUMBER(cell_ref) will give FALSE (if they are stored as dates
it should return TRUE).

To correct this, you can try:
select a blank cell
edit/copy
select your range of dates
edit/paste_special/add

The values may change to 5 digit numbers. Just select to format them as dates.

Now they should sort.

If this does not work, there may be extra characters within the cell.
--ron


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com