+ Reply to Thread
Results 1 to 9 of 9

2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

  1. #1
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    Hi all,

    I have a rather large Excel file with multiple sheets (tables) that I'm reluctant to share due to privacy issues, but I hope my explanations will be sufficient. Alternatively, I could make a dummy sheet.

    The Main Sheet consists of data in a table that is loaded (and refreshed daily or more frequent) from an SQL database using VBA. As far as I know, this sheet doesn't contain any actual formulas. It only loads data from a DB.

    I have created an additional Linked Sheet that links selected parts (columns) of the Main Sheet for more efficient analysis. Additionally, I also perform some extra calculations in new columns. The way I construct this link is to simply go to the top cell for each column on Linked Sheet, enter = and then select the corresponding column/cell in the Main Sheet.

    Initially, this seemed to work very well when I refreshed the current data file in Main Sheet, but when loading a new data file in the Main Sheet, all my references in the Linked Sheet were gone and simply returned #REF!.

    Is there a smart solution to work around this?

    There are NO changes in the Main Sheet from columns (rows) A-Z when loading new data, but it can have additional columns to the right of column Z depending on the size of the data set. But I wouldn't think this to be a factor and I don't use these additional columns either.


    My current solution:


    1. Create a new sheet with table that I call raw data. This sheet essentially looks the same as Main Sheet, but does not update automatically.

    2. Link my Linked Sheet to the sheet above.

    3. Copy and paste data from Main Sheet whenever I update into the sheet in point 1.

    This works very well, BUT, after creating it, I find that it is a bit cumbersome in the long run and is an additonal step (and sheet) that I'd love to avoid.

    Any ideas?

    Maybe the way I set up the link is a problem, but it's the only way I know of.

    Best regards,

    Elijah
    Last edited by Elijah; 07-30-2018 at 05:23 AM.

  2. #2
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    To visualize current and ideal set-up:

    Uten navn.png

  3. #3
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    I also got a tip it could be resolved with settings in the Trust Center, but I've tried various settings (maybe not the right ones?) without luck at this point.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    What settings did you try?
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    Enable all data connections (not recommened) under Security Settings for Data Connections.

    Enable automatic update for all workbook links (not recommended) under Security Settings For Workbook Links.


  6. #6
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    1. and 2. shows how it looks initially. At 3. I have loaded a new series and the result is the #REF!

    Uten navn.png

  7. #7
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    Any ideas?

    Might there be other ways to link the data to circumvent this? Or is this unavoidable?

    My current copy and paste solution DOES work, but it is a bit cumbersome and is an extra step that would be nice to avoid.

    Thanks in advance for any pointers.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    Since a few days have passed I would suggest doing what you state in the first paragraph of your first post, which is to upload a dummy (sample) file. I would suggest uploading two files. The first file should contain the Main and Linked sheets (1 and 2) from post #6. The second should have a sample of the Main sheet with new data loaded in the manner that causes the reference errors in the Linked sheet.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: 2nd sheet linked to main sheet - #REF! issues upon refreshing - Any solutions? :)

    Hi, JeteMc,

    I appreciate the invitation. It will take me some time to recreate that, but I might do so in a while. Thinking on it, I'm not even sure it would be helpful. Since you would all just get the #REF error in the cells anyway?

+ 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. Excel Attendance Sheet issues and solutions
    By Tauheed Ahmed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2016, 04:58 AM
  2. VBA formula to copy paste selected data from main sheet to new sheet
    By vbanoob123 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-24-2014, 12:28 PM
  3. Replies: 5
    Last Post: 02-09-2014, 08:29 PM
  4. Replies: 0
    Last Post: 11-05-2013, 01:51 AM
  5. Replies: 6
    Last Post: 07-18-2013, 02:34 AM
  6. Replies: 15
    Last Post: 01-03-2012, 02:39 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