+ Reply to Thread
Results 1 to 2 of 2

INDEX function on data connection results giving phantom data for deleted rows

  1. #1
    Registered User
    Join Date
    02-17-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    INDEX function on data connection results giving phantom data for deleted rows

    Hi,

    I'm having a issue with an INDEX function used against the output of a data connection in Excel 2007 (an ODBC query on the workbook itself).

    The data connection is used to perform an inner join on three data input sheets and output key fields and the row numbers of the input data. As far as I can tell the query is working fine and is producing the expected results.

    On the same sheet as the output from the query, I am using a series of INDEX functions to retrieve data from the input sheets using the row number returned by the query. Again this all works as expected.

    / The issue /

    When the data connection is refreshed and rows are removed from the result set , for those rows that have been removed, the INDEX functions continue to operate as if the data in the deleted rows is still present. So in the image below, the formula in INDEX formula in BA38, is using the row number in G38.

    Issue.JPG

    It has the appearance that the INDEX function is referencing a cached or older version of the result set.

    I've tried all of the usual methods to resolve, making sure calculations are on automatic, manually refreshing, reapplying the formulas, evaluating formulas, but without success.

    Any direction or suggestions to resolve would be much appreciated.

    Many thanks,
    Mark

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: INDEX function on data connection results giving phantom data for deleted rows

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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