+ Reply to Thread
Results 1 to 10 of 10

"You've entered too many arguments for this function" error

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

    Question "You've entered too many arguments for this function" error

    Hello,

    Could someone please help me re-write this formula to not error please?
    I understand it should be done with AND & OR functions, but I don't know enough to rebuild this formula.

    Thanks!

    =IFERROR(INDEX(Tracking!$A$1:$A$1000,SMALL(IF(Tracking!$D$1:$D$1000="Near Miss",ROW(Tracking!$D$1:$D$1000),IF(Tracking!$D$1:$D$1000="RO - Near Miss",ROW(Tracking!$D$1:$D$1000),IF(Tracking!$D$1:$D$1000="Medical Aid",ROW(Tracking!$D$1:$D$1000),IF(Tracking!$D$1:$D$1000="Lost Time",ROW(Tracking!$D$1:$D$1000),IF(Tracking!$D$1:$D$1000="Medical Aid - GRTW",ROW(Tracking!$D$1:$D$1000)))),ROW()-1)),""))

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

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

    "Re-write this formula to not error" <> "do what I want it to"

    What should this be doing?

    INDEX(A1:A1000, SMALL(D1:D1000 = conditions, k = what??) )

    Then wrap that with an IFERROR(do, "") I guess?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

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

    Try this
    (maybe it might be right)

    =IFERROR(INDEX(Tracking!$A$1:$A$1000,SMALL(
    IF(OR(Tracking!$D$1:$D$1000="Near Miss",
    Tracking!$D$1:$D$1000="RO - Near Miss",
    Tracking!$D$1:$D$1000="Medical Aid",
    Tracking!$D$1:$D$1000="Lost Time",
    Tracking!$D$1:$D$1000="Medical Aid - GRTW"),
    ROW(Tracking!$D$1:$D$1000), ROW()-1))),"")

  4. #4
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

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

    The formula is used to automatically copy a row's cell contents from one sheet to another sheet based on certain trigger phrases on the D1:D1000 range.

    Example: If "Sheet1!D1" contains "Medical Aid" (or any other of the trigger phrases) then the formula will copy the entire contents of all the cells in that row to a row on Sheet2.

    The formula worked perfectly UNTIL we added two more trigger phrases. Previously there were 3 trigger phrases and now there are 5.

  5. #5
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

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

    Quote Originally Posted by José Augusto View Post
    Try this
    (maybe it might be right)

    =IFERROR(INDEX(Tracking!$A$1:$A$1000,SMALL(
    IF(OR(Tracking!$D$1:$D$1000="Near Miss",
    Tracking!$D$1:$D$1000="RO - Near Miss",
    Tracking!$D$1:$D$1000="Medical Aid",
    Tracking!$D$1:$D$1000="Lost Time",
    Tracking!$D$1:$D$1000="Medical Aid - GRTW"),
    ROW(Tracking!$D$1:$D$1000), ROW()-1))),"")
    The error for this formula now says "too few arguments"

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

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

    Then can you post an example spreadsheet of where it was working?

    Also it looks like this is the INDEX(SMALL) array construction, is that what it's doing?

  7. #7
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

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

    Quote Originally Posted by ben_hensel View Post
    Then can you post an example spreadsheet of where it was working?

    Also it looks like this is the INDEX(SMALL) array construction, is that what it's doing?
    I will sanitize and submit as soon as I can.

  8. #8
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

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

    Here is a sanitized version.
    Please ignore the REF errors, they occurred after sanitizing.
    The formula in question is found in the cells on the OI SHEET
    Generally the formula copies from TRACKING SHEET to OI SHEET

  9. #9
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

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

    Yeah try this, in cell A2 of sheet OI:

    Please Login or Register  to view this content.
    Note this is an array formula. You must confirm entry with CTRL+SHIFT+ENTER, not just the ENTER key.

    Add or remove terms in the double-quote comma-separated curly-bracket list.
    Last edited by ben_hensel; 02-06-2018 at 07:20 PM.

  10. #10
    Registered User
    Join Date
    07-24-2017
    Location
    Vancouver, BC
    MS-Off Ver
    2016 (365)
    Posts
    62

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

    It works perfectly! Thank you!

+ 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. "Error" or "Disallow" Entries If Data Entered in Wrong Cell
    By sage.tx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2017, 12:20 PM
  3. 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
  4. "You've entered too many arguments for this function"
    By twyckoff in forum Excel General
    Replies: 3
    Last Post: 11-11-2014, 01:12 PM
  5. Nested IF function error "You've entered too many arguments..."
    By lovetofly32 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2014, 08:33 PM
  6. [SOLVED] Help with "You've entered too many arguments for this function" multiple INDEX(MATCH
    By BeachRock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2013, 06:10 PM
  7. Replies: 6
    Last Post: 05-18-2012, 08:20 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