Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

date and time in 2 cells to create subtraction in 3rd

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeR-Oz - 27 Oct 2007 10:25 GMT
I have 2 cells that are in the format line of

A1: 27/06/2006  9:42:00 pm
B1:   7/06/2006  9:52:05 pm

Want third column C1: 00:10

I wish to subtract the two cells to get the difference in time  i.e 10:00
(only interested in nearest minute)

Then a average at the end of the column of the the times in this 3rd column
as a result of the difference between the 2 times.

How would I do this?

I could do it if it was just numbers but once it is in this time/dtae format
I am completely lost!

Thanks
MIke
Niek Otten - 27 Oct 2007 10:33 GMT
Hi Mike,

=MOD(B1,1)-MOD(A1,1)

Format as Time

You can use the AVERAGE function on the column, again, format as Time

Time in Excel is stored as a fraction of a day

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

|I have 2 cells that are in the format line of
|
[quoted text clipped - 16 lines]
| Thanks
| MIke
Bob Phillips - 27 Oct 2007 10:35 GMT
=B1-A1

etc

=AVERAGE(C1:C100)

as simple as that

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I have 2 cells that are in the format line of
>
[quoted text clipped - 18 lines]
> Thanks
> MIke
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.