+ Reply to Thread
Results 1 to 9 of 9

Need some help on a hyperlink formula

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    USA, Not otherwise relevant
    MS-Off Ver
    2003 SP3
    Posts
    25

    Question Need some help on a hyperlink formula

    I am getting CVS data from SQL, and it has an ID number in column A (starting at A2). We are saving them as xlsx files (excel 365). In column E i want to add in =HYPERLINK(https://company.website.com/info/ and after the info have a link to A2.
    Then i can drag it down for a3, a4, etc. So the data in column a appears at the end of the hyperlink.
    How would I got about this? I keep getting errors assuming that i dont know this is a formula from excel.

  2. #2
    Registered User
    Join Date
    08-10-2017
    Location
    USA, Not otherwise relevant
    MS-Off Ver
    2003 SP3
    Posts
    25

    Re: Need some help on a hyperlink formula

    Little update, i posted the base link without the reference data in F2. Then ran =HYPERLINK(F2&A2) and that worked. But each time i drag the formula down i get "inconsistent formula" error and it changes the F2 to F4 and F5 etc. I tried grabbing a block of manually completed entries but that did not work either. I might be barking up the wrong tree here.

    So at this point these work:
    =HYPERLINK(https://company.website.com/info/
    Copying the url into F2, then in E2 +Hyperlink(F2&A2)
    That makes a usable link, but it isnt really usable because wed need to put the link into a cell and create each link manually

    I think im dealing with a syntax error as these dont work:
    =HYPERLINK(https://company.website.com/info/A2)
    =HYPERLINK(https://company.website.com/info/&A2)
    =HYPERLINK((https://company.website.com/info/)&A2)
    This is something we can copy and paste, then drag down the sheet, but I have n error in the syntax it seems.

    Anyone that can pint me in the right direction would be greatly appreciated.
    Last edited by BigD63; 04-09-2024 at 03:26 PM.

  3. #3
    Registered User
    Join Date
    03-29-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    25

    Re: Need some help on a hyperlink formula

    Quote Originally Posted by BigD63 View Post
    i posted the base link without the reference data in F2. .... But each time i drag the formula down i get "inconsistent formula" error and it changes the F2 to F4 and F5 etc.
    Yeah, Excel is changing that because it's a relative reference. You want an absolute reference to F2, which would be $F$2 or at least F$2.
    So try that.

  4. #4
    Registered User
    Join Date
    08-10-2017
    Location
    USA, Not otherwise relevant
    MS-Off Ver
    2003 SP3
    Posts
    25

    Re: Need some help on a hyperlink formula

    OK I will give that a try, but is there a way to not need to paste the link into F2 initially and then make the link? To just have something i can copy paste into each sheet that has the l;ink in it?

  5. #5
    Registered User
    Join Date
    08-10-2017
    Location
    USA, Not otherwise relevant
    MS-Off Ver
    2003 SP3
    Posts
    25

    Re: Need some help on a hyperlink formula

    Tested and it works.
    But I cannot drag it down, when i do it copies, so manually changing it 400 times for this sheet alone is not feasible. What is the next step?

  6. #6
    Registered User
    Join Date
    03-29-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    25

    Re: Need some help on a hyperlink formula

    "But I cannot drag it down, when i do it copies, "
    Need a clearer explanation or a quickie workbook so I can see what that means.

    I'm off tomorrow, so probably someone else will pick this up.

  7. #7
    Registered User
    Join Date
    08-10-2017
    Location
    USA, Not otherwise relevant
    MS-Off Ver
    2003 SP3
    Posts
    25

    Re: Need some help on a hyperlink formula

    As in, when you click on the bottom right corner of the cell and drag down vertical, so it pulls the formula down to fill in for the additional cells. The current xlsx file has 400 entries. So I need to be able to copy the formula downward and have it adjust for the A2, A3, A4, A5 etc cell values.

    Is a version of this even possible? =HYPERLINK(https://company.website.com/info/$A$2) where the $A$2 is the cell reference that goes at the end of the company internal website.

    Thanks for the help so far!

  8. #8
    Registered User
    Join Date
    03-29-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    25

    Re: Need some help on a hyperlink formula

    Right, but you said that you had: "Copying the url into F2, then in E2 +Hyperlink(F2&A2)"

    so just make that: Copying the url into F2, then in E2 +Hyperlink($F$2&A2)
    Then the $F$2 is absolute, and the A2 is relative. $F$2 stays the same, A2 becomes A3, A4, A5....

  9. #9
    Registered User
    Join Date
    08-10-2017
    Location
    USA, Not otherwise relevant
    MS-Off Ver
    2003 SP3
    Posts
    25

    Re: Need some help on a hyperlink formula

    Right, that worked! Thanks. I didnt know that the second $ in A2 locked the 2 into place.

+ 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] What is the hyperlink formula to create a hyperlink in Excel to a bookmark in Word
    By BryanHCR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2019, 11:41 PM
  2. Hyperlink to hidden sheet using a cell with the =Hyperlink formula
    By pauldonnelly16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2018, 07:53 PM
  3. Adding Hyperlink formula to existing formula
    By Shawna11 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2018, 01:46 PM
  4. [SOLVED] With Hyperlink formula & vba, I want to copy text of hyperlink to the cell it's linked to
    By Freakytone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2017, 05:46 PM
  5. Use of Hyperlink in a formula?
    By speshalllkay in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-10-2017, 05:21 PM
  6. Hyperlink using a formula
    By Bridge1969 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2014, 02:11 PM
  7. Replies: 1
    Last Post: 02-23-2013, 05:18 AM

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