+ Reply to Thread
Results 1 to 3 of 3

Create an IF formula with more than 255 arguments?

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    21

    Question Create an IF formula with more than 255 arguments?

    I have a formula which is in the format:

    Please Login or Register  to view this content.
    However, I've got a lot more values to add (there will be 297 values in total to be exact), and I can only go up to 255 arguments, so how could I add the rest of them?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Create an IF formula with more than 255 arguments?

    That's horrible.

    Put your list of values to compare against in a separate range, and check if value exists in that range - something like:

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

    In this case, the list of acceptable values is in cells A1:A297. Adapt to suit.

    Edit: further simplified to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Olly; 07-17-2014 at 07:00 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Create an IF formula with more than 255 arguments?

    Excel 2007 can not handle that # of ifs. Most people would set up a reference table and use a vlookup for something like that.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Replies: 1
    Last Post: 06-19-2014, 06:35 PM
  2. Replies: 3
    Last Post: 08-29-2011, 12:42 AM
  3. Too many arguments - better formula available?
    By cjrhoads in forum Excel General
    Replies: 12
    Last Post: 05-12-2010, 11:53 PM
  4. Formula for 3 IF arguments
    By stuckagain in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 06-03-2009, 11:13 AM
  5. Create Comment for arguments of Userdefined Funtions?
    By OverAC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-26-2006, 11:58 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