Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Naming Cells Using Relative Cell References

Can a cell be named so that when the sheet is sorted, the name refers to the
same data even though the position of the cell has changed?. I tried naming
cells with relative references (removing the "$" sign), but after sorting the
cell reference reverts to "A1".
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Naming Cells Using Relative Cell References

Use the INDIRECT function. E.g.,

=INDIRECT("A1")

This will reference A1 no matter how you
cut/copy/paste/sort/insert/delete etc. Excel doesn't recognize the A1
within the quotes as a range reference, but rather sees it as a simple
string, so it won't change it when things get moved about.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Sun, 19 Apr 2009 04:56:01 -0700, Inobugs
wrote:

Can a cell be named so that when the sheet is sorted, the name refers to the
same data even though the position of the cell has changed?. I tried naming
cells with relative references (removing the "$" sign), but after sorting the
cell reference reverts to "A1".

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change relative to absolute references in a block of cells Giles Excel Discussion (Misc queries) 3 January 27th 09 02:19 PM
convert relative cell references to absolute cell references via amacro? Dave F[_2_] Excel Discussion (Misc queries) 1 May 15th 08 04:43 PM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
Relative, absolute & mixed references in many cells FTM Excel Worksheet Functions 11 June 19th 06 09:38 AM
Relative Cell References within VBA code Jandy Excel Discussion (Misc queries) 2 April 21st 05 02:17 AM


All times are GMT +1. The time now is 05:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"