+ Reply to Thread
Results 1 to 7 of 7

Turn this "if" "or" statement into an excel formula

  1. #1
    Registered User
    Join Date
    01-10-2008
    Posts
    28

    Turn this "if" "or" statement into an excel formula

    Trying to make this equation work:

    IF A = "Standard" then,
    IF B>0 then C
    IF B<0 then D

    OR
    IF A = "Non-Standard" then,
    IF B>0 and E<0 then C
    IF B<0 and E<0 then D

    Shouldn't be this difficult, but my brain is toast right now!
    Last edited by rmichaels55; 04-22-2009 at 05:39 PM. Reason: Change title

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Trying to make this equation work!

    what happens if anything = 0 ?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trying to make this equation work!

    Please read the forum rules about thread titles, and then amend yours.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-10-2008
    Posts
    28

    Re: Trying to make this equation work!

    Told you I'm toast...change the < to <=

    Thanks

  5. #5
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Turn this "if" "or" statement into an excel formula

    Try this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  6. #6
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Turn this "if" "or" statement into an excel formula

    CL code with little change of <= addition of = sign in >

    =IF(A1="Standard",IF(B1>0,C1,D1),IF(A1="Non-Standard",IF(AND(B1>0,E1<=0),C1,IF(AND(B1<=0,E1<=0),D1,"Conditions not met")),"Conditions not met"))

  7. #7
    Registered User
    Join Date
    01-10-2008
    Posts
    28

    Re: Turn this "if" "or" statement into an excel formula

    Thanks, I was missing one scenario, but I added it...thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1