+ Reply to Thread
Results 1 to 6 of 6

Formula error on nested if statement

  1. #1
    Registered User
    Join Date
    12-13-2016
    Location
    Altoona, PA
    MS-Off Ver
    2016
    Posts
    9

    Formula error on nested if statement

    I have created the formula below and I am getting a "too many arguments error." I have created this type of formula before and it has worked, it is a fairly simple nested IF statement. It is basically saying if the number in cell I15 is between the values in cells S11 and U11 then return W11 and if not go to the next row down. I have gone down though this and I cannot seem to find any comma or parenthesis errors. Any insight on what would cause this would help!
    Thanks!


    =if(I15<S11,"N/A",if(and(I15>S11,I15<U11),W11,if(and(I15>S12,I15<U12),W12,if(and(I15>S13,I15<U13),W13,if(and(I15>S14,I15<U14),W14),if(and(I15>S15,I15<U15),W15,if(and(I15>S16,I15<U16),W16,if(and(I15>S17,I15<U17),W17,if(and(I15>S18,I15<U18),W18,if(and(I15>S19,I15<U19),W19,if(and(I15>S20,I15<U20),W20,if(and(I15>S21,I15<U21),W21,if(and(I15>S22,I15<U22),W22,if(and(I15>S23,I15<U23),W23,if(and(I15>S24,I15<U24),W24,if(and(I15>S25,I15<U25),W25,if(and(I15>S26,I15<U26),W26,if(and(I15>S27,I15<U27),W27,if(and(I15>S28,I15<U28),W28,if(I15>S29,W29,"??")))))))))))))))))))
    Last edited by tstackhouse10; 07-20-2017 at 11:42 AM.

  2. #2
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Formula error on nested if statement

    Okay....so, I noticed that you have a random closing parenthesis at the end of W14, move that to the end and it works, or at least the error message goes away.

  3. #3
    Registered User
    Join Date
    12-13-2016
    Location
    Altoona, PA
    MS-Off Ver
    2016
    Posts
    9

    Re: Formula error on nested if statement

    That was it, I do not know how I missed that!
    Thank you Xandler!

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Formula error on nested if statement

    =lookup(i15,s10:s29/(i15<u10:u29),w10:w29)
    Attached Files Attached Files
    Last edited by tim201110; 07-20-2017 at 09:09 AM.

  5. #5
    Registered User
    Join Date
    12-13-2016
    Location
    Altoona, PA
    MS-Off Ver
    2016
    Posts
    9

    Re: Formula error on nested if statement

    That formula works as well. Thanks Tim, I will have too keep that for further use!

  6. #6
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Formula error on nested if statement

    You're welcome, if that takes care of your original problem please mark the thread solved through the thread tools. Don't forget to click the add reputation button for anyone that has helped 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. I keep getting an error with my nested IF AND statement
    By higgi24 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2017, 11:54 AM
  2. [SOLVED] Multiple Nested IF Statement error
    By Seth_ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-03-2016, 12:54 PM
  3. Nested IF statement error. Nested True statement is not triggering
    By Lucas7040 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2016, 11:41 AM
  4. [SOLVED] Nested AND statement Error
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-25-2013, 08:41 PM
  5. [SOLVED] IS ERROR with nested if statement
    By renden in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2012, 05:46 AM
  6. Error on Nested If Statement
    By ValentineNicole in forum Excel General
    Replies: 5
    Last Post: 02-18-2011, 03:29 PM
  7. Replies: 3
    Last Post: 08-10-2006, 11:30 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