+ Reply to Thread
Results 1 to 6 of 6

Hyperlink function "reference is not valid" when refering to another sheet in same file

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    J
    MS-Off Ver
    Excel 2007
    Posts
    63

    Hyperlink function "reference is not valid" when refering to another sheet in same file

    Hi,

    In the attached file, in sheet 01 cell A1 I have put a hyperlink function as so:

    =HYPERLINK( TEXT("#'A'!B" & MID(CELL("filename",B1),FIND("]",CELL("filename"),1)+1,5)+2, "General"), "Go To A")

    There is only two sheets in the file attached, the main sheet A and the sub sheet 01. I'm planning on using this formula for multiple sheets and it suppose to behave following the name of the current sheet where the hyperlink function is placed. If the sheet's name is 01 it will go to cell B3 in the main sheet A. If it is named 02 it will go to cell B4 in the main sheet A and so on and so forth.

    But the problem is, though the formula :

    =TEXT("#'A'!B" & MID(CELL("filename",B1),FIND("]",CELL("filename"),1)+1,5)+2, "General")

    Resulted in:

    #'A'!B3

    as tested in sheet 01 cell B3. When I click the hyperlink it still says "Reference is not valid". I tried using just 1 ' and tried without any '. It still says "Reference is not valid". Can somebody point me where my mistake is??

    Regards
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Hyperlink function "reference is not valid" when refering to another sheet in same fil

    delete the hyperlink you already have in the cell
    also your formula is rather convoluted

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    you can just replace with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by humdingaling; 11-28-2017 at 11:43 PM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    10-17-2013
    Location
    J
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Hyperlink function "reference is not valid" when refering to another sheet in same fil

    Yesss! that was the problem, I still had the original hyperlink in that cell that i put using CTRL+K. I had to remove it by clicking "Remove Link" and then the rest is history. Solved! Thank you!

    N.B. Thanks for the extra input. But I decided that I wanted to go with my original formula because it doesn't have to depend on the value at B1 instead.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Hyperlink function "reference is not valid" when refering to another sheet in same fil

    not a problem

    whatever works for you

  5. #5
    Registered User
    Join Date
    10-17-2013
    Location
    J
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Hyperlink function "reference is not valid" when refering to another sheet in same fil

    I'm a bit curious though, is there anyway to compare which one actually works better when you click it? I mean, is there any method to calculate which one is actually faster when in operation? The method should be able to calculate each operation in miliseconds or even smaller perhaps.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Hyperlink function "reference is not valid" when refering to another sheet in same fil

    getting a bit too technically for me

    i do know i try not to use the cell formula too much
    cell is what you would call a volatile function

    some reading on why you shouldnt try avoid using them
    http://www.decisionmodels.com/calcsecretsi.htm

+ 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. "Reference is not valid" on file open
    By NitroxAddict in forum Excel General
    Replies: 11
    Last Post: 12-03-2018, 04:53 PM
  2. [SOLVED] VBA-Generated Hyperlink: "Reference Not Valid" error for Sheet Names w/ space, dash, etc.
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2016, 01:45 PM
  3. Replies: 1
    Last Post: 10-10-2016, 10:14 AM
  4. [SOLVED] Hyperlink and Vlookup usage showing "Reference is not valid".
    By sjagdhan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2015, 08:03 AM
  5. = EMBED("Forms.ComboBox.1","") error "Reference not valid."
    By CatharinaCatharina in forum Excel General
    Replies: 2
    Last Post: 12-11-2014, 09:58 AM
  6. [SOLVED] hyperlink doesn't work, "Reference is not Valid"
    By Stella2012 in forum Excel General
    Replies: 3
    Last Post: 07-30-2012, 09:52 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