+ Reply to Thread
Results 1 to 5 of 5

IF THEN formula stumped

  1. #1
    Registered User
    Join Date
    12-27-2013
    Location
    Southern, NH
    MS-Off Ver
    Excel 2008 mac
    Posts
    6

    IF THEN formula stumped

    Hi all,

    I'm trying to come up with a formula that has three conditions. I tried the IF/Then formula, but it says I have too many arguments. I'm looking for this:

    If the contract amount is under 50k that the following occurs PM(C2) 40% or more gets 5% of dollar amount (B2), PM30-39 gets 3.5, PM20-29 gets 2.5 less than less than 20 is 0. However, if a contract amount is over 50K than a PM of 20% gets a 5% rate.. so the formula I have is

    =IF(A2>=50000,if(C2>=20%,B2*0.025,IF(C2<=20%,B2*0),if(C2>=20%,B2*.05,0)))

    Contract amount = A2
    Dollar amount = B2
    Percentage = C2


    Any help would be appreciated!!

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: IF THEN formula stumped

    Hello,

    the logic you describe can be created with nested IF functions like this:

    Please Login or Register  to view this content.
    Or you can use a Lookup function like this:

    Please Login or Register  to view this content.
    What's wrong with your formula:

    Your formula is missing a closing bracket on the second IF statement, which causes the error message of "too many arguments". Remove one closing bracket from the end of the formula. This gives a starting point if you want to pursue your approach, but you are still missing a lot of conditions.

    =IF(A2>=50000,if(C2>=20%,B2*0.025,IF(C2<=20%,B2*0)),if(C2>=20%,B2*.05,0))

    cheers, teylyn

  3. #3
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: IF THEN formula stumped

    Please find below the formula based on my understanding:

    =IF(A2<50000,IF(C2>=40%,B2*5%,IF(AND(C2>=30%,C2<=39%),B2*3.5%,IF(AND(C2>=20%,C2<=29%),B2*2.5%,0))),IF(AND(C2<20%,A2>=50000),B2*5%,))

    I understand that you have not covered many other conditions, while explaining the problem. please let me know if i need to make this formula even comprehensive.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: IF THEN formula stumped

    excelfandoo, the And() functions are not required when you use the right order. If C2 is > 40, then this, otherwise, if C2 is > 30 then something else. Specifying that it also must be <= 39 is doubling up. It will already be less than 40, otherwise the step would never be applied.

  5. #5
    Registered User
    Join Date
    02-09-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    60

    Re: IF THEN formula stumped

    My bad. Thank you teylyn for pointing it out.

+ 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] Stumped on calculating a formula
    By TwistedShade in forum Excel General
    Replies: 1
    Last Post: 11-11-2013, 06:38 AM
  2. [SOLVED] Stumped on an IF Formula
    By studiostustar in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-17-2012, 08:13 PM
  3. [SOLVED] Stumped with Formula Array returning cell adjacent to formula dataset
    By Giles_Silver in forum Excel General
    Replies: 5
    Last Post: 06-04-2012, 12:18 AM
  4. Stumped on Formula
    By Jessamynhp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-19-2005, 06:05 PM
  5. [SOLVED] Completely stumped for formula
    By kirbster1973 in forum Excel General
    Replies: 3
    Last Post: 05-26-2005, 05:15 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