+ Reply to Thread
Results 1 to 8 of 8

Help with complex if then and conditional formula

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Pennsylvania
    MS-Off Ver
    2016
    Posts
    8

    Help with complex if then and conditional formula

    I need to enhance this formula to account for another condition.

    In English: if F7= Lease or Referral the result is -0- (end)
    Next condition: If F7 is Buyer or Seller then it must look at P7 for commission amount and if the commission is less than 2000 the result is -0-, if the commission shown in P7 is greater than 2000, then I need result of ROUNDUP(N7/250000,0)*50)

    =IF(OR(F7="Lease",F7="Referral"),0,IF(OR(F7="Buyer",F7="Seller"),(ROUNDUP(N7/250000,0)*50)))

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,925

    Re: Help with complex if then and conditional formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note that you said less than 2000 and greater than 2000. This formula uses less than 2000 and greater than or equal to 2000. For [lessthan] use a less-than symbol The board seems to think I am trying to do an HTML injection here and won't allow it.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: Help with complex if then and conditional formula

    Try

    =IF(OR(F7="Lease",F7="Referral"),0,IF(AND(OR(F7="Buyer",F7="Seller"),P7>2000),(ROUNDUP(N7/250000,0)*50),0))

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,673

    Re: Help with complex if then and conditional formula

    Please Login or Register  to view this content.
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    06-16-2017
    Location
    Pennsylvania
    MS-Off Ver
    2016
    Posts
    8

    Re: Help with complex if then and conditional formula

    @JohnTopley....that formula did it. Thanks! However, I have one additional condition that I need to account for
    IF(OR(F2="Lease",F2="Referral"),0,IF(AND(OR(F2="Buyer",F2="Seller"),P2>2000),100))

    I now need to add it to the if/and statement that AH2 must also equal "yes" .... is that possible? I'm guessing it's another nested formula?
    Last edited by JNYEROGL; 06-17-2017 at 11:26 PM. Reason: need additional condition in formula

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: Help with complex if then and conditional formula

    This ... ??

    IF(OR(F2="Lease",F2="Referral"),0,IF(AND(OR(F2="Buyer",F2="Seller),AH2="Yes",P2>2000),100))

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Help with complex if then and conditional formula

    Or just:
    =IF(AND(OR(F2="Buyer",F2="Seller"),AH2="Yes",P2>2000),100,0)

    NOTE: John's formula (post #6) yields "False" if F2 does NOT equal ANY of the specified terms. This one yields 0.

    The first formula can also be shortened in the same way:
    IF(AND(OR(F7="Buyer",F7="Seller"),P7>=2000),ROUNDUP(N7/250000,0)*50,0)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-18-2017 at 05:07 AM.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Help with complex if then and conditional formula

    or
    =IF(AND(OR(F2="Buyer",F2="Seller"),AH2="Yes",P2>2000),100,0)


    =IF(AND(OR(F2={"Buyer","Seller"}),AH2="Yes",P2>2000),100,0)
    Last edited by sandy666; 06-18-2017 at 04:59 AM.

+ 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. Complex/two stage IF Formula/conditional formatting help
    By JadeEArcher in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2016, 07:24 AM
  2. Highly Complex Conditional Formula Help Needed
    By Aimeeeshaw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 12:13 PM
  3. Complex Conditional Formatting formula help
    By sean.tapscott in forum Excel General
    Replies: 14
    Last Post: 08-24-2010, 02:10 PM
  4. Complex If then Conditional formula
    By dklein2149 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2009, 12:29 PM
  5. Complex If then Conditional formula
    By dklein2149 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2009, 12:23 PM
  6. Complex logical/conditional formula
    By Ash in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2006, 06:10 PM
  7. Replies: 6
    Last Post: 03-12-2006, 06:30 PM

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