+ Reply to Thread
Results 1 to 2 of 2

Thread: Preserving Formula References During Sort

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Preserving Formula References During Sort

    I am building a template in an excel worksheet for logging records. The template includes several macros with the Range.Sort method. The log includes values that reference each other - for instance Row3.Value = Row1.Value + Row2.Value. However if Row2.Value gets sorted to Row 5, the formula will still reference Row 2, even though the referenced value has moved to Row 5. Is there anyway to preserve dynamic referencing when sorting, where the reference is associated with the data and not the cell? I've also tried naming the cell, but that didn't work. I guess I'm expecting Excel to act like a database.

    Thanks for the help.

  2. #2
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,403

    Re: Preserving Formula References During Sort

    Hi pisteuo,

    Reference will always work on row / column / range.. if you want to reference any value, then suggest you to use Match kind of function.
    thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0