Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 46
Default date and time in 2 cells to create subtraction in 3rd

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

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,440
Default date and time in 2 cells to create subtraction in 3rd

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

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"MikeR-Oz" wrote in message ...
|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
|


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default date and time in 2 cells to create subtraction in 3rd

=B1-A1

etc

=AVERAGE(C1:C100)

as simple as that

--
HTH

Bob

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

"MikeR-Oz" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date subtraction -How to not show negative when 2nd date not entered Edward[_2_] New Users to Excel 2 September 27th 07 03:03 PM
HOW DO I CREATE A SUBTRACTION FORMULA MEDIC70736 Excel Worksheet Functions 2 January 18th 07 04:06 PM
subtraction off time after midnight Steved Excel Worksheet Functions 2 May 24th 06 01:46 AM
subtraction with time format cells Stefano Excel Worksheet Functions 2 March 17th 05 03:06 PM
decimal time subtraction please. Steved Excel Worksheet Functions 6 November 25th 04 01:07 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"