ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   date format (https://www.excelbanter.com/excel-discussion-misc-queries/210041-date-format.html)

Mike

date format
 
My column of dates somehow changed from mo/da/yr format to 5 numbers. I've
tried to change it back using Format, Cells, Date, etc. But it will not
change. How can I fix this?

Sheeloo[_3_]

date format
 
Try this
Enter 1 anywhere in a blank cell
Copy the cell
Select the numbers you want as dates
Choose Edit|Paste Special|Multiply
Format the cells as Date...

"Mike" wrote:

My column of dates somehow changed from mo/da/yr format to 5 numbers. I've
tried to change it back using Format, Cells, Date, etc. But it will not
change. How can I fix this?


David Biddulph[_2_]

date format
 
If they won't respond to to Format, Cells, Date, it sounds as if you've
managed to turn them to text.
Try copying a blank cell, then select your column of dates and Edit/Paste
Special/ Add. Then retry your Format, Cells, Date.
--
David Biddulph

"Mike" wrote in message
...
My column of dates somehow changed from mo/da/yr format to 5 numbers.
I've
tried to change it back using Format, Cells, Date, etc. But it will not
change. How can I fix this?




Rick Rothstein

date format
 
I think your 5-digit numbers are text and not numbers. Select the cells (or,
if a lot, just select the entire column) with the 5-digit numbers in them,
then press Alt+F11 and copy/paste this line of code into the Immediate
window in the VBA editor that opened up (if you don't see the Immediate
window, press Ctrl+G to bring it up)...

Selection.Formula = Selection.Formula

then, with the text cursor still on this line of code, press the Enter key.
Now, when you go back to the worksheet, your 5-digit numbers should be
numbers, or possibly dates, again. If they are still numbers, formatting the
column as Date should now work.

--
Rick (MVP - Excel)


"Mike" wrote in message
...
My column of dates somehow changed from mo/da/yr format to 5 numbers.
I've
tried to change it back using Format, Cells, Date, etc. But it will not
change. How can I fix this?




All times are GMT +1. The time now is 10:31 AM.

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