+ Reply to Thread
Results 1 to 8 of 8

Is it possible to have Excel automatically use a row AND column title to name a cell?

  1. #1
    Registered User
    Join Date
    05-21-2014
    Location
    Nova Scotia, Canada
    MS-Off Ver
    2013
    Posts
    9

    Is it possible to have Excel automatically use a row AND column title to name a cell?

    Hello -

    I have a large spreadsheet with a list of 170 names in column A, and about eight titles in row 1. I would like to name each of the cells (I link to them from another spreadsheet, and this way I can add or remove rows without messing up my linked sheet) with 'Name 1_Title1' 'Name 1_Title 2' etc. I have tried using 'create from selection' in the name manager, choosing both left column and top row, but this doesn't seem to work (perhaps I'm missing a step?). I would love to hear any suggestions for this, as naming each cell manually is very time consuming. Thanks for the help!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    It depends on what version of Excel you're using.

    This works for me in Excel 2002:

    Data Range
    A
    B
    C
    D
    1
    Col1
    Col2
    Col3
    2
    Row1
    51
    26
    9
    3
    Row2
    96
    63
    96
    4
    Row3
    15
    84
    92
    5
    6
    63
    7


    Using the defined row and column labels as references.

    Formula entered in A6:

    =Row2 Col2

    However, I can't get it to work in any of the other versions of Excel that I have (2007, 2010, 2013).
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    Works for me as well using XL2010
    However, it added _ to the end of each name, Row1_ Row2_

    so formula is

    =Row2_ Col2_

    Returns 63

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    How about using the Excel Table feature? It's under Insert, to the left.
    http://www.techrepublic.com/blog/10-...-table-object/
    http://www.excel-easy.com/examples/s...eferences.html

    Or if you want to be old fashion I believe you can do some neat things by naming an entire column and then use the intersect function.
    http://trumpexcel.com/2013/08/inters...ator-in-excel/
    http://www.excelcodex.com/2012/05/ex...-intersection/

    Not much info I can give you unless you post a sample workbook.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    Quote Originally Posted by Jonmo1 View Post
    However, it added _ to the end of each name, Row1_ Row2_
    And just figured out why...

    Col1 and Row1 are already valid ranges, Row 1 Column COL and ROW
    Excel 2007+ has columns all the way out to XFD

    So the name cannot be Row1 or Col1, so it added the _ characters.
    Last edited by Jonmo1; 05-21-2014 at 03:20 PM.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    Yeah, I should have caught that.

    I got a #NULL! error when I tried it in Excel 2007 as:

    =Row2 Col2

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    Ok, it does work in all the versions of Excel that I have:

    Tested in Excel 2007, 2010 and 2013.

    Data Range
    A
    B
    C
    D
    1
    Region1
    Region2
    Region3
    2
    Sales1
    6
    58
    5
    3
    Sales2
    14
    77
    96
    4
    Sales3
    69
    84
    98
    5
    6
    96


    =Sales2 Region3

    It also works in the opposite direction:

    =Region3 Sales2

  8. #8
    Registered User
    Join Date
    05-21-2014
    Location
    Nova Scotia, Canada
    MS-Off Ver
    2013
    Posts
    9

    Re: Is it possible to have Excel automatically use a row AND column title to name a cell?

    Thanks for all the replies! Unfortunately none of the suggestions seem to work for what I want, and I'm wondering if I should be doing something else altogether. I am attaching two files that represent the ones I'm working with. Information is added and changed in the Tuition_list file, and that informs the second file (Tuition invoicing guide). Students are occasionally added to the first file, so I need to be able to add a row in my invoicing guide without throwing everything off (including my row shading). Naming each cell in the Tuition_list file works for this purpose, but it is very labour intensive, and has to be redone each year (when I create a new sheet). Is there a better way to link the cells? I was hoping the 'Create from Selection' in the Name Manager could name them all for me, but I haven't been able to get that work (the cells remain named with the column & row #). Any suggestions are greatly appreciated. Thanks!
    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. Can Excel automatically insert the column header as the axis title?
    By galaxytraveler42 in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 09-20-2013, 06:17 AM
  2. Replies: 1
    Last Post: 08-09-2012, 11:38 AM
  3. Automatically change the title in a column
    By clovelly in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-26-2012, 09:52 AM
  4. Put the date from a Cell automatically in a Chart Title?
    By nbaj2k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2006, 06:20 PM
  5. Replies: 1
    Last Post: 06-23-2005, 02:05 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