Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, hope someone can help me. I've been searching and trying different
formulas for hours, but still have a problem figuring total time from two time fields. I have a field called Start Time (D16), and an End Time (E16), with a total Hours (G16). No matter what formula I use, I am getting the wrong time. For example. 1. Formula: =(E16-D16)*24 Start Time of 10:00 pm - End Time of 10:30 PM - Returns a Total Time of .50 (should be .30) 2. Formula: =IF(E16-D16<0,1-(E16-D16)*-1,E16-D16) Same Time as in #1 above - Returns a total Time of .02 Hours (should be .30) I have checked the Start and End Time cell formats, and they are all the short time (example, 1:30 PM). I have tried the Number and Accounting formats for the Total Time field, but I get the same result. What am I missing? Thank you. Maurita |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dont multiply by 24 and format as hh:mm
Mangesh "Maurita" wrote in message oups.com... Hi, hope someone can help me. I've been searching and trying different formulas for hours, but still have a problem figuring total time from two time fields. I have a field called Start Time (D16), and an End Time (E16), with a total Hours (G16). No matter what formula I use, I am getting the wrong time. For example. 1. Formula: =(E16-D16)*24 Start Time of 10:00 pm - End Time of 10:30 PM - Returns a Total Time of .50 (should be .30) 2. Formula: =IF(E16-D16<0,1-(E16-D16)*-1,E16-D16) Same Time as in #1 above - Returns a total Time of .02 Hours (should be .30) I have checked the Start and End Time cell formats, and they are all the short time (example, 1:30 PM). I have tried the Number and Accounting formats for the Total Time field, but I get the same result. What am I missing? Thank you. Maurita |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
1. Formula: =(E16-D16)*24
Start Time of 10:00 pm - End Time of 10:30 PM - Returns a Total Time of .50 (should be .30) *24= hours *24*60 = minutes =(E16-D16)*24*60 You were close! Mike F "Maurita" wrote in message oups.com... Hi, hope someone can help me. I've been searching and trying different formulas for hours, but still have a problem figuring total time from two time fields. I have a field called Start Time (D16), and an End Time (E16), with a total Hours (G16). No matter what formula I use, I am getting the wrong time. For example. 1. Formula: =(E16-D16)*24 Start Time of 10:00 pm - End Time of 10:30 PM - Returns a Total Time of .50 (should be .30) 2. Formula: =IF(E16-D16<0,1-(E16-D16)*-1,E16-D16) Same Time as in #1 above - Returns a total Time of .02 Hours (should be .30) I have checked the Start and End Time cell formats, and they are all the short time (example, 1:30 PM). I have tried the Number and Accounting formats for the Total Time field, but I get the same result. What am I missing? Thank you. Maurita |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Subtracting Dates to get total time work time excluding weekends | Excel Discussion (Misc queries) | |||
Formula to find Stop Time from Start Time and Total Minutes | Excel Worksheet Functions | |||
calculating timesheet, time-in/time-out = total hours & minutes, . | Excel Worksheet Functions | |||
Grand total time between two total cells | Excel Discussion (Misc queries) | |||
template or formula for start time -finish time -total hours ple | New Users to Excel |