+ Reply to Thread
Results 1 to 12 of 12

External reference changed to #Ref when source is opened

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    4

    External reference changed to #Ref when source is opened

    I am having problem with my friend's excel sheets. My friend is trying to have 1 cell from his sheet p1 reference to sheet p2. So he wrote something like this.

    ='\\192.168.0.207\folder1\folder2\[p2.xlsx]Sheet1'!C1

    There is no problem referencing the correct cell in normal circumstances.

    However, when the source file is opened, the formula changed to something like this:

    ='[p2.xlsx]#REF!'C1

    I check the folder path is correct. The file doing the reference (p1.xlsx) is password protected, but not the source file. I tried to re-link the source using "Edit link" but no use. Can anyone help me with this problem?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: External reference changed to #Ref when source is opened

    It seems that the referred sheet of the source is getting deleted.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: External reference changed to #Ref when source is opened

    does the source file have a sheet names sheet1?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-25-2013
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: External reference changed to #Ref when source is opened

    Quote Originally Posted by :) Sixthsense :) View Post
    It seems that the referred sheet of the source is getting deleted.
    No. File is still there and I tried to retype the link. No use

    Quote Originally Posted by FDibbins
    does the source file have a sheet names sheet1?
    Yes. There is. I am able to link to that sheet/file until the source is open then it became #ref

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: External reference changed to #Ref when source is opened

    Don't retype it.

    Just delete the current formula cell and type = and take your mouse to that source file and click the cell.

    Close the source workbook so that it will show the complete path if you wish to see..

    Whenever the source file is in open the root path of the source file won't be shown in formula bar.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: External reference changed to #Ref when source is opened

    Good thinking Six

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: External reference changed to #Ref when source is opened

    Quote Originally Posted by FDibbins View Post
    Good thinking Six
    Ah!! Thank you

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: External reference changed to #Ref when source is opened

    Lets hope if fixes the problem

  9. #9
    Registered User
    Join Date
    11-25-2013
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: External reference changed to #Ref when source is opened

    I was trying to use the method that you suggested, but I found out that the problem that I mentioned did not happened on my computer and only on his. I current can not try on his computer. I will try re-referencing the way you said later.

    However, I have notice something funny btw. Our excel is stored on server. So the path to those file is "\\192.168.0.206\userdata\abc\p1.xlsx" and "\\192.168.0.206\userdata\abc\p2.xlsx".

    My x drive is mapped to \\192.168.0.206\userdata. His Y drive is mapped to \\192.168.0.206\userdata. When p1.xlsx is opened my computer, the formula shows x:\abc\p2.xlsx. On his computer it shows Y:\abc\p2.xlsx.

    So I am wondering how exactly does excel store those link? Do they store the drive letter? or the IP address? We didn't make the excel ourselves so there is no way we know what it is entered initially. Will the formula change automatically if we change the drive letter?

    Many thx

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: External reference changed to #Ref when source is opened

    It depends how both of your system drives mapped on the network…

  11. #11
    Registered User
    Join Date
    11-25-2013
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: External reference changed to #Ref when source is opened

    I just tried using your method. it seems it is working. But he have at least a hundreds link to 10-20 files. is there anyway that can fix this without doing it one by one?

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: External reference changed to #Ref when source is opened

    Make use of Find & Replace which you can get by pressing Ctrl+H

    Example ='[p2.xlsx]#REF!'C1

    In the above case the #REF has occurred in Sheet Name Reference.

    So press Ctrl+H and in find what box type #REF and in replace with type your sheet name like MySheet

    Expand the Options Button>> In Look in>>Select Formulas and click Replace All.

+ 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. Replies: 1
    Last Post: 01-07-2013, 12:22 PM
  2. Replies: 3
    Last Post: 05-13-2009, 11:51 PM
  3. [SOLVED] Using Macro, how can I check if an opened workbook was changed ?
    By Macro to check if a workbook has changed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2006, 08:15 AM
  4. [SOLVED] Import External Data Source File Location Changed
    By Louise in forum Excel General
    Replies: 3
    Last Post: 01-04-2006, 10:50 AM
  5. Can an external reference be changed on the fly?
    By jfwtx in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-01-2005, 12:10 AM

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