Results 1 to 3 of 3

Thread: How to avoid cell reference changes after sorting in Excel

  1. #1
    Join Date
    Nov 2011
    Posts
    123

    How to avoid cell reference changes after sorting in Excel

    I am having similar difficulty. Relative cell reference act like an absolute reference. When the precedent worksheet is sorted the descendant worksheet reflects the cell reference prior to the sort. My experience has been that by using relative reference formats =A1 the cell reference would change with a sort in the precedent worksheet, always giving the same result in the descendant worksheet. Using absolute reference would force the data to always reflect what was in the cell referenced. If 10 was in cell A1 and a sort moved it to A99, the number 10 would still be reported in the linked cell. Using absolute reference =$A$1, the sort would report whatever data was moved
    into the =$A$1 cell. Never had this happen before and have yet to resolve. i'm wondering if there is a global setting that lock the spreedsheet or if various format setting cause this problem.

  2. #2
    Join Date
    Nov 2010
    Posts
    422

    Re: How to avoid cell reference changes after sorting in Excel

    In this case it does not matter whether you use a relative or absolute reference. Sorting will not change the reference in either case. The point is that if a formula refers to the row in which it stands. When I search now, and the line as now no longer in line 5 is 10, but would have the formula now refer to line 5. And that's just not for me. Sort by is still the old-line reference in the formula, thus providing incorrect results.

  3. #3
    Join Date
    Nov 2010
    Posts
    503

    Re: How to avoid cell reference changes after sorting in Excel

    What would be possible is that each line is given a unique identifier - in Access is the key. With this key can then be "resorted" to the Excel sorting in all members of the other columns. But this approach requires a not inconsiderable (VBA) effort, and I do not know if this is justified.

Similar Threads

  1. Replies: 2
    Last Post: 23-02-2012, 07:23 PM
  2. How to avoid printing of highlighted cell in Microsoft Excel
    By Culpritism in forum MS Office Support
    Replies: 2
    Last Post: 17-02-2012, 07:57 PM
  3. insert picture in excel 2007 based on cell reference
    By joe.polkendare in forum Windows Software
    Replies: 5
    Last Post: 25-07-2011, 11:40 PM
  4. Change a cell reference using VBA
    By Emmett in forum Software Development
    Replies: 5
    Last Post: 16-02-2010, 10:33 PM
  5. Cell Reference in Excel
    By kamina23 in forum Windows Software
    Replies: 4
    Last Post: 07-10-2009, 11:53 PM

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
  •  
Page generated in 1,713,254,741.04311 seconds with 17 queries