+ Reply to Thread
Results 1 to 6 of 6

Defining cell names starting with numbers?

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    11

    Defining cell names starting with numbers?

    Hi,
    I am doing some dependable drop-down lists, using the INDIRECT function. Is it in any way possible to define cell names, for the lists, starting with numbers (without an underscore)?
    For example “1.2 Put name here”
    The numbers are supposed to put the selections into the right place in a database later on. And I will have to define a LOT of different list options.
    Thanks
    //Jenny

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Defining cell names starting with numbers?

    These are the rules for defining names as taken from the Excel help file:

    Valid characters The first character of a name must be a letter, an underscore character (_), or a backslash (\). Remaining characters in the name can be letters, numbers, periods, and underscore characters.

    Note You cannot use the uppercase and lowercase characters "C", "c", "R", or "r" as a defined name, because they are all used as a shorthand for selecting a row or column for the currently selected cell when you enter them in a Name or Go To text box.
    Cell references disallowed Names cannot be the same as a cell reference, such as Z$100 or R1C1.

    Spaces are not valid Spaces are not allowed as part of a name. Use the underscore character (_) and period (.) as word separators; for example, Sales_Tax or First.Quarter.

    Name length A name can contain up to 255 characters.

    Case sensitivity Names can contain uppercase and lowercase letters. Excel does not distinguish between uppercase and lowercase characters in names. For example, if you created the name Sales and then create another name called SALES in the same workbook, Excel prompts you to choose a unique name.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    09-19-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Defining cell names starting with numbers?

    That was the answer I was expecting, but not the one I was hoping for. Now I will have to figure out another way to do dependant drop down lists as I really need to start with number series.
    Thank you for your swift reply.
    //Jenny

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Defining cell names starting with numbers?

    There is a work around to side-step the rules. If you can create a VLOOKUP table using your numbers as the lookup key, you can have legal names in the second column which can be used in the place of the illegal names that you want to use.

    Upload a representative sample of what you want to do, and I will try to help you accomplish your goal.

  5. #5
    Registered User
    Join Date
    09-19-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Defining cell names starting with numbers?

    Hi, thank you for trying to help me out.

    In the example I attach the text is in Swedish, but the approach will be the same I imagine.

    I will create a form, where the answers will be saved to a database. I have several different questions where the answer shall be picked from a list. Then there will be a new selection based on what have already been chosen. The attached example is just a very small portion of all the questions and selection needed for the end result.

    I have tried to solve the dependencies using the INDIRECT function and that is where my problems occur. I would prefer if the list could start with a series of digits and I would also like, if possible, to be able to have spaces between the words.
    I was thinking about using the SUBSTITUTE function for the spaces, but having all words start with a capital letter is considered bad form in Swedish.

    //Jenny
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Defining cell names starting with numbers?

    You have the right idea. To continue to the next levels follow the same procedure making lists based on the choices in the Drop Downs. I have created headings as an example based on your list entries and colour coded what goes with what. I think that it is self-explanatory.
    Attached Files Attached Files

+ 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] Defining Names on a Column
    By rentb23 in forum Excel General
    Replies: 3
    Last Post: 11-06-2012, 11:42 PM
  2. generic VBA to work on different file names with different cell starting points
    By bmorro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 03:27 PM
  3. Defining names
    By paid2mkgrlspanic in forum Excel General
    Replies: 12
    Last Post: 06-17-2009, 10:11 AM
  4. Defining Static Names
    By jerryliang2k in forum Excel General
    Replies: 6
    Last Post: 12-22-2008, 06:34 PM
  5. Defining names
    By packerfan7604 in forum Excel General
    Replies: 1
    Last Post: 03-26-2007, 04:21 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