+ Reply to Thread
Results 1 to 6 of 6

Curious range naming problem

  1. #1
    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
    52,945

    Curious range naming problem

    I have 9 ranges that I want to give range names to, they represent specific areas, and everyone knows them by these 2-character abreviations - and they are also table headings, so changing them is not an option.

    here they are...
    N1
    N2
    S1
    S2
    GW
    GE
    W2
    E2
    C2

    Now, for all but the last 1 (C2), I can give them names with the 2 characters and a trailing underscore (N1_, E2_, W2_, S2_ etc)...great. The last 1 (C2) if I try to name it C2_, I get an error saying the name is invalid. All the others work - adding an underscore at teh end so it does not look like a cell ref - why wont that 1?

    edit: It wont even let me add any text after C2 at all
    Last edited by FDibbins; 10-10-2015 at 10:30 PM.
    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

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Curious range naming problem

    Hey Ford,

    Are you looking at all these named ranges in the Names Manager? Are they all worksheet or workbook ranges? Is "C2_" being the 9th range important? Can you delete a previous name and then add it? How does the cell C2 differ from the range name C2? How about giving us a sample workbook with the problem in it?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  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
    52,945

    Re: Curious range naming problem

    There were no names, until I made them. I have dummied up the file and removed stuff not relevant - problem is on sheet2.

    But try for yourself on a brand new sheet - dummy up a table and try and call it E2_ then try and call it C2_

    It seemsx that there is something "special" about the tern C2
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Curious range naming problem

    Hey,

    Doing some research (search engine on the net) it looks like you need to use a "valid range name" and the conflict is with the R1C2 type of address convention. See if R2 give the same error message. See:
    http://www.excelforum.com/excel-gene...n-the-nam.html that leads to
    http://www.cpearson.com/excel/DefinedNames.aspx

  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
    52,945

    Re: Curious range naming problem

    OK, I figured it was some restricted letter/number sequence - and no, it wont accept R2:R10 or even R100, either

    Thanks for checking this for me. the S1, C2 etc are codes that get applied to rows in a list, I intend to use them with INDIRECT to reference the different ranges

    hmm although, I may still be able to just use INDEX/MATCH for this - wasnt thinking straight

  6. #6
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Curious range naming problem

    Hi Ford,
    I don't know if this will help but it works if you use C_2 insted of C2_
    Regards
    peterrc

+ 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] Excel VBA - Naming Range - Has Duplicates. Consider only Unique Values and Name that Range
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-08-2014, 11:06 AM
  2. [SOLVED] Problem re-naming a File
    By Rajesg Dutta in forum Excel General
    Replies: 1
    Last Post: 05-03-2013, 09:11 AM
  3. [SOLVED] VBA dimension/naming problem
    By Mojave in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-07-2012, 07:20 PM
  4. csv naming problem
    By blackfolder in forum Excel General
    Replies: 1
    Last Post: 04-03-2011, 05:26 PM
  5. Naming Series Problem
    By fugima in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-02-2011, 06:13 AM
  6. Naming VBA Userform problem
    By PaulC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-22-2006, 05:52 AM
  7. A curious OVERFLOW problem
    By Myles in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-09-2005, 08:32 PM
  8. Problem naming a range.
    By Oufti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2005, 10:06 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