+ Reply to Thread
Results 1 to 3 of 3

Structured Table References Problem

  1. #1
    Registered User
    Join Date
    02-28-2017
    Location
    Pennsylvania, USA
    MS-Off Ver
    2010
    Posts
    7

    Structured Table References Problem

    Hello,

    I am using structured table references to yield a desired value, as can be seen in Capture1 below:

    Capture1.PNG

    What I would like to do is copy an array of simple values such as the values seen below...

    Capture2.PNG

    ...and paste them into the existing table (Table1). However, when I do this, the formula is automatically updated ("City" is changed to "Country").

    Capture3.PNG

    Is there a way to "fix" the header referenced in the formula such that the "City" value is still returned, despite the City header being moved from Column A to Column C?

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,894

    Re: Structured Table References Problem

    Use INDIRECT. Something like...
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Structured Table References Problem

    I presume in your copy/paste you are selecting all the data and headers from your 2nd screenshot and pasting over the whole table in screenshot 1/3 including headers. In that case no, you are changing the headers. It would be like if your name is "Jim" and I took your seat and paced another "Jim" in it...same name, not the same as it was before.

    There are a few ways to handle this.
    • Copy 1 column of values from screen 2 to the proper column in the table under its header (not pasting over the header).
    • Reorder the columns you are copying from (screen 2) so they are in the same order as the table, then past either data only or data and headers
    • Reorder the table in screen 1/3 to match column order in screen 2, then paste either data or data and headers.
    • (situational) fill your table with formulas to pull in data from the range in screen 2 so data is in the correct column
    • (situational) write a macro that basically does one of the first 3 points for you

    EDIT: the indirect proposed may work as long as the copied/pasted headers are only changing order in the table and not changing entirely (IE: if "Country" moves from column 1 to 3, fine, but if "Country" is replaced by "Origin" then INDIRECT wont solve the issue)

    EDIT2: you may be able to get away with turning manual calc on, doing the copy/paste, then turning calc back on.
    Last edited by Zer0Cool; 01-24-2018 at 01:13 PM.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Structured references
    By tim201110 in forum Excel General
    Replies: 1
    Last Post: 02-19-2017, 07:48 PM
  2. Using Structured Table References and Indirect Function
    By tjeasy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2016, 07:07 PM
  3. Structured references for Pivot Table?
    By Cam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2015, 01:33 AM
  4. VBA / Structured Table References
    By carlyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2014, 06:11 AM
  5. Help with structured references
    By hellur_kitty in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-07-2013, 10:50 PM
  6. Structured Table References: What is [#Data]?
    By badaboom55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2010, 06:31 PM
  7. Excel 2007 - Table - Structured References
    By treebeard in forum Excel General
    Replies: 0
    Last Post: 03-03-2010, 03:30 PM

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