+ Reply to Thread
Results 1 to 6 of 6

relative cell naming

  1. #1
    Registered User
    Join Date
    05-18-2009
    Location
    Pacific Grove, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    relative cell naming

    I use <Ctrl>g to navigate to named cells in my workbook. It works fine except when I have named a cell and then sort in some new rows above the row where I have the named cell. When I name a cell, it seems that absolute is the only choice. I need it to refer to a relative cell, e.g. Sheet1!B12 instead of $B$12. Actually, $B12 would be fine. I want the cell in the same column but stays with the row when I sort the rows. Does this make sense?

    When I remove the absolute $, the <goto> does not work.

    How can I name a cell that stays with the row when I sort rows?

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

    Re: relative cell naming

    Welcome to the forum, rudy.

    Select some cell (say, A1). and do Insert > Name > Define, colB, refers to =$B1

    Now colB always refers to column B in the same row in which the reference appears.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-18-2009
    Location
    Pacific Grove, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Red face Re: relative cell naming

    First, thanks for such a prompt response.

    I tried that before ($B12) and just did again. When I use the GoTo navigation, it takes me to the column but not to the row. e.g. B1 not B12 which is the one I named. Also the name does not appear in the address box or whatever it's called up there next to the function window.

    With Excel2007 I am using the old transitional navigation option in this spreadsheet (from 1-2-3 [I started this workbook in the mid-80s.]) Would that make a difference? It works just fine for any that are absolute.

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

    Re: relative cell naming

    If you're on row 3, it will take you to B3; if you're on row 27, it will take you to B27, ...

  5. #5
    Registered User
    Join Date
    05-18-2009
    Location
    Pacific Grove, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Unhappy Re: relative cell naming

    But that doesn't solve navigating to the cell from another worksheet in the workbook. For instance I am on sheet1 and I want to go to a cell on another worksheet: <name> sheet2!B12 (with neither column or row absolute.) I can't make it work either with the Name Box or <Ctrl>g.

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

    Re: relative cell naming

    Perhaps you can post a workbook and explain exactly what you want to do in context.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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