Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Date formatting for sorting - followup
I tried formatting with a created "Custom" format of "yyyy-mm-dd" and
that works EXCEPT, it doesn't affect dates before 1900. Why wouldn't it, and how can I get it to affect all dates? |
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
Date formatting for sorting - followup
Excel doesn't like dates before 1900.
So those entries that look like dates (but are before 1900) aren't really dates. You may be able to use: =if(isnumber(a1),text(a1,"yyyymmdd"),someotherexpr ession) But that other expression would depend on how those text entries looked. Some combination of =mid(), =right() and/or =left() may do it for you. 12/25/1850 could be =IF(ISNUMBER(A1),TEXT(A1,"yyyymmdd"),MID(A1,7,4)&L EFT(A1,2)&MID(A1,4,2)) - Butch wrote: I tried formatting with a created "Custom" format of "yyyy-mm-dd" and that works EXCEPT, it doesn't affect dates before 1900. Why wouldn't it, and how can I get it to affect all dates? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sorting Columns Independently Followup From 3/13 | Excel Discussion (Misc queries) | |||
Date Formatting & Sorting | Excel Discussion (Misc queries) | |||
Followup: Folder listing | Excel Discussion (Misc queries) | |||
Formatting Date for Sorting | Excel Discussion (Misc queries) | |||
countif followup | Excel Worksheet Functions |