+ Reply to Thread
Results 1 to 7 of 7

Problem with using a cell reference in a hyperlink

  1. #1
    Registered User
    Join Date
    12-16-2015
    Location
    Oklahoma
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    3

    Question Problem with using a cell reference in a hyperlink

    I have the following formula in an excel spreadsheet:

    =HYPERLINK("https://maps.google.com/maps?q="&B4,"View on Google Maps")

    with the address in cell B4. When I click on it, it opens the browser but the browser only shows "https://maps.google.com/maps?q". If I remove the friendly name parameter I can see the whole address in the field, but clicking on it still doesn't properly call the address in the browser. What am I doing wrong?

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Problem with using a cell reference in a hyperlink

    According to my testing that formulation should work.

    That being said what's the contents of cell B4 ? I think that's where your problem is.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    12-16-2015
    Location
    Oklahoma
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    3

    Re: Problem with using a cell reference in a hyperlink

    I'll attach the spreadsheet. Cell B4 has "28 E Washington Ave, McAlester OK".
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,617

    Re: Problem with using a cell reference in a hyperlink

    Maybe:
    Please Login or Register  to view this content.
    Ben Van Johnson

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Problem with using a cell reference in a hyperlink

    =HYPERLINK($C$1&B4,"View on Google Maps")
    where:
    $C$1:
    Please Login or Register  to view this content.
    (as text not link)

    B4: 28 E Washington Ave, McAlester OK (or something)


    @
    Quote Originally Posted by protonLeah View Post
    Maybe:
    Please Login or Register  to view this content.
    rather:
    Please Login or Register  to view this content.
    Last edited by sandy666; 12-16-2015 at 06:51 PM.

  6. #6
    Registered User
    Join Date
    12-16-2015
    Location
    Oklahoma
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    3

    Re: Problem with using a cell reference in a hyperlink

    OK, I figured it out and it was dumb. Apparently when I first entered the hyperlink into the cell, I just entered:

    http://maps.google.com/maps?q

    So excel created a cell hyperlink to that address. I then went back and entered the formula around the original URL. The formula was fine, but entering the formula didn't change the cell hyperlink. Clicking the cell still took you to http://maps.google.com/maps?q. So I finally right-clicked and selected "remove hyperlink" and everything worked fine.

    Thanks for the help, folks.
    Last edited by terrellzsanders; 12-17-2015 at 10:54 AM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Problem with using a cell reference in a hyperlink

    Turn off automatic hyperlink.
    Options - Proofing - Autocorrect Option - Uncheck Internet and network path with hyperlinks
    and try again all above

+ 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] Hyperlink to a cell containing a reference
    By taxboy2010 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-29-2015, 03:23 PM
  2. [SOLVED] Use cell value as reference in a hyperlink
    By LinaVa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2014, 06:26 AM
  3. [SOLVED] Problem in Hyperlink - Reference to a cell of another sheet
    By abduljaleel.mca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 12:11 AM
  4. Replies: 6
    Last Post: 11-30-2010, 04:40 AM
  5. hyperlink in reference cell
    By spata4ok in forum Excel General
    Replies: 5
    Last Post: 12-23-2009, 11:53 AM
  6. Can You Use A Cell Reference in a Hyperlink?
    By xfreez99 in forum Excel General
    Replies: 3
    Last Post: 07-29-2008, 12:23 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

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