+ Reply to Thread
Results 1 to 6 of 6

Too many arguments in nested if function

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Fort Lauderdale
    MS-Off Ver
    2010
    Posts
    10

    Too many arguments in nested if function

    I am not sure if I am setting this correctly or if you just cannot have this many arguments in this function. How would I write a function for multiple arguments? Thank you for your help

    =IF((E5/E6)<=1,-0.5,IF((E5/E6)<4,-0.3),IF((E5/E6)>=4,-0.2))

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Too many arguments in nested if function

    Try it like this...

    =IF(E5/E6<=1,-0.5,IF(E5/E6<4,-0.3,-0.2))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-15-2014
    Location
    Fort Lauderdale
    MS-Off Ver
    2010
    Posts
    10

    Re: Too many arguments in nested if function

    Perfect! Thank you for your help.

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Too many arguments in nested if function

    Try the lookup...
    best for shortening if.. functions like this..

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Don't forget to click *

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Too many arguments in nested if function

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Too many arguments in nested if function

    Vikas, that wont work for all values...

    PHP Code: 
    1....3....8....E5
    2.
    ...2....2....E6
    0.5
    ..1.5..4..E5/E6
    #N/A..-0.5..-0.3..Your answer
    -0.5..-0.3..-0.2.Should be 
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Need a Nested IF with 12 Arguments
    By daz_uk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-29-2010, 08:54 AM
  3. Replies: 3
    Last Post: 09-07-2009, 04:48 PM
  4. Going beyond 7 Nested If Arguments
    By Supdem in forum Excel General
    Replies: 2
    Last Post: 08-05-2009, 03:06 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