+ Reply to Thread
Results 1 to 2 of 2

Link Column of Data to Shifting Headers

Hybrid View

Big.Moe Link Column of Data to... 02-25-2020, 07:16 AM
AliGW Re: Link Column of Data to... 02-25-2020, 09:08 AM
  1. #1
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    258

    Link Column of Data to Shifting Headers

    Hello,
    To allow for future additional tabs, I have headers on a "REF SHEET" that correspond to the fish tab names in the workbook. This works great except for one thing I didn't foresee. If the user changes the order of the tabs, it shifts the header names on the "REF SHEET", which then makes the data in the columns no longer linked to the original header name. There will be many more tabs, so I cannot have this.

    Shifting Headers.jpg

    BTW, the columns that do all the fetching and sorting of the tab names is on the "REF SHEET" columns AI - AK.

    Any ideas on how to permanently 'link' the data in these columns to the original headers, so that the data shifts with the header changes? Or conversely, have the headers not shift when the tab order is changed. One thing for certain, I will have no control of the future order of the tabs (or their names). The person in my office who will be using this sheet is not disciplined, so I have to 'dummy proof' the process.

    Maybe I'm over-thinking this, but I just can't come up with a solution.

    Thanks ahead of time.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    Re: Link Column of Data to Shifting Headers

    I suspect the way round this is to create a UDF that calls the underlying codenames (as in the VBA editor) of the worksheets and use those numbers to generate the column headers, keeping them always in the order small to large.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Filter Data Set using Row Headers in lieu of Column Headers
    By bsnell in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-30-2019, 11:43 AM
  2. shifting data into another column when condition met in a loop
    By barrowinfurnace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2016, 11:22 AM
  3. [SOLVED] shifting data to new column
    By kochark in forum Excel General
    Replies: 7
    Last Post: 11-27-2014, 03:36 PM
  4. [SOLVED] listbox with column headers as a specific sheet column headers
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2014, 04:40 AM
  5. Working Validation No Longer Works After Shifting to another Column for the Source of Data
    By young_padawan_in_exl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-16-2013, 08:16 AM
  6. Replies: 0
    Last Post: 08-14-2012, 09:42 AM
  7. Shifting rows of data so that they all line up in the same column
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2012, 04:56 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