ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM (https://www.excelbanter.com/excel-worksheet-functions/254481-form-4-range-time-1-20-2010-4-00-am-1-21-2010-10-00-am.html)

Peter Gonzalez[_2_]

Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM
 
Im trying to figure out the range of time spent from two different days. Say
I have on 1/21/2010 4:00 AM in Cell C14 and 1/22/2010 10:00 AM in Cell G14.
I've tried doing (G14-C14) but all i get is 6:00 becasue i need to have it
formatted as (Hr:Min). How would I get it to just have the total amount of
hours from the time elapsed in that span that I'm working with?

Thanks

Bernard Liengme[_2_]

Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM
 
Use custom format [h]:00
The square backers [] allow hours to exceed 24
If you want, fro example, 4:30 to display as 04:30 use two h's as in [hh]:mm

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Peter Gonzalez" wrote in message
...
Im trying to figure out the range of time spent from two different days.
Say
I have on 1/21/2010 4:00 AM in Cell C14 and 1/22/2010 10:00 AM in Cell
G14.
I've tried doing (G14-C14) but all i get is 6:00 becasue i need to have it
formatted as (Hr:Min). How would I get it to just have the total amount of
hours from the time elapsed in that span that I'm working with?

Thanks



Pete_UK

Form 4 Range of time from 1/20/2010 4:00 AM To 1/21/2010 10:00 AM
 
Use a custom format of:

[h]:mm

which will display hours without wrapping them at 24, i.e. 30:00.

Hope this helps.

Pete

On Jan 26, 6:45*pm, Peter Gonzalez
wrote:
Im trying to figure out the range of time spent from two different days. Say
I have on 1/21/2010 4:00 AM in Cell C14 and 1/22/2010 10:00 AM in Cell G14.
I've tried doing (G14-C14) but all i get is 6:00 becasue i need to have it
formatted as (Hr:Min). How would I get it to just have the total amount of
hours from the time elapsed in that span that I'm working with?

Thanks




All times are GMT +1. The time now is 11:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com