+ Reply to Thread
Results 1 to 2 of 2

Can I create a Hyperlink/Button that reads its cell reference from another cell?

Hybrid View

funkyjim Can I create a... 09-06-2018, 04:43 AM
Aardigspook Re: Can I create a... 09-06-2018, 08:01 AM
  1. #1
    Registered User
    Join Date
    08-28-2018
    Location
    England
    MS-Off Ver
    2007
    Posts
    1

    Can I create a Hyperlink/Button that reads its cell reference from another cell?

    I need a hyperlink/button that will go to a cell reference that is written in another cell. Is this possible?

    For example, if cell A1 had G:G written in it, could I have a hyperlink/button that will read that "G:G" value as its cell reference and select column G when clicked?

    I can create a dynamic hyperlink which goes to an individual cell when it matches another cell, but I need the entire column to be selected.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Can I create a Hyperlink/Button that reads its cell reference from another cell?

    Welcome to the forum.

    You need to put a hash sign in front of the column range.

    Option 1.
    Put #G:G in A1 then use this:
    Formula: copy to clipboard
    =HYPERLINK(A1)


    Option 2.
    Leave just G:G in A1 and add the # in the formula:
    Formula: copy to clipboard
    =HYPERLINK("#"&A1)


    Option 3.
    Just put the column letter in A1 and use this:
    Formula: copy to clipboard
    =HYPERLINK("#"&A1&":"&A1)


    Friendly Name
    Personally I'd add a 'friendly name' for the hyperlink as well, using something like this:
    For options 1 or 2:
    Formula: copy to clipboard
    =HYPERLINK("#"&A1,"Col "&LEFT(A1,FIND(":",A1)-1))

    For option 3:
    Formula: copy to clipboard
    =HYPERLINK("#"&A1&":"&A1,"Col "&A1)


    Hope that does what you want.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. [SOLVED] Macro to Create Hyperlink with Sheet Name/Cell Reference Message Box
    By yohanmcdonald in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-28-2017, 03:08 PM
  2. External cell reference based on hyperlink in a cell in the active sheet
    By Sydstar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2014, 08:25 AM
  3. [SOLVED] Excel 2010 Create a macro to check if cell contains hyperlink then apply hyperlink style
    By chasidar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2013, 04:48 AM
  4. [SOLVED] User Form - Hyperlink Button within a Form, to create a Link on a Designated Cell
    By Sinalk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2013, 07:29 AM
  5. Replies: 7
    Last Post: 06-27-2007, 08:39 AM
  6. How do I create a hyperlink to a cell with the hyperlink function
    By S. Bevins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2006, 03:06 PM
  7. script to hyperlink and reference a cell value in the hyperlink
    By Natasha D. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2006, 02:43 PM

Tags for this Thread

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