Results 1 to 9 of 9

Using IF, AND, OR together

Threaded View

  1. #1
    Registered User
    Join Date
    06-26-2006
    Location
    New York
    MS-Off Ver
    Office Pro 2003 primarily, some 2007
    Posts
    85

    Using IF, AND, OR together

    Hi, I think this should be a fairly easy question. But I'm not sure how to search given that my keywords are all very common and short.

    I have two columns. First column contains either "P" or "N" second column contains a percentage (positive or negative value). In the third column I'd like to have the result be that IF "P" AND positive percent value, OR "N" AND negative percent value, THEN "Win", otherwise "Lose"

    The formula I've started looks like this:

    =IF(AND(S2>0,H2="P")*(OR(S2<0,H2="N")),"Win","Lose")

    Excel added in the "*" which I think is part of my problem, but I'm not sure on the syntax for adding in an AND statement and an OR statement together.

    Help is much appreciated.
    Last edited by dylanemcgregor; 06-17-2009 at 01:18 PM.

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