+ Reply to Thread
Results 1 to 6 of 6

You've entered too many arguments for this function!

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    46

    You've entered too many arguments for this function!

    I am trying to build a formula but I am either getting the error message "You've entered too many arguments for this function" or "The specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format"

    The formula I have is:

    IFERROR(VLOOKUP(YEAR(C2),MMD!$E$2:$Q$15,IF(MONTH(C2)=1,2, IF(MONTH(C2)=2,3, IF(MONTH(C2)=3,4, IF(MONTH(C2)=4,5, IF(MONTH(C2)=5,6, IF(MONTH(C2)=6,7, IF(MONTH(C2)=7,8, IF(MONTH(C2)=8,9, IF(MONTH(C2)=9,10, IF(MONTH(C2)=11,12,IF(MONTH(C2)=12,13),FALSE),IF(YEAR(C2)>MMD!$A$32,MMD!$B$32,VLOOKUP(YEAR(C2),MMD!$A$3:$B$32,2,FALSE)))

    See the attached file for sample data. So basically whatI want to do is in the tab "Excel Formula" under column D "MMD" I want to have the formula that pulls the numbers from the "MMD" tab in the following logic:
    - look at the year in Column "C" from the "Excel Formula" tab and if the year is less than the year shown in tab "MMD" cell E15 (in this case 2028) then look at the month in column B from tab "Excel Formula" and if the month is January then take the January number form the corresponding year (from the MMD tab), if February then the February number from the corresponding year and so on and so forth....as an example since the first example is Month 11 year 2026 then the formula in cell D2 should return the number 2.03 which is found under cell P13 in the MMD tab.
    - if the year in Column "C" from the "Excel Formula" tab and if the year is greater than the year shown in tab "MMD" cell E15 (in this case 2028) then look at the year in column C and return the corresponding number from column B " Main Rate". So as an example in the tab "Excel Formula" row 4 the year is 2042 and the month is 11 so cell D4 should have the value of 2.88 found under tab "MMD" cell B30.
    - and finally if the year in column C is greater than the year in "MMD" tab cell A32 (in this case greater than 2044) then always take the value of cell B32 under "MMD" tab, so in this case for every year above 2044 the value should be 2.90.

    My excel will always be set with those two tabs and the calculation will be done for hundreds of rows everyday since data numbers are changing every day.

    Please help!

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: You've entered too many arguments for this function!

    Try this in D2, copied down:

    =IFERROR(INDEX(MMD!$F$2:$Q$15,MATCH('Excel Formula'!C2,MMD!$E$2:$E$15,0),'Excel Formula'!B2),INDEX(MMD!$B$2:$B$32,MATCH('Excel Formula'!C2,MMD!$A$2:$A$32,0)))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,696

    Re: You've entered too many arguments for this function!

    All of those IFs in the middle of the formula will need a corresponding close-bracket, so you should have 11 close-brackets after the final check on the month (incidentally, you are not checking to see if the month is 10), as well as a value if FALSE. However, can't you just use:

    MONTH(C2)+1

    and not use any IFs?

    Hope this helps.

    Pete

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: You've entered too many arguments for this function!

    Actually, this is probably better, as it deals with a couple outside your range altogether.

    =IFERROR(IFERROR(INDEX(MMD!$F$2:$Q$15,MATCH('Excel Formula'!C2,MMD!$E$2:$E$15,0),'Excel Formula'!B2),INDEX(MMD!$B$2:$B$32,MATCH('Excel Formula'!C2,MMD!$A$2:$A$32,0))),"Outside Range")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-24-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: You've entered too many arguments for this function!

    Thank you for all your help! Amazing! Glenn - it works perfect!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: You've entered too many arguments for this function!

    Woo Hoo!! Thanks for the Rep. Glad to have helped.

+ 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. How have I entered too many arguments for this function
    By mrdasi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2015, 07:11 AM
  2. you've entered too many arguments for this function
    By bkriss13 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2014, 09:16 AM
  3. You've entered too many arguments for this function
    By jessrose in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2014, 11:09 PM
  4. [SOLVED] You've entered to many arguments for this function????????
    By STU22 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-20-2014, 06:40 PM
  5. Entered to many arguments for this function
    By cuda in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2014, 01:33 PM
  6. [SOLVED] [IF/AND] You've entered too many arguments for this function.
    By seaspi in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-21-2013, 07:04 PM
  7. You've entered too many arguments for this function
    By sutharnehal in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-24-2012, 09:25 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