+ Reply to Thread
Results 1 to 4 of 4

Updating data table breaks formulas that refer to it

Hybrid View

holmes123 Updating data table breaks... 11-20-2012, 02:16 PM
lmp Re: Updating data table... 11-21-2012, 04:46 AM
holmes123 Re: Updating data table... 11-21-2012, 11:31 AM
James@tangerine Re: Updating data table... 12-09-2014, 01:22 PM
  1. #1
    Registered User
    Join Date
    12-02-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    32

    Updating data table breaks formulas that refer to it

    (Using Excel 2007)

    In my Excel workbook, I have a number of formulas that reference a data table called "tblData." The data table is in the same workbook on a worksheet named, "RawData."

    Every month or so I need to replace the contents of tblData with an updated version of the data. The updated version gets outputted to a separate Excel workbook. What's the best way to update tblData with the latest version of the data? If I try to paste the updated worksheet into my workbook with the formulas and convert it to a data table, I can't name it "tblData" because that table name is already in use (i.e., the outdated data on the RawData worksheet). If I delete the outdated data or the RawData worksheet, I delete the table name, and the formulas loose the reference (lots of #ref). The formulas remain broken even when I convert the updated data to a data table and name it tblData.

    Any suggestions? I assume I'm missing something simple.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    11-07-2012
    Location
    .
    MS-Off Ver
    2003 - 2013 for Windows
    Posts
    121

    Re: Updating data table breaks formulas that refer to it

    Hello,

    change the definition of the name to use a formula that does not get upset if data is overwritten/added/deleted.

    For example, the name MyData with this formula ...

    =INDEX(Sheet1!$A:$A,1):INDEX(Sheet1!$Z:$Z,COUNTA(Sheet1!$A:$A))

    ... will always refer to all the data in Sheet1, columns A to Z, starting in cell A1, down to the last row of data in column A. You can delete and copy and paste data into Sheet1 to your heart's content. The range name will always capture it.
    regards, LMP

  3. #3
    Registered User
    Join Date
    12-02-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Updating data table breaks formulas that refer to it

    Quote Originally Posted by lmp View Post
    Hello,

    change the definition of the name to use a formula that does not get upset if data is overwritten/added/deleted.

    For example, the name MyData with this formula ...

    =INDEX(Sheet1!$A:$A,1):INDEX(Sheet1!$Z:$Z,COUNTA(Sheet1!$A:$A))

    ... will always refer to all the data in Sheet1, columns A to Z, starting in cell A1, down to the last row of data in column A. You can delete and copy and paste data into Sheet1 to your heart's content. The range name will always capture it.
    This is a very large dashboard and there are many formulas that refer to the table name. Many use structured references (e.g., =DeptSales[[SalesPers]:[Region]], =DeptSales[[#Headers],[ComPct]]), which is one of the nice advantages of using a data table. Changing the formulas to not use the table name (and therefore structured references) seems a step backwards.

    Also, with the data table, I can currently delete, copy, and paste the updated data into the sheet and things will work. But I was hoping for an approach that's more streamlined and easier to automate, like simply swapping out the entire sheet with the updated one. Perhaps that's not possible.

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Updating data table breaks formulas that refer to it

    Hi,

    Did this ever get resolved? I'm having the same issue with re-setting the tables I have linked to SharePoint...I need to recreate the SP links and so delete/clear the existing table before I do this.

+ 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