A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Naming Cells Using Relative Cell References



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2009, 12:56 PM posted to microsoft.public.excel.worksheet.functions
Inobugs
external usenet poster
 
Posts: 18
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  
Old April 19th, 2009, 03:50 PM posted to microsoft.public.excel.worksheet.functions
Chip Pearson
external usenet poster
 
Posts: 1,343
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".

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:06 PM.


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