ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Having a problem formatting short time (https://www.excelbanter.com/new-users-excel/195599-having-problem-formatting-short-time.html)

Clueless

Having a problem formatting short time
 
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!
--


Ron Rosenfeld

Having a problem formatting short time
 
On Sun, 20 Jul 2008 16:04:00 -0700, clueless
wrote:

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


All times are GMT +1. The time now is 03:11 AM.

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