ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date showing incorrect. 30:00 hrs showing 06:00 (https://www.excelbanter.com/excel-discussion-misc-queries/153573-date-showing-incorrect-30-00-hrs-showing-06-00-a.html)

AlanStotty

Date showing incorrect. 30:00 hrs showing 06:00
 
Hi,

Can you help?????

When I insert 30:00 hrs it is showing as 06:00, when I check the cell
it actually showing as 01/01/1900 06:00. I have formatted the cell
to show hh:mm but still no luck.

Thanks in advance.


Bob Flanagan

Date showing incorrect. 30:00 hrs showing 06:00
 
Format it

[h]:mm

30-24 = 6, and it is showing as 6 o'clock for the next day in the default
time format.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"AlanStotty" wrote in message
oups.com...
Hi,

Can you help?????

When I insert 30:00 hrs it is showing as 06:00, when I check the cell
it actually showing as 01/01/1900 06:00. I have formatted the cell
to show hh:mm but still no luck.

Thanks in advance.




Bernard Liengme

Date showing incorrect. 30:00 hrs showing 06:00
 
Format the cell with [hh]:mm
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"AlanStotty" wrote in message
oups.com...
Hi,

Can you help?????

When I insert 30:00 hrs it is showing as 06:00, when I check the cell
it actually showing as 01/01/1900 06:00. I have formatted the cell
to show hh:mm but still no luck.

Thanks in advance.




Pete_UK

Date showing incorrect. 30:00 hrs showing 06:00
 
You need to apply a custom format to the cell - [hh]:mm

The square brackets around the hh tells Excel not to wrap the hours
above 24.

Hope this helps.

Pete

On Aug 9, 1:30 pm, AlanStotty wrote:
Hi,

Can you help?????

When I insert 30:00 hrs it is showing as 06:00, when I check the cell
it actually showing as 01/01/1900 06:00. I have formatted the cell
to show hh:mm but still no luck.

Thanks in advance.




bj

Date showing incorrect. 30:00 hrs showing 06:00
 
change you number format code to [h]:mm
hh will give the hours in one day (mod(total hours,24))
[h] will give total hours

"AlanStotty" wrote:

Hi,

Can you help?????

When I insert 30:00 hrs it is showing as 06:00, when I check the cell
it actually showing as 01/01/1900 06:00. I have formatted the cell
to show hh:mm but still no luck.

Thanks in advance.




All times are GMT +1. The time now is 03:35 PM.

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