Link to home
Create AccountLog in
Avatar of zepold
zepoldFlag for United States of America

asked on

Cannot change the date format in a cell.

A user brought me a spreadsheet that she inherited from a former employee.  In this spreadsheet, the user types in a date value as m/d/yyyy.  The spreadsheet converts this to a numerical date.  Example: 2/9/2011 will show as 40583.  No matter what kind of format we use, (either Date or Custom), we still get the same result.  The formula bar shows the date value as 2/9/2011 and if you double click in the cell, it will show the value 2/9/2011.  As soon as you remove the focus from this cell it goes back to 40583.  Does anyone know what is going on or how to change the cell so that it shows the date format as m/d/yyyy?
Avatar of redmondb
redmondb
Flag of Afghanistan image

Hi, zepold.

Any possibility that there's an Event macro in the file?

It would be good if you could post the file here. If there's confidential information then delete all the data except the cell in question and, assuming you still have the problem, upload that.

Thanks,
Brian.
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Nice one, Barry. That effect was news to me.
Shortcut for barry's comment is Ctrl+`(~ key just below Esc key)
Avatar of zepold

ASKER

That did it!! Thanks for your help.