ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Time Formula (https://www.excelbanter.com/excel-worksheet-functions/62753-time-formula.html)

DMJohnson

Time Formula
 
I need a formula to calculate differance in set times.
Example: 2:39 and 2:49 (m:sec) The problem is negative times display as
######.
Some solutions will be positive and some negative.

Gary''s Student

Time Formula
 
Pull=down:

Tools Options... Calculation and check the 1904 data system
--
Gary's Student


"DMJohnson" wrote:

I need a formula to calculate differance in set times.
Example: 2:39 and 2:49 (m:sec) The problem is negative times display as
######.
Some solutions will be positive and some negative.


Chip Pearson

Time Formula
 
Tools Options... Calculation and check the 1904 data system

Note that this will cause existing dates to be 4 years and a day
off.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Gary''s Student" wrote
in message
...
Pull=down:

Tools Options... Calculation and check the 1904 data system
--
Gary's Student


"DMJohnson" wrote:

I need a formula to calculate differance in set times.
Example: 2:39 and 2:49 (m:sec) The problem is negative times
display as
######.
Some solutions will be positive and some negative.




Roger Govier

Time Formula
 
Hi

You could cheat!!
If times are in A1 and B1,
in C1
=IF(A1B1,1,-1) and hide the column
In D1
=MAX(A1:B1)-MIN(A1:B1)
Use FormatConditional FormatFormula Is =A1<B1
Format cells as Red

To get the total time, then use
=SUMPRODUCT(C1:C100,D1:D100)

--
Regards

Roger Govier



DMJohnson wrote:
I need a formula to calculate differance in set times.
Example: 2:39 and 2:49 (m:sec) The problem is negative times display
as ######.
Some solutions will be positive and some negative.





All times are GMT +1. The time now is 05:55 PM.

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