+ Reply to Thread
Results 1 to 4 of 4

IF function Help Needed - Keep getting too many argurments error

  1. #1
    Registered User
    Join Date
    11-12-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Smile IF function Help Needed - Keep getting too many argurments error

    Hello, trying to get a nested IF statement working. I know the max is 7 nested IF arguments, but mine does not go over the limit. Trying to figure out how to work around error message.

    This is the formula I want to use:

    =IF(DZ7="Mkt",CN7,IF(DZ7="Hold",CI7,IF(LEFT(DZ7,3)="Cap",(1+RIGHT(DZ7,3))*CN7,"--",IF(LEFT(DZ7,3)="Drp",(1-RIGHT(DZ7,3))*CN7,"--"))))

    I keep getting a message that there are too many arguments, can anyone assist?

    Thanks for the help

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: IF function Help Needed - Keep getting too many argurments error

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



    The nesting limit doesn't really come into it after Excel 2003.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-12-2012
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: IF function Help Needed - Keep getting too many argurments error

    Thanks for the response TMS. That formula does work, but it does not do what I need it to. When ="Cap" I want excel to calculate (1+Right(DZ7,3))*CN7 and when it ="Drp" I want excel to calculate (1-Right(DZ7,3))*CN7.

    Would you know how to make that work?

    Thanks again!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: IF function Help Needed - Keep getting too many argurments error

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


    Regards, TMS

+ 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] Error (again), IF needed
    By JonathanB2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2014, 03:09 PM
  2. Help needed with #REF! error (arrays)
    By robotlust in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2008, 08:53 PM
  3. Automation Error help needed
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2006, 09:46 AM
  4. [SOLVED] Error routine needed
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2005, 12:06 AM
  5. [SOLVED] Compiling error! VBA Help needed
    By Mary in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2005, 03:06 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