Subtracting an absolute value

N

NOAAlw

=IF(J186>0,(J186-J198),(J128-J198))

How can I change this formula to make J198 an absolute value. Because if
J198 is negative, it adds the number and I want it to always subtract.

Can someone please advise me on how to make that happen?
 
J

JP Ronse

Try ...

=IF(J186>0,(J186-ABS(J198)),(J128-ABS(J198)))

ABS =absolute value.

WKR,

JP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top