Thread
:
How do I replace a negative number at the end of a formula with a.
View Single Post
#
2
Don Guillett
Posts: n/a
use ABS
abs(negativenumber)
--
Don Guillett
SalesAid Software
"dealn2" wrote in message
...
I have a formula in excel that calculates overtime hours for my employees.
Hours are deducted from overtime for personal time and comp time. If the
personal and comp time hours are more than the overtime hours it gives me
a
negative number and then because it is a negative number it adds hours to
the
regular hours pay. I need to have the formula treat a negative number
like a
zero or equal a zero and not a negative amount. Here is the formula I
use.
=IF(G45<212,0,G45-212)*1-(E67+C67+E51)
Thanks for any help you can give.
Reply With Quote