I would be interested to understand your workflow a bit better, but to try and help with your specific request:

  • The HYPERLINK solution proposed in the comments looks like a good one
  • If you are able to implement that upstream in the csv generation step then great
  • If not and/or you are interested in automating the conversion process, consider using the pandas library:
    • Create a DataFrame object from a csv using the pandas.read_csv method
    • Convert your paths to HYPERLINKs
    • Write back to xlsx using the pandas.DataFrame.to_excel method

E.g. if you have a file original.csv and the relevant column header is file_paths:

import pandas as pd


df = pd.read_csv('original.csv')
df['file_paths'] = '=HYPERLINK("' + df['file_paths'] + '")'
df.to_excel('new.xlsx', index=False)

Hope that helps!

Jon

Answer from Jon Hannah on Stack Overflow
๐ŸŒ
XlsxWriter
xlsxwriter.readthedocs.io โ€บ example_hyperlink.html
Example: Adding hyperlinks โ€” XlsxWriter
############################################################################### # # Example of how to use the XlsxWriter module to write hyperlinks # # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2013-2025, John McNamara, jmcnamara@cpan.org # import xlsxwriter # Create a new workbook and add a worksheet workbook = xlsxwriter.Workbook("hyperlink.xlsx") worksheet = workbook.add_worksheet("Hyperlinks") # Format the first column worksheet.set_column("A:A", 30) # Add a sample alternative link format. red_format = workbook.add_format( { "font_color": "red", "bold": 1, "underline": 1, "font_size": 12, } ) # Write some hyperlinks worksheet.write_url("A1", "http://www.python.org/") # Implicit format.
๐ŸŒ
EasyXLS
easyxls.com โ€บ manual โ€บ tutorials โ€บ python โ€บ excel-hyperlink-cell-file-sheet-url.html
Excel hyperlink to cell, file, sheet and URL in Python | EasyXLS Guide
Code sample Python: Create Excel file with hyperlink to cell, hyperlink to file, hyperlink to sheet or URL using EasyXLS library. XLSX, XLSM, XLSB, XLS file
Discussions

Insert hyperlink to a local folder in Excel with Python - Stack Overflow
The piece of code reads an Excel file. This excel file holds information such as customer job numbers, customer names, sites, works description ect.. What this code will do when completed (I hope... More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - adding hyperlinks in some cells openpyxl - Stack Overflow
I have to generate an excel with summary results. The results are included in a list. Some of the elements are values and some links. I managed to generate the excel with the right format but not More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - Create a hyperlink to a different Excel sheet in the same workbook - Stack Overflow
I'm assuming the issue lies in the value of 'link_to'; however, I don't know what would need changed or what kind of path I would have to write. I'm using Python 2.7.6 and Excel 2013. More on stackoverflow.com
๐ŸŒ stackoverflow.com
Trying to open a hyperlink in excel with python
To open a hyperlink you need to use the webbrowser module. import webbrowser url = ws.cell(row=1, column=2).hyperlink.target webbrowser.open(url) https://docs.python.org/3/library/webbrowser.html More on reddit.com
๐ŸŒ r/learnpython
3
2
January 27, 2022
๐ŸŒ
Microsoft Support
support.microsoft.com โ€บ en-us โ€บ excel โ€บ python โ€บ introduction-to-python-in-excel
Introduction to Python in Excel | Microsoft Support
Python in Excel calculations run in the Microsoft Cloud with a standard version of the Python language. Python in Excel comes with a core set of Python libraries provided by Anaconda through a standard, secure distribution. To learn more, see Data security and Python in Excel. You don't need a local version of Python to use Python in Excel.
๐ŸŒ
Medium
medium.com โ€บ @alice.yang_10652 โ€บ add-update-extract-or-delete-hyperlinks-in-excel-with-python-168efce7f73d
Add, Update, Extract or Delete Hyperlinks in Excel with Python | by Alice Yang | Medium
June 20, 2024 - In addition to text-based hyperlinks, Spire.XLS for Python also enables you to create image hyperlinks, allowing you to transform images in your Excel worksheets into clickable links.
Find elsewhere
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-excel-tutorial
Python Excel Tutorial: Read, Write & Format Excel With openpyxl | DataCamp
June 3, 2026 - A complete guide to openpyxl for Python developers. Read and write Excel files, create charts, apply cell formatting, and automate Excel workflows from Python.
๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ python-excel โ€บ c โ€บ DQYBUletleQ
Hyperlink to a file in excel using pythonโ€
> > I am using xlwt module. Example code below: > > link= 'abcd.html' > sheet.write(x, y, link, format_style) Have you searched for "hyperlink" in this group's archive? Have you read the section on Hyperlinks in the tutorial available from http://www.python-excel.org ?
๐ŸŒ
e-iceblue
e-iceblue.com โ€บ Tutorials โ€บ Python โ€บ Spire.XLS-for-Python โ€บ Program-Guide โ€บ Link โ€บ Python-Extract-Modify-or-Remove-Hyperlinks-in-Excel.html
Python: Extract, Modify or Remove Hyperlinks in Excel
There are instances where you may need to manage hyperlinks in Excel files, such as extracting hyperlinks for further analysis, modifying existing links, or removing them entirely. In this article, we will introduce how to extract, modify, and remove hyperlinks in Excel in Python using Spire.XLS ...
๐ŸŒ
Python Forum
python-forum.io โ€บ thread-20041.html
How to add hyperlink to existing Excel file
Hi, I have below the main table (both table are (csv): grp1 grp2 grp Date grp1_1 grp1_2 Date grp2_1 grp2_2 grp2_3 AHJ 20191/7/1 1/3 2/5 20191/7/1 2/5 3/3 2/6 AKL ...
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ trying to open a hyperlink in excel with python
r/learnpython on Reddit: Trying to open a hyperlink in excel with python
January 27, 2022 -

Hello,

I have an excel file with hyperlinks (these hyperlinks lead to a website). I want to python to open one of the hyperlinks. When I execute the script I would expect the websites to open in Microsoft edge, but instead, nothing happens. Here is my code:

import openpyxl

wb = openpyxl.load_workbook("C:\\Users\\rfog\\OneDrive\\Documents\\Python Excel\\pythontest.xlsx")

ws = wb['Sheet1']

ws.cell(row=1, column=2).hyperlink.target

Any suggestions?

๐ŸŒ
Data to Fish
datatofish.com โ€บ read_excel
How to Import an Excel File Into Python using pandas
Let's say, you have an excel file named fish.xlsx on your desktop that contains the following data: Create a Python script that loads the excel file into a pandas DataFrame and prints it to the terminal:
๐ŸŒ
Medium
medium.com โ€บ @markchen69 โ€บ integrating-python-into-excel-a-new-era-of-data-analysis-211e25377693
Integrating Python into Excel: A New Era of Data Analysis | by Mark Chen | Medium
November 7, 2024 - Traditionally, Excel has struggled with handling large datasets efficiently and lacked the ability to perform complex statistical analysis and machine learning. By embedding Python, Microsoft addresses these limitations, offering a more powerful solution for data analysis within a familiar interface.
๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ python-excel โ€บ c โ€บ ODQvunP6NsU
Hyperlinks to particular sheet and cell in a different workbook
John Machin wrote: >> > You type into your sourcefile editor exactly what >> > you would type into Excel ยท ashu_104 wrote: >> Thanks for the reply i already tried doing that, >> as Google specifies the formula for the hyperlink >> turns out to be: >> >> =HYPERLINK("[book1.xls]Sheet2!A1","CLICK HERE") >> >> which i write in my python code as: >> sheet.write(100,1,xlwt.Formula('HYPERLINK("[book1.xls]sheet2!
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 57877458 โ€บ how-to-use-python-to-retrieve-an-url-from-an-excel-column-and-then-open-it-with
How to use python to retrieve an url from an excel column and then open it with chrome and login password? - Stack Overflow
September 11, 2019 - import pandas as pd exceldata = pd.read_excel("file.xlsx",sheet_name = "sheet1") for idx in exceldata.index: print(exceldata['links'][idx])) ## Do your selenium tasks here for opening and logging into the fetched link.