+ Reply to Thread
Results 1 to 4 of 4

Use cell value as reference in a hyperlink

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Use cell value as reference in a hyperlink

    Hi, I have a small issue with hyperlink

    https://.../Search/QuickLink.aspx?n=A123-BCD-E-FGH-I456_JK789_0-12345&t=3&d=Main%5ceBProd&sc=Global&r=A12&cno=E_SOURCE&m=l

    A123-BCD-E-FGH-I456_JK789_0-12345 - needs to be B2 cell value
    A12 - needs to be C2 cell value

    when I drag the function down, it has to pick B and C valued according to row. I am missing a mistake somewhere. Please help.

    I last tried this function and it didn't work.
    =IF($B2<>"",HYPERLINK("https://.../Search/QuickLink.aspx?n="$B2"&t=3&d=Main%5ceBProd&sc=Global&r="$C2"&cno=E_SOURCE&m=l","Open"),"")

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,821

    Re: Use cell value as reference in a hyperlink

    You need to join the strings together with the ampersand:

    =IF($B2<>"",HYPERLINK("https://.../Search/QuickLink.aspx?n="&$B2&"&t=3&d=Main%5ceBProd&sc=Global&r="&$C2&"&cno=E_SOURCE&m=l","Open"),"")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Use cell value as reference in a hyperlink

    Great! It worked! Thank You Pete!!!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,821

    Re: Use cell value as reference in a hyperlink

    You're welcome - thanks for feeding back.

    Pete

+ 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 workbook from hyperlink in cell
    By GregExcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2012, 10:00 AM
  2. Replies: 6
    Last Post: 11-30-2010, 04:40 AM
  3. hyperlink in reference cell
    By spata4ok in forum Excel General
    Replies: 5
    Last Post: 12-23-2009, 11:53 AM
  4. 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
  5. 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