+ Reply to Thread
Results 1 to 2 of 2

Thread: Relative references do not update when sorting

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    1

    Red face Relative references do not update when sorting

    Hi All

    I have a very strange problem which I have never come acccross before. I have built a sheet whereby, via a series of SUMIF statements, I pull in data from other sheets. The SUMIF statements take their criterion from the product number which is in column "A". This is the key for the data in other sheets which is being pulled in. When I sort the sheet however, the row referenced by the SUM IF does not update, even though I am using relative referencing. For example, if a particular item was in row 90 and following the sort it is in row 5, the SUM IFs in that line will still refer to cell "$A90" for the criterion, even though the product number has moved to row 5 in the sort. Hence, the data is all over the place, and that in turn invalidates the sort. Any assistance would be very much appreciated.

    Regards
    Steve

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Relative references do not update when sorting

    If you sort a column of data with relative references, the sorted cells simply change relatively, usually back to what they were. This is correct behavior.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

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