+ Reply to Thread
Results 1 to 4 of 4

Help with complex If statement please

  1. #1
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help with complex If statement please

    Hello all, first time poster here and am looking for help with writing the proper IF formula for the following rules:

    1. IF E11<>H11, IF E16<>H16 AND IF P16="Y", ("M16"*-1)
    2. IF E11<>H11 AND E16=H16, ("M16"*-1)
    3. IF E11=H11 AND E16<>H16, ("M16"*1)
    4. IF E11=H11, E16<>H16 AND P16="Y", ("M16"*-1)
    5. ALL OTHER RESULTS SHOULD EQUAL ZERO

    I am not well versed in excel complex or nesting if statements but hopefully this is enough guidance to go off of.

    Thanks in advance!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Help with complex If statement please

    to use a nested IF

    1. IF E11<>H11, IF E16<>H16 AND IF P16="Y", ("M16"*-1)
    2. IF E11<>H11 AND E16=H16, ("M16"*-1)
    4. IF E11=H11, E16<>H16 AND P16="Y", ("M16"*-1)

    -----
    3. IF E11=H11 AND E16<>H16, ("M16"*1)
    =IF ( OR ( AND ( E11 <> H11, E16 <> H16, P16="Y"), AND (E11 <> H11, E16=H16) , AND ( E11=H11, E16 <> H16, P16="Y")), (M16*-1), IF( AND(E11=H11, E16 <> H16), M16*1, 0))

    =IF(OR(AND(E11<>H11,E16<>H16,P16="Y"),AND(E11<>H11,E16=H16),AND(E11=H11,E16<>H16,P16="Y")),(M16*-1),IF(AND(E11=H11,E16<>H16),M16*1,0))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with complex If statement please

    Wow, thank you for such a quick response!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Help with complex If statement please

    your welcome - thanks for the rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Complex IF AND OR statement
    By amack05 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2012, 11:09 AM
  2. Complex IF Statement
    By rhudgins in forum Excel General
    Replies: 1
    Last Post: 03-14-2011, 06:15 PM
  3. complex if statement
    By snoopy990 in forum Excel General
    Replies: 5
    Last Post: 06-02-2009, 01:21 PM
  4. Complex If Statement
    By robert_shindorf in forum Excel General
    Replies: 33
    Last Post: 12-12-2008, 09:08 PM
  5. Complex IF Statement
    By brooke1416 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2008, 12:24 AM

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