Link to home
Start Free TrialLog in
Avatar of Fordraiders
FordraidersFlag for United States of America

asked on

update formula

update formula

=IF(OR(T4>=0,S4>8%),"Update Quote",IF(AND(T4<1000,S4<4%),"FVP Approval","RSVP Approval"))

I'm trying to update this formula for the second part:
IF(AND(T4<1000,S4<4%),"FVP Approval","RSVP Approval"))

to catch  T4 >0 AND < 1000   ?

not working ?
IF(AND(T4>0 and t4<1000,S4<4%),"FVP Approval","RSVP Approval"))
Thanks
fordraiders
Avatar of Bill Prew
Bill Prew

From a syntax point of view you have an extra "and" in there, I think you want:

=IF(OR(T4>=0,S4>8%),"Update Quote",IF(AND(T4>0,T4<1000,S4<4%),"FVP Approval","RSVP Approval"))

Open in new window

But logically I'm not sure if that is what you truly want.  As it stands anytime T4<0 the first IF will be TRUE, so you will never get to the second IF...


»bp
Avatar of Fordraiders

ASKER

Bill,
Yes, if T4 IS A NEGATIVE number then i should get an "Update Quote" .
Then maybe you want this?

=IF(OR(T4<0,S4>8%),"Update Quote",IF(AND(T4>=0,T4<1000,S4<4%),"FVP Approval","RSVP Approval"))

Open in new window

Which in sort of a verbal mode would be:

if T4 less than 0 or S4 greater than 8% then
      "UpdateQuote"
else
      if T4 greater than or equal to 0 and T4 less than 1000 and S4 less than 4% then
            "FVP Approval"
      else
            "RSVP Approval"
      end if
end if



»bp
T4. = $.       S.4. = %
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Bill !
Bill, this is the formula that they want me to go with
=IF(OR(T4>=-250,S4>8%),"Update Quote",IF(AND(T4<-1000,S4<4%),"FVP Approval","RSVP or Director Approval"))

But, I have a request please.
They want to add a condition.
If Column P is <0 (or anything negative). they want that to be the first condition and exit formula..with text "FVP Approval"

I can repost a new question based on this if so ?

fordraiders
If I'm understanding, then wouldn't just be:

=IF(P4<0,"FVP Approval",IF(OR(T4>=-250,S4>8%),"Update Quote",IF(AND(T4<-1000,S4<4%),"FVP Approval","RSVP or Director Approval")))

Open in new window


»bp
thanks sir !!
 very much!