Solved

Excel 2010 changing numbers to "12:00 AM"

Posted on 2013-02-01
6
384 Views
Last Modified: 2013-02-08
Has anyone ever had a problem where Excel 2010 will change numbers that may be formatted as General, Currency, Dates or Times just change all the numbers so they display as "12:00 AM" and formatted as Time?  And then when you look in the formula bar, it will display both a date and time, but they're dates like 4/12/1909 or 8/24/2139.  It's just goofy.  So then you highlight the entire column, and change the formatting to GENERAL, and the original numbers that were typed in display just fine.  Why is this happening?  It's happening on more than one document, and the user says it's been happening since she's been upgraded to Excel 2010.  Some of her data is fine, and then others are not.  She is saving her files into the new .xlsx format.  Any suggestions?????

I've attached a file so you can see what I'm talking about.  Look at columns I and J.  The original file had more worksheets in it, but I deleted those.
Experts-exchange-file.xlsx
0
Comment
Question by:esu4236
  • 3
  • 2
6 Comments
 
LVL 14

Accepted Solution

by:
Faustulus earned 500 total points
ID: 38845659
Unfortunately, your problem is a common one and seems to be without fix.
In order to prevent Excel from converting your numbers into dates you must enter them as Text. Individually, you can do that by preceding each entry with an apostrophe. The apostrophe will not be displayed but Excel will treat the number as text and, therefore, not change it into a date. Collectively, you can change the number format to Text (not General) for the entire column. Unfortunately, you have to do this before Excel has done its conversion trick.
0
 
LVL 22

Expert Comment

by:Flyster
ID: 38845764
The numbers you describe are normal for dates. We may enter 2/1/13, but Excel sees it as 41306, which is the number of days that have past since 1/1/1900. If you enter 41306, then format it as date and time you will get 2/1/13 12:00:00 AM. Enter 41306.00001 and it becomes 2/1/13 12:00:01 AM. Everything left of the decimal is the date and everything right is the time. When you enter 2/1/13, Excel automatically formats that cell to a date. If you copy and paste in a different cell, that cell will become a date also. SO, have I seen this done on it's own, no. I'm guessing the columns were originally formatted as a date which is why they're displayed as such.

Flyster
0
 
LVL 14

Expert Comment

by:Faustulus
ID: 38847779
It isn't necessary for the cells to have been formatted as Date previously. Rather, the unwanted change seems associated with the upgrade to a newer version of Excel.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:esu4236
ID: 38851454
Yes, it definitely started happening after the upgrade.  The numbers were probably formatted as just GENERAL previous to the update, but then the system is changing them to a date format.

I am aware that Excel stores dates and times as serial numbers.  I really don't believe these columns were formatted as dates before.  

So nothing else we can do but to change the format back to General or Text?
0
 
LVL 14

Expert Comment

by:Faustulus
ID: 38853546
If you have access to the original files you can format the columns to Text and THEN convert to a newer Excel version. The gurus say that this would prevent the conversion. If it doesn't there are other means of doing the same thing. However, once the data have been "converted" they have, effectively, been destroyed and can't be recovered.
So, I should ask the question: Is your problem that you lost data and want them back? The answer is no. Is your problem that you still have the data but can't use them in the newer version of Excel? Try formatting as Text and see if that helps. If it doesn't help, insert a helper column, convert the data using the TEXT() function, replace the formulas by values (Copy/PasteSpecial: Values) and then replace the original column with the helper column.
0
 

Author Closing Comment

by:esu4236
ID: 38869070
Thanks for the input on this!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now