Aug 16, 2007 #1 2Plan MIS Joined Mar 29, 2005 Messages 55 Location US Is there an easy way to convert this date '8/15/2007' to '081507'? The dates are MS Excel.
Aug 16, 2007 #2 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US Hi, If you have REAL DATES, then use the TEXT function... [tt] =TEXT(yourdateref,"mmddyy") [/tt] Skip, When a wee mystic is on the loose.. It's a Small Medium at Large! Upvote 0 Downvote
Hi, If you have REAL DATES, then use the TEXT function... [tt] =TEXT(yourdateref,"mmddyy") [/tt] Skip, When a wee mystic is on the loose.. It's a Small Medium at Large!
Aug 16, 2007 #3 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US ...FYI, mmddyy will NOT sort as expected. Skip, When a wee mystic is on the loose.. It's a Small Medium at Large! Upvote 0 Downvote
...FYI, mmddyy will NOT sort as expected. Skip, When a wee mystic is on the loose.. It's a Small Medium at Large!
Aug 16, 2007 #4 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US ...you also could format your date field/column as Format > Cells - Number Tab - Custom... [tt] "mmddyy" [/tt] Skip, When a wee mystic is on the loose.. It's a Small Medium at Large! Upvote 0 Downvote
...you also could format your date field/column as Format > Cells - Number Tab - Custom... [tt] "mmddyy" [/tt] Skip, When a wee mystic is on the loose.. It's a Small Medium at Large!
Aug 16, 2007 Thread starter #5 2Plan MIS Joined Mar 29, 2005 Messages 55 Location US Works great! You guys are goood. Thanks. Upvote 0 Downvote
Aug 16, 2007 #6 AnotherHiggins Technical User Joined Nov 25, 2003 Messages 6,259 Location US As Skip pointed out, sorting on mmddyy when it is stored as text won't work as expected. Consider the format YYYYMMDD. That will sort by date, even if stored as text. [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ 181-2886 before posting. Upvote 0 Downvote
As Skip pointed out, sorting on mmddyy when it is stored as text won't work as expected. Consider the format YYYYMMDD. That will sort by date, even if stored as text. [tt]_____ [blue]-John[/blue][/tt] [tab][red]The plural of anecdote is not data[/red] Help us help you. Please read FAQ 181-2886 before posting.