Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date and Time Calculations
How can I calculate the difference between a date and time format and another
date and time format? I would like the return value be in hours. Ex: 10/27/2006 10:00 - 10/26/2006 12:00 = 22 hours |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date and Time Calculations
Subtract the smaller from the larger and use a custom format of:
[hh] or [hh]:mm The [] means that the hours won't roll into days. wayne wrote: How can I calculate the difference between a date and time format and another date and time format? I would like the return value be in hours. Ex: 10/27/2006 10:00 - 10/26/2006 12:00 = 22 hours -- Dave Peterson |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date and Time Calculations
=A1-A2 and format as [h]:mm
-- David Biddulph "wayne" wrote in message ... How can I calculate the difference between a date and time format and another date and time format? I would like the return value be in hours. Ex: 10/27/2006 10:00 - 10/26/2006 12:00 = 22 hours |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Date and Time Calculations
Thank you very much.....I learn something new with the brackets [hh].
Wayne "Dave Peterson" wrote: Subtract the smaller from the larger and use a custom format of: [hh] or [hh]:mm The [] means that the hours won't roll into days. wayne wrote: How can I calculate the difference between a date and time format and another date and time format? I would like the return value be in hours. Ex: 10/27/2006 10:00 - 10/26/2006 12:00 = 22 hours -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculations from date and time values | Excel Worksheet Functions | |||
How to calculate Date & Time differences | Excel Worksheet Functions | |||
Calculations with date time interval | Excel Worksheet Functions | |||
Using VLOOKUP with a Date and Time | Excel Discussion (Misc queries) | |||
How do I calculate if a date is in a certain time frame? | Excel Worksheet Functions |