How to subtract positive number from negative number in an IF string

5 pts.
Tags:
IF statement
SQL
Having trouble with knowing how to subtract positive from negative numbers in an IF formula. Also want to add a conditional formatting for all negative time in column H.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hello,

In virtually all programming languages, math is math. Ensure that all of the numerical values are SIGNED; that is that they support positive and negative numbers. (UNSIGNED numbers are always positive). Then merely do the math. SUBTRACT fld1 FROM fld2 or whatever syntax is appropriate for your language.

For five points, what language would use this syntax : SP fld1,fld2 ?

I do not understand what you mean by “conditional formatting” nor do you specify what language you are coding in. The answer to your formatting question is going to be different depending on if you are using FORTRAN or RPG or whatever.

Steve

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    I guess the question was about Excel. I'm just wondering why it was tagged with 'SQL'.
    77,040 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: