Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculation Using Time
How do I calculate the difference between two times, and subtract 30 minutes
if the time exceeds 8 hours? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculation Using Time
Hi Rodney:
With a formula or vba code? cheers, gt "Rodney" wrote: How do I calculate the difference between two times, and subtract 30 minutes if the time exceeds 8 hours? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Calculation Using Time
Try this:
=MOD(B1-A1,1)*24-((MOD(B1-A1,1)*248)*30/1440*24) Format as GENERAL or NUMBER That'll return the the difference in decimal format: 8, 8.5, 10.75 -- Biff Microsoft Excel MVP "Rodney" wrote in message ... How do I calculate the difference between two times, and subtract 30 minutes if the time exceeds 8 hours? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Stop time - start time calculation | Excel Worksheet Functions | |||
Time calculation (Subraction of Idle Time) | Excel Discussion (Misc queries) | |||
Time calculation | Excel Worksheet Functions | |||
Ignoring Time in a Date Time Calculation | Excel Worksheet Functions | |||
time calculation with military time | Excel Worksheet Functions |