+ 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-19-2019
    Location
    Wigan
    MS-Off Ver
    365
    Posts
    3

    You've entered too many arguments for this function

    Hello,



    I'm trying pull through the hours on tab 01 in column BC for each Task Code & Employee role into a table in the Hours tab.



    However I'm running into some difficulties as I'm getting the titled error from this formula:



    =IFERROR(VLOOKUP(A$4,B$3,INDIRECT("'"&B$2&"'!$AW$7:$BC$132'!"),3,FALSE),"")



    I'm entirely sure that I have even the correct formula to pull through this information.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

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

    You have 5 arguments in your VLOOKUP() function, but VLOOKUP() only takes 4 arguments. Which value/reference is intended for the lookup value: A4 or B3?

    Or, looking more closely, perhaps your hope was to look for both values? VLOOKUP() can search for one value, but not two. If you can add a helper column (in the leftmost column) that combines your desired search terms into a single search term, then you can combine them and search for the combined text string. If that is the case, then AU is currently blank, so maybe add a concatenate function to AU =CONCATENATE(AX8,AW8) in AU8 and copy/fill down. Then change your VLOOKUP function to include AU as the search column VLOOKUP(CONCATENATE($A4,B$3),INDIRECT("'"&B&2&"'!$AU$7:$BC$132"),5,FALSE)

    Does that help?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

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

    Try This in B4

    HTML Code: 
    Drag it across and down. This will pick up all hours for the combination you're looking for.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

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

    VLOOKUP will pick up just first found value. If you want to add all hours that match your search criteria then you may need SUMPODUCT of maybe a SUMIFS formula.

  5. #5
    Registered User
    Join Date
    07-19-2019
    Location
    Wigan
    MS-Off Ver
    365
    Posts
    3

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

    Thank you very much for your help, modytrane method has worked perfectly!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,777

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

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] You've entered too many arguments for this function!
    By needhelp13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-30-2015, 01:35 PM
  2. 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
  3. [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
  4. [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
  5. 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
  6. You've entered too many arguments for this function
    By leematthews in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2011, 03:11 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