+ Reply to Thread
Results 1 to 2 of 2

IF with AND statement help

  1. #1
    Registered User
    Join Date
    04-22-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    94

    IF with AND statement help

    I have an IF statement that use the AND function, im having difficulty adding more arguments to my statement as shown below:

    =IF(AND(AP33=7)*AND(AX19=35),AP27,AQ27)

    I want to add in:

    AND(AP33<>7 AND AX19<>35), AP22)

    I have tried:

    =IF(AND(AP33=7)*AND(AX19=35)*(AP33<>7)*AND AX19<>35),AP27,AQ27, AP22,AP22)

    I am thinking i need an OR function in somewhere.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF with AND statement help

    This perhapos?

    =IF(AND(AP33=7,AX19=35),AP27,if(AND(AP33<>7, AX19<>35), AP22,AQ27))

+ 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