Having a problem formatting short time

C

clueless

I am having a problem formatting time in my spreadsheet. If I type in a
number (ex. 1300) and then try to format the cell this is what happens ....
the cell changes to 00:00 and the formula bar shows 7/23/1903 12:00 AM. Can
anyone help me? I give up!
--
 
R

Ron Rosenfeld

I am having a problem formatting time in my spreadsheet. If I type in a
number (ex. 1300) and then try to format the cell this is what happens ....
the cell changes to 00:00 and the formula bar shows 7/23/1903 12:00 AM. Can
anyone help me? I give up!

Formatting does not affect how Excel interprets your date or time entry.

If you type 1300 into a cell, and then format it as a time, Excel will
interpret that as 1300 days (and no hours) since 1/1/1900. That happens to be
7/23/1903 12:00 AM

If you want to enter 1300 as a time, you must enter the ":". eg. 13:00.

There are methods of entering 1300 and having Excel convert it to 13:00, but
you need to use VBA to do that. See
http://www.cpearson.com/excel/DateTimeEntry.htm
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top