+ Reply to Thread
Results 1 to 3 of 3

Sorting messes up cell references

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Sorting messes up cell references

    (see attachment).
    When I sort the table in Sheet1 by the "Latest Equity" column, the "lookup value" in my two MATCH statements gets screwed up and points to the wrong cells. I tried putting in absolute cell references using '$' but that didn't fix it.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Sorting messes up cell references

    The formula:
    Please Login or Register  to view this content.
    in column B will get the date of the latest eq value.
    Likewise,
    Please Login or Register  to view this content.
    in column C (equity) will get the equity corresponding to the date in column B
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    12-23-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Sorting messes up cell references

    Thanks protonLeah, although your different coding fixed it, I couldn't figure out why. Then I saw that your MATCH functions did not contain the sheet reference for the lookup value (which was on the same sheet so a sheet reference was not necessary) and mine did (automatically populated by Excel). When I stripped out the sheet reference to Sheet1 my functions worked fine as well but I cannot figure out why it matters. Can anybody clarify?

+ 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.6.0 RC 1