+ Reply to Thread
Results 1 to 7 of 7

If nested formulas, get "too many arguments" error

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exclamation If nested formulas, get "too many arguments" error

    I'm building a formula so that it will calculate royalties to be paid to an investor as follows: i) Royalties are capped at 5 million (will not pay royalties after revenue exceeds 5 million); ii) Royalty on 4th and 5th million is 2%, on 3rd Million is 4%, on 2nd million is 6%, on 1st million is 8% (i.e. on the 1st Million of Revenue). The Revenue value calculated by the spreadsheet is on cell $G$13.

    The formula that is getting me the "TOO MANY ARGUMENTS" error message is:

    =IF($G$13>5000000,((2000000*0.02)+(1000000*0.04)+(1000000*0.06)+(1000000*0.08)),IF($G$13>3000000,(($G$13-3000000)*0.02)+(1000000*0.04)+(1000000*0.06)+(1000000*0.08)),IF($G$13>2000000,(($G$13-2000000)*0.04)+(1000000*0.06)+(1000000*0.08)),IF($G$13<1000000,(($G$13-1000000)*0.06)+(1000000*0.08)))

    Please help me out! I really need a solution as soon as possible.

    Thanks!
    Last edited by jpelayo; 10-11-2013 at 02:03 AM. Reason: typo

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If nested formulas, get "too many arguments" error

    Hi.

    Welcome to the forum. Take a look to these.

    http://office.microsoft.com/en-us/ex...005209118.aspx

    http://en.kioskea.net/faq/26886-nest...excel-function
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: If nested formulas, get "too many arguments" error

    welcome to the forum, jpelayo. there are a few issues here.
    1) don't need so many unnecessary brackets. like our normal maths, Excel will calculate the multiplication before the addition
    2) although Excel 2003 only allows 7 Nested IFs, you didn't exceed it. you merely closed your brackets at the wrong places
    3) you are missing the calculation for 1M to 2M. you have >5M, >3M, >2M, <1M. is there never such a scenario?
    4) at the last scenario of <1M, you stated you want the calculation as ($G$13-1000000)*0.06+1000000*0.08. if it's less than 1M, wouldn't G13-1M be a negative? maybe that's what you want. just confirming
    5) in all equations, you have 1M * 8%. since it's common, you can place it 1 time outside the equation
    6) your last equation for <1M is multiplying 6% & not the 2% you mentioned in the opening post

    this is your equation that will work after amendment of 1 & 2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    the rest needs to be clarified by you

    Edit: i think this might help you:
    http://mcgimpsey.com/excel/variablerate.html

    and maybe give us what you hope to see if G13 is the following:
    500K
    1.5M
    2.5M
    3.5M
    4.5M
    6M
    Last edited by benishiryo; 10-11-2013 at 03:08 AM.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: If nested formulas, get "too many arguments" error

    Just upload you sample workbook, hope we'll fix it for u

    Azumi

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: If nested formulas, get "too many arguments" error

    =IF($G$13<1000000,$G$13*0.08,IF($G$13<2000000,$G$13*0.06+20000,IF($G$13<3000000,$G$13*0.04+60000,IF($G$13<5000000,$G$13*0.02+120000,220000))))
    try this formula

  6. #6
    Registered User
    Join Date
    10-11-2013
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If nested formulas, get "too many arguments" error

    Thanks to everyone and in particular to benishiryo. I followed his instructions and formula syntax, made the corrections and the formula now works like a charm!

    The final formula is: =IF($G$13>5000000,2000000*0.02+1000000*0.04+1000000*0.06+1000000*0.08,IF($G$13>3000000,($G$13-3000000)*0.02+1000000*0.04+1000000*0.06+1000000*0.08,IF($G$13>2000000,($G$13-2000000)*0.04+1000000*0.06+1000000*0.08,IF($G$13>1000000,($G$13-1000000)+1000000*0.06,IF($G$13<1000000,($G$13-1000000)*0.06+1000000*0.08)))))

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If nested formulas, get "too many arguments" error

    Please Login or Register  to view this content.
    1) I dont find your file in your question.

    2) another approach.

    Make a table of all data and use VLookup to find those data.

    That is also an solution if you get to the limited 7 if statements in the excel 2003 version.

    Since you didn't add an workbook to work with, I can't show it to you.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: If nested formulas, get "too many arguments" error

    If you still want to use brackets to distinguish between the various calculation being done, you can write your formula like this........

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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] Nested IF function error "You've entered too many arguments..."
    By lhendrickson in forum Excel General
    Replies: 15
    Last Post: 11-19-2018, 09:53 AM
  2. Getting "this function takes no arguments" and "#NAME?" error
    By chuckmckiel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2014, 01:58 PM
  3. Nested IFs and error message "uses more levels of nesting than allowed"
    By pannassi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2012, 11:48 AM
  4. Replies: 1
    Last Post: 06-07-2012, 11:38 AM
  5. Replies: 3
    Last Post: 09-07-2009, 04:48 PM

Tags for this Thread

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