+ Reply to Thread
Results 1 to 6 of 6

Too many arguments for this function

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Too many arguments for this function

    I am trying to get one of 3 Results to appear in a cell based on information from another worksheet:
    I keep getting an error message that states "You have enterred too many arguments for this function"
    I have written formuls before with 3 statements I am not sure what I am doing wrong.

    =IF(And(worksheet!C18 = "X", worksheet! K13>worksheet!L13),"Result A","Result B",
    IF(And(worksheet!C19 = "X", worksheet!M13>worksheet!L13),"Result A,"Result B",
    IF (And(worksheet!C20 = "X",worksheet!N13>Lworksheet!13),"Result A", Result C" ))))

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Too many arguments for this function

    You tried to list 3 outcomes in the if statement.

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Too many arguments for this function

    I am not clear what you mean? I have written formulas like this before and it works. Should I write it as a Case statement?

  4. #4
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Too many arguments for this function

    If statements allow only 2 outcomes, You wrote in 3.

  5. #5
    Registered User
    Join Date
    02-20-2014
    Location
    Lapeer, MI
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Too many arguments for this function

    Maybe you meant something like this?

    =IF(And(worksheet!C18 = "X", worksheet! K13>worksheet!L13),"Result A", IF(And(worksheet!C19 = "X", worksheet!M13>worksheet!L13),"Result A", IF(And(worksheet!C20 = "X",worksheet!N13>Lworksheet!13), "Result A", "Result C" )))

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Too many arguments for this function

    or even
    =IF(And(worksheet!C18 = "X", worksheet! K13>worksheet!L13),"Result A",
    IF(And(worksheet!C19 = "X", worksheet!M13>worksheet!L13),"Result B",
    IF (And(worksheet!C20 = "X",worksheet!N13>Lworksheet!13), "Result C" ,"")))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    04-24-2013
    Location
    Charlotte NC
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Too many arguments for this function

    martindwilson and JamesatOWL thank you both sooo much, removing one of the results worked
    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] IF function with more than 2 arguments.
    By SeanMck in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2013, 08:37 AM
  2. IF Function - Too Many Arguments
    By svconners in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-05-2013, 05:06 PM
  3. Too few arguments for this function
    By clovelly in forum Excel General
    Replies: 6
    Last Post: 10-22-2012, 07:40 PM
  4. 10 Arguments in a function
    By noisewatter in forum Excel General
    Replies: 2
    Last Post: 04-30-2009, 01:24 PM
  5. Replies: 0
    Last Post: 06-20-2006, 10:55 AM

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