Glasgowsmile
Active Member
- Joined
- Apr 14, 2018
- Messages
- 280
- Office Version
- 365
- Platform
- Windows
Good morning,
Looking for help with the formula below:
The problem I have is that sometimes J12 is a larger number than G12 so it throws off the comparison against P12.
For example:
J12 = 73
G12 = 44
So it comes out to -29, but I want it to be just 29. How do I remove the negative component from this?
Looking for help with the formula below:
VBA Code:
=IFERROR(IF(AND($P12<>"", $S12<>"",$J12-$G12>$P12),$S12*$P12,""),"")
The problem I have is that sometimes J12 is a larger number than G12 so it throws off the comparison against P12.
For example:
J12 = 73
G12 = 44
So it comes out to -29, but I want it to be just 29. How do I remove the negative component from this?
Last edited: