![]() |
|
#1
|
|||
|
|||
![]()
Hi,
I have a formula calculating number of hours as follows: =TEXT(MAX([@Total2],[@Début])-MIN([@Total2],[@Début]),"-H::MM") I would like to add an If statement, saying that if cell ## returns a result of 0:00 (hrs) then leave the cell blank. How do I add this into the existing formula? Thanks Caz |
#2
|
|||
|
|||
![]()
If I understand correctly, try this:
=IF(MAX([@Total2],[@Début])-MIN([@Total2],[@Début])=0,"",TEXT(MAX([@Total2],[@Début])-MIN([@Total2],[@Début]),"-H::MM")) Out of curiosity, why are you using the TEXT function? |
#3
|
|||
|
|||
![]()
That worked great, thanks :-)
I have used this formula as it is the only way I could get the results to show negative results when using time formulas. |
#4
|
|||
|
|||
![]()
Unfortunately, my equation still does not work, please see the attached image.
It is calculating the negative hours OK, but it is showing the positive variations as negative? I have marked the cells which should be positives in yellow. I have tried the basic Total2 - Total but this does not show the negative results. Any help would be great. |
#5
|
|||
|
|||
![]()
See the attached.
|
#6
|
|||
|
|||
![]()
Yes, this worked perfectly. Thanks very much
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
JuicyHMouse | Excel | 1 | 03-11-2017 06:41 AM |
nested formula using IF & AND | paxon | Excel | 3 | 02-18-2016 05:32 AM |
![]() |
TDWolsey | Excel | 2 | 01-06-2016 11:31 PM |
![]() |
ejtoll | Word Tables | 1 | 12-05-2012 05:09 PM |
![]() |
JimS378 | Excel | 7 | 05-03-2011 08:20 PM |