PC Review


Reply
Thread Tools Rate Thread

Calc. Length of time with time-in, time-out, date-in, date-out in diff. columns

 
 
Niceven
Guest
Posts: n/a
 
      28th May 2004
I need to calculate total length of time in hours:minutes:seconds.

ColumnA: Arrive date in M/D/YYYY
ColumnB: Depart date in M/D/YYYY
ColumnC: Arrive time in H:M:Seconds
ColulmnD: Depart time in H:M:Seconds

I can't figure out how to get my formulas to look at BOTH date AND TIME
& arrive at a total length of time that honors a period over 24 hours.


I know I can format [H], and I've looked at other formula pieces, but
I'm unable to get all four pieces above to connect.

How do I do that?

Nic.


---
Message posted from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      28th May 2004
Hi
use the following formula
=(B1-A1)+(D1-C1)
and format the resulting cell with
[hh]:mm

--
Regards
Frank Kabel
Frankfurt, Germany


> I need to calculate total length of time in hours:minutes:seconds.
>
> ColumnA: Arrive date in M/D/YYYY
> ColumnB: Depart date in M/D/YYYY
> ColumnC: Arrive time in H:M:Seconds
> ColulmnD: Depart time in H:M:Seconds
>
> I can't figure out how to get my formulas to look at BOTH date AND
> TIME & arrive at a total length of time that honors a period over 24
> hours.
>
>
> I know I can format [H], and I've looked at other formula pieces, but
> I'm unable to get all four pieces above to connect.
>
> How do I do that?
>
> Nic.
>
>
> ---
> Message posted from http://www.ExcelForum.com/


 
Reply With Quote
 
Norman Harker
Guest
Posts: n/a
 
      28th May 2004
Hi Nic!

Try:
=(B1+D1)-(A1+C1)
Format [hh]:mm:ss

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(E-Mail Removed)


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Length of time from date/time custom format Andrew Microsoft Excel Misc 2 21st Sep 2009 04:20 PM
Excel 2007 calculate time between 2 date/time columns Kevo Microsoft Excel Misc 8 25th Apr 2009 12:02 AM
subtracting two date/time columns to get total time Drew Microsoft Excel Programming 2 10th Nov 2006 03:04 PM
Calculating days & time left from start date/time to end date/time =?Utf-8?B?bWFyaWU=?= Microsoft Excel Worksheet Functions 7 7th Dec 2005 02:36 PM
calc hours from date/time to date/time Shardon Microsoft Excel Worksheet Functions 1 9th Nov 2003 11:45 PM


Features
 

Advertising
 

Newsgroups
 


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