andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I have this formula that doesn't seem to be doing what I want:
C12 has a value of 3:51.
D4 is 3:52
D5 is 4:04
D6 is 4:14
What the formula is supposed to do is if C12 is lower than D4, my result should take the difference between the 2 multiplied by 2 plus the difference between D4 & D5 (should be 14)
If C12 is Higher than D4 but lower than D5 it should be the difference.
And if C12 is higher than D6 the difference (negative) would be displayed, anything else would be 0.
Any help would be wonderful!
I have this formula that doesn't seem to be doing what I want:
Code:
=IF(C12>=KDS!D6,KDS!D6-C12,IF(C12<=KDS!D4,((KDS!D4-C12)*2)+KDS!D5-KDS!D4,IF(C12<=KDS!D5,KDS!D5-C12,0)))
C12 has a value of 3:51.
D4 is 3:52
D5 is 4:04
D6 is 4:14
What the formula is supposed to do is if C12 is lower than D4, my result should take the difference between the 2 multiplied by 2 plus the difference between D4 & D5 (should be 14)
If C12 is Higher than D4 but lower than D5 it should be the difference.
And if C12 is higher than D6 the difference (negative) would be displayed, anything else would be 0.
Any help would be wonderful!