+ Reply to Thread
Results 1 to 6 of 6

Defining a Name over 255 characters?

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Defining a Name over 255 characters?

    Hi there,

    I'm trying to make a chart viewer on the first sheet of my spreadsheet and am using this website as a guideline, http://chandoo.org/wp/2008/11/05/sel...art-from-many/
    However instead of the 3 charts in the example, I have 12 which makes my formula for defining a name substantially longer.

    By moving my charts to the same sheet and getting rid of the INDIRECT formulas, I shortened my formula to 291 characters which is too long as the limit is 255.

    =IF($G$9="Sodium",$N$34,IF($G$9="Manganese",$N$35,IF($G$9="Iron",$N$36,IF($G$9="Nitrate Nitrite",$N$37,IF($G$9="Nitrite",$N$38,IF($G$9="Nitrate",$N$39,IF($G$9="PH",$N$40,IF($G$9="Conductivity",$N$41,IF($G$9="Turbidity",$N$42,IF($G$9="Fluoride",$N$43,IF($G$9="Selenium",$N$44,$N$45)))))))))))

    Is there any way to make my formula shorter? Or to reference a cell where I place the formula?

    Thanks,
    Faraz

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Defining a Name over 255 characters?

    See http://www.contextures.com/xlFunctions02.html
    Entia non sunt multiplicanda sine necessitate

  3. #3
    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: Defining a Name over 255 characters?

    With something like this, maybe take a look at using a small table with the minerals and their values - and then use a simple vlookup() to bring back the answer

    And I dont think its the 255 chat limit, I think you have max'd out the nested IF()'s
    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

  4. #4
    Registered User
    Join Date
    02-12-2014
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Defining a Name over 255 characters?

    Firstly, thanks for the responses, I really appreciate the help,

    I tried to enter the piece by piece by piece until it wouldn't allow me into the 'refers to' line in Define Name,
    And then copy pasted into word to find that I entered exactly 255 characters before it wouldn't allow me to enter anything else,

    But how would vlookup help me? Could I lookup the cells with the charts in them?

  5. #5
    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: Defining a Name over 255 characters?

    Sorry, you didnt say (or I didnt see) that you were working with a named range. Maybe it would help if ypou uploaded a sample workbook, and showed what you are trying to do?

  6. #6
    Registered User
    Join Date
    02-12-2014
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Defining a Name over 255 characters?

    I've been using this template that I found on the link I posted in my original post select-chart-to-display (1).xls

+ 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] Delete characters and add * in front and last characters in ACCESS QUERY
    By LALTIZER in forum Access Tables & Databases
    Replies: 9
    Last Post: 02-01-2013, 02:06 PM
  2. Replies: 11
    Last Post: 01-23-2013, 02:04 PM
  3. [SOLVED] Extract left characters from string with exception of 2 right characters
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2012, 10:45 PM
  4. Replies: 2
    Last Post: 11-01-2011, 05:14 PM
  5. In Excel find characters when multiple characters exist w/i a cel
    By teacher-deburg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2005, 06:25 PM

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