+ Reply to Thread
Results 1 to 3 of 3

Replace contents of named data table without breaking references

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

    Replace contents of named data table without breaking references

    Using Excel 2007.

    I have a worksheet called "RawData" that contains about 10 columns and 45K rows of data. It's formatted as a data table (Insert > Table) and I named it tblMyData. A lot of formulas in the workbook refer to this data using structured references (e.g., ... INDEX(tblMyData[Region] ...).

    I will need to regularly replace the contents of tblMyData. The columns will always be the same but the rows will vary.

    What is the best way to do this?

    Should I select all the data in tblMyData > hit delete > and then copy and paste the new data?

    Should I put the new data in a separate workbook, and link the cells in tblMyData to that workbook?

    I'd like to automate the process as much as possible.

    Thank you for suggestions.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Replace contents of named data table without breaking references

    Could you?
    Click table->Design->Convert Table to Range.
    Home->Format as table (Styles)
    Formulas->Define name. Table1
    Change fixed range to dynamic. Search for Dynamic Named ranges. There's hundreds of examples.
    Last edited by Tinbendr; 07-26-2012 at 05:45 PM.
    David
    (*) Reputation points appreciated.

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

    Re: Replace contents of named data table without breaking references

    Quote Originally Posted by Tinbendr View Post
    Could you?
    Click table->Design->Convert Table to Range.
    Home->Format as table (Styles)
    Formulas->Define name. Table1
    Change fixed range to dynamic. Search for Dynamic Named ranges. There's hundreds of examples.
    A data table already supports a dynamic range, so I don't see what converting it to a dynamic range would do for me (other than make me change all my formulas from using structured references).

    Also, if did this, I'd still have the same question: What's the best way to replace the data with new data, from the standpoint of automation? Delete, copy, & paste? Linked workbook?

+ 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