Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
2002 Excel's clock runs from Midnight of the day before to 11:59 PM of the
current day. I need to either find a way to make Excel work on a Standard Clock or a Military Clock. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"YoMarie" wrote...
2002 Excel's clock runs from Midnight of the day before to 11:59 PM of the current day. I need to either find a way to make Excel work on a Standard Clock or a Military Clock. Midnight is ambiguous. 0.000000000000001 seconds before midnight is the day before, 0.000000000000001 seconds after midnight is the current day. By the time you're becoming apoplectic, it'll legitimately be the current day. As a practical matter, integer date values formatted with time components will appear as either 00[:00[:00]] or 12[:00[:00]] AM, never as 24[:00[:00]]. The only way you could change this is to display times as text, e.g., =IF(MOD(DT,1)=0,TEXT(DT-1,"mm/dd/yyyy ""24:00"""),TEXT(DT,"mm/dd/yyyy")) but this will never show midnight as the beginning of a day. As for 'standard clock', standard in what country? The US NIST suggests using neither 12 AM or PM but noon and midnight instead, and it's silent on whether exactly midnight is the end of the earlier day or the beginning of the later day. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Harlan Grove" wrote: "YoMarie" wrote... 2002 Excel's clock runs from Midnight of the day before to 11:59 PM of the current day. I need to either find a way to make Excel work on a Standard Clock or a Military Clock. Midnight is ambiguous. 0.000000000000001 seconds before midnight is the day before, 0.000000000000001 seconds after midnight is the current day. By the time you're becoming apoplectic, it'll legitimately be the current day. As a practical matter, integer date values formatted with time components will appear as either 00[:00[:00]] or 12[:00[:00]] AM, never as 24[:00[:00]]. The only way you could change this is to display times as text, e.g., =IF(MOD(DT,1)=0,TEXT(DT-1,"mm/dd/yyyy ""24:00"""),TEXT(DT,"mm/dd/yyyy")) but this will never show midnight as the beginning of a day. As for 'standard clock', standard in what country? The US NIST suggests using neither 12 AM or PM but noon and midnight instead, and it's silent on whether exactly midnight is the end of the earlier day or the beginning of the later day. "YoMarie" wrote: Thank you for the response. I understand the concept of "splitting hairs". However, I've taken on the project for a small business of creating a Time Card that will calculate itself. The company works on a standard US clock, that begins the day at 12:01 AM and ends the day at 12:00 PM (Midnight). They have operated on this clock for over 25 years. So I need to find a solution. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
YoMarie wrote...
.... project for a small business of creating a Time Card that will calculate itself. The company works on a standard US clock, that begins the day at 12:01 AM and ends the day at 12:00 PM (Midnight). They have operated on this clock for over 25 years. So I need to find a solution. First, if you call 12:00 PM midnight, what's noon? You'll need to use text formulas. =IF(TEXT(DateTime,"hh:mm")="00:00", TEXT(DateTime-1,"mm/dd/yyyy ""Midnight"""), TEXT(DateTime,"mm/dd/yyyy hh:mm AM/PM")) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Harlan Grove wrote:
First, if you call 12:00 PM midnight, what's noon? From the meaning of "M" in AM and PM, one would expect that noon is 12:00M, since it is neither before (ante) nor after (post) the meridian; but I haven't yet found anyone who can stomach that. Alan Beban |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can excel be a time clock or stop watch? | New Users to Excel | |||
Calculating Clock start time in Excel | Excel Discussion (Misc queries) | |||
Start Clock/Stop Clock | Excel Discussion (Misc queries) | |||
Time Clock | Excel Worksheet Functions | |||
time-clock calculation | Excel Worksheet Functions |