Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Hello!
I want to calculate # of hours worked in this example: C1 10:00 am D1 3:00 pm I want to display the duration of 5 hours. TKU |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
=D1-C1
-- Regards, Peo Sjoblom "professor_ed" wrote in message ... Hello! I want to calculate # of hours worked in this example: C1 10:00 am D1 3:00 pm I want to display the duration of 5 hours. TKU |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Thank you for the speedy response! The result of the calculation was 5:00PM.
I need the result to be 5. I tried changing the values of thr receiving cells, but could not get the result to show 5. Cells C1 & D1 are defines as hh mm ampm "Peo Sjoblom" wrote: =D1-C1 -- Regards, Peo Sjoblom "professor_ed" wrote in message ... Hello! I want to calculate # of hours worked in this example: C1 10:00 am D1 3:00 pm I want to display the duration of 5 hours. TKU |
#4
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
if you want it to be 5 decimal format you need to multiply the result with
24 and format the cell as general or number (not time), if you want 05:00 as a result you need to format the result as hh:mm =(D1-C1)*24 formatted as general will return 5 -- Regards, Peo Sjoblom "professor_ed" wrote in message ... Thank you for the speedy response! The result of the calculation was 5:00PM. I need the result to be 5. I tried changing the values of thr receiving cells, but could not get the result to show 5. Cells C1 & D1 are defines as hh mm ampm "Peo Sjoblom" wrote: =D1-C1 -- Regards, Peo Sjoblom "professor_ed" wrote in message ... Hello! I want to calculate # of hours worked in this example: C1 10:00 am D1 3:00 pm I want to display the duration of 5 hours. TKU |
#5
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
But if you say it says 5:00PM, then I would expect it to convert to 17, not
5. If your original inputs were 10:00 am and 3:00 pm, then if you have the result cell formatted as h:mm AM/PM, the formula =D1-C1 ought to display as 5:00 AM (not PM), but to get it to show 5:00, you can change the format to [h]:mm. To convert to decimal hours, use Peo's formula. -- David Biddulph "Peo Sjoblom" wrote in message ... if you want it to be 5 decimal format you need to multiply the result with 24 and format the cell as general or number (not time), if you want 05:00 as a result you need to format the result as hh:mm =(D1-C1)*24 formatted as general will return 5 -- "professor_ed" wrote in message ... Thank you for the speedy response! The result of the calculation was 5:00PM. I need the result to be 5. I tried changing the values of thr receiving cells, but could not get the result to show 5. Cells C1 & D1 are defines as hh mm ampm "Peo Sjoblom" wrote: =D1-C1 "professor_ed" wrote in message ... Hello! I want to calculate # of hours worked in this example: C1 10:00 am D1 3:00 pm I want to display the duration of 5 hours. |
#6
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Thanks for the heads up
-- Regards, Peo Sjoblom "David Biddulph" <groups [at] biddulph.org.uk wrote in message ... But if you say it says 5:00PM, then I would expect it to convert to 17, not 5. If your original inputs were 10:00 am and 3:00 pm, then if you have the result cell formatted as h:mm AM/PM, the formula =D1-C1 ought to display as 5:00 AM (not PM), but to get it to show 5:00, you can change the format to [h]:mm. To convert to decimal hours, use Peo's formula. -- David Biddulph "Peo Sjoblom" wrote in message ... if you want it to be 5 decimal format you need to multiply the result with 24 and format the cell as general or number (not time), if you want 05:00 as a result you need to format the result as hh:mm =(D1-C1)*24 formatted as general will return 5 -- "professor_ed" wrote in message ... Thank you for the speedy response! The result of the calculation was 5:00PM. I need the result to be 5. I tried changing the values of thr receiving cells, but could not get the result to show 5. Cells C1 & D1 are defines as hh mm ampm "Peo Sjoblom" wrote: =D1-C1 "professor_ed" wrote in message ... Hello! I want to calculate # of hours worked in this example: C1 10:00 am D1 3:00 pm I want to display the duration of 5 hours. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Averaging times (similar to lap times) | Excel Discussion (Misc queries) | |||
Difference in dates calculations except between certain times. | Excel Discussion (Misc queries) | |||
Calculation of hourly rate times hours times 1.5 | Excel Worksheet Functions | |||
How are relay leg times or driving times entered and totaled? | Excel Worksheet Functions | |||
Charting and analyzing Times' times data for trends | Excel Discussion (Misc queries) |