SOLVED

Importing Hyperlinks from an excel spreadsheet

Copper Contributor

hello,

 

I have been scouring and have tried everything I have found so far with no luck (add an app - import spreadsheet etc etc) I have an excel spreadsheet that contains url hyperlinks and display names. I would like to import this list, displaying the display name but following the url when clicked. I cannot seem to get this to work at all on Office 365. I really do not want to have to manually add these 700 urls and link them

Any advice?

4 Replies
best response confirmed by Mindbender (Copper Contributor)
Solution

@Mindbender I figured out something that will work. I created a list, renamed the Title column to Display Text, added a column type of Hyperlink named URL. I then went into Quick Edit and was able to copy my data from excel and paste it into the list template in Quick Edit by highlighting both columns and hitting Ctrl+v. I then added this list as an app part to a page.

@Mindbender 

I too have searched all over the web with little results. However I discovered a easy trick that worked for me like a charm. The trick is to use a TAB delimited text file where the columns match the number of columns in your SharePoint list. You then edit the list in Quick Edit then copy and paste from your TAB delimited text file. I used Notepad++ to edit the text file when I do the copy and paste. You can use Excel to generate the text file quickly but you will have to edit the file in Notepad++ before you do the copy and paste. The trick is with the URL column...of course because that it why this issue exists. In the TAB delimited text file the URL column will be formatted as such: ["URL text","Pretty Description"]. The bracket are just for emphasis and are not needed. The reason why you have to edit it from Excel is because it will save the URL column as """URL text"",""Pretty Description""" and on some of the URL entries it will put a TAB at the end of the URL and then the paste will fail because the number of column do not match.

rangelin_0-1583524903684.png

Here is a picture of my list.

rangelin_1-1583525083750.png

And here is a picture of my TAB delimited text file.

 

I did not go into great details here. Start by by playing with a simple two column list like I did and then expand to a bigger list as you figure out what works. Just remember the trick with the URL column and the rest of the text columns will just work.

 

I hope this helps people out there as much as it did me.

 

 

 

 

 

 

 

 

 

@rangelin This was great information for me. Thanks. I did find that it was missing a space behind the second comma... once the space was added it worked for me. I was also able to use the following formula in Excel in a column for my hyperlink, and then I could copy the results of the formula to the Grid Edit mode. (Thereby not needing the additional Notepad ++ step)

 

=""""&[@[Link URL]]&""", """&[@Title]&""""

 

Where [@[Link URL]] and [@Title] are the column header names for my excel columns that had the title and URL. 

 

sharepoint_hyperlink.png.jpg

@Mindbender 

Hi,

I found an easier way to do this. 

  • Create a column next to the link you imported from Excel
  • This column should be a Hyperlink
  • Click on Edit in grid view (Beside New button)
  • Click and drag to the right the cell
  • You can also select 100 cells at the time and drag them to the right

RezaTehranian_0-1625242680202.png

You should see something like this:

RezaTehranian_1-1625242774388.png

Hope this helps

 

 

 

1 best response

Accepted Solutions
best response confirmed by Mindbender (Copper Contributor)
Solution

@Mindbender I figured out something that will work. I created a list, renamed the Title column to Display Text, added a column type of Hyperlink named URL. I then went into Quick Edit and was able to copy my data from excel and paste it into the list template in Quick Edit by highlighting both columns and hitting Ctrl+v. I then added this list as an app part to a page.

View solution in original post