cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tobias_fate
New Member

Extract Hyperlink from Text in Excel-Cell

Hi,

 

I have an excel sheet with a cell which has a Text + Hyperlink (eg. "Link"). 

Is it possible to extract the hyperlink of the text in the cell separately using a flow-action?

The flow reads rows from an excel-file into a list. Every time a new excel-file is dropped into the folder, new rows are appended to the SharePoint list.

 

But I have not been able to extract the link yet.  Is there a way to do this?

Thank you very much for your help.


Tobias

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @tobias_fate :

The list rows present in table does not return the hyperlink, only the text.

So you might have to create another column in your excel table that has the hyperlink itself.For example:

1\Add a custom function to get the url

  • ALT + F11 and then navigate to  Microsoft Visual Basic for Applications
  • insert-Modult and then copy this code into the Module
Function GetURL(pWorkRng As Range) As String
'Updateby Extendoffice
    GetURL = pWorkRng.Hyperlinks(1).Address
End Function

 

vbofengmsft_0-1623915432388.png

2\Add a new column and set it's value to 

=getURL(thecell)

vbofengmsft_1-1623915509563.png

I think this link will help you a lot:

How To Extract Actual Addresses From Hyperlinks In Excel?

 

Best Regards,

Bof

 

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @tobias_fate :

The list rows present in table does not return the hyperlink, only the text.

So you might have to create another column in your excel table that has the hyperlink itself.For example:

1\Add a custom function to get the url

  • ALT + F11 and then navigate to  Microsoft Visual Basic for Applications
  • insert-Modult and then copy this code into the Module
Function GetURL(pWorkRng As Range) As String
'Updateby Extendoffice
    GetURL = pWorkRng.Hyperlinks(1).Address
End Function

 

vbofengmsft_0-1623915432388.png

2\Add a new column and set it's value to 

=getURL(thecell)

vbofengmsft_1-1623915509563.png

I think this link will help you a lot:

How To Extract Actual Addresses From Hyperlinks In Excel?

 

Best Regards,

Bof

 

View solution in original post

tobias_fate
New Member

 

 

 

 

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,924)