How can I copy a hyperlink and the text label from one cel to another using a formula?

JJ Darland 0 Reputation points
2025-12-05T03:02:20.1133333+00:00
  • I have hyperlinked cells in column A and I need to copy certain cells with hyperlink to column B based on certain criteria using a formula
Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Q&A Assist
    2025-12-05T03:03:30.32+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    In Excel, you cannot directly copy a hyperlink and its text label from one cell to another using a formula. However, you can achieve this using a combination of functions. Here’s how you can do it:

    1. Use the HYPERLINK function: You can create a new hyperlink in the target cell using the HYPERLINK function. The syntax is:
         =HYPERLINK(link_location, [friendly_name])
      
      • link_location is the URL you want to link to.
      • friendly_name is the text you want to display.
    2. Extracting the hyperlink and text: If you have a hyperlink in cell A1, you can extract the link and the text label using the following approach:
      • To get the hyperlink URL, you can use a VBA function, as Excel formulas do not support extracting hyperlinks directly.
      • To get the text label, you can simply reference the cell directly.
    3. Example: Assuming you have a hyperlink in cell A1:
      • To copy the hyperlink and text to B1 based on a condition, you could use:
         =IF(condition, HYPERLINK(A1, A1), "")
      
      Replace condition with your specific criteria.

    This way, you can create a new hyperlink in column B based on the criteria you set, while referencing the hyperlink in column A.


    References:


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.