🌐
XlsxWriter
xlsxwriter.readthedocs.io › example_hyperlink.html
Example: Adding hyperlinks — XlsxWriter
This program is an example of writing hyperlinks to a worksheet. See the write_url() method for more details. ############################################################################### # # 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.
🌐
Rdrr.io
rdrr.io › cran › openxlsx › man › makeHyperlinkString.html
makeHyperlinkString: create Excel hyperlink string in openxlsx: Read, Write and Edit xlsx Files
November 5, 2025 - ## Writing internal hyperlinks wb <- createWorkbook() addWorksheet(wb, "Sheet1") addWorksheet(wb, "Sheet2") addWorksheet(wb, "Sheet 3") writeData(wb, sheet = 3, x = iris) ## External Hyperlink x <- c("https://www.google.com", "https://www.google.com.au") names(x) <- c("google", "google Aus") class(x) <- "hyperlink" writeData(wb, sheet = 1, x = x, startCol = 10) ## Internal Hyperlink - create hyperlink formula manually writeFormula( wb, "Sheet1", x = '=HYPERLINK(\"#Sheet2!B3\", "Text to Display - Link to Sheet2")', startCol = 3 ) ## Internal - No text to display using makeHyperlinkString() func
🌐
Microsoft Support
support.microsoft.com › en-us › excel › work-with-links-in-excel
Work with links in Excel | Microsoft Support
Hyperlink to another workbook =HYPERLINK("C:\\Users\\YourName\\Documents\\AnotherWorkbook.xlsx", "Open Another Workbook")
🌐
Trump Excel
trumpexcel.com › home › hyperlinks in excel (a complete guide + examples)
Hyperlinks in Excel (A Complete Guide + Examples)
Excel allows having hyperlinks in cells which you can use to directly go to that URL.
Published: July 15, 2026
🌐
Sheetjs
docs.sheetjs.com › sheetjs data model › spreadsheet features › hyperlinks
Hyperlinks and Tooltips | SheetJS Community Edition
Hyperlink objects include the following fields: Target (required) describes the reference. Tooltip is the tooltip text. Tooltips are shown when hovering over the text. For example, the following snippet creates a link from cell A1 to https://sheetjs.com with the tip "Find us @ SheetJS.com!": /* create worksheet with cell A1 = "https://sheetjs.com" */ var ws = XLSX.utils.aoa_to_sheet([["https://sheetjs.com"]]); /* add hyperlink */ ws["A1"].l = { Target: "https://sheetjs.com", Tooltip: "Find us @ SheetJS.com!"
🌐
Excel Easy
excel-easy.com › examples › hyperlinks.html
Insert Hyperlinks in Excel - Complete Tutorial
Use the 'Insert Hyperlink' dialog box in Excel to create a hyperlink to an existing file, a web page or a place in this document. You can also use the HYPERLINK function.
Find elsewhere
🌐
Rdrr.io
rdrr.io › cran › openxlsx2 › man › create_hyperlink.html
create_hyperlink: Create spreadsheet hyperlink string in openxlsx2: Read, Write and Edit 'xlsx' Files
May 25, 2026 - wb <- wb_workbook()$ add_worksheet("Sheet1")$add_worksheet("Sheet2")$add_worksheet("Sheet3") ## Internal Hyperlink - create hyperlink formula manually x <- '=HYPERLINK(\"#Sheet2!B3\", "Text to Display - Link to Sheet2")' wb$add_formula(sheet = "Sheet1", x = x, dims = "A1") ## Internal - No text to display using create_hyperlink() function x <- create_hyperlink(sheet = "Sheet3", row = 1, col = 2) wb$add_formula(sheet = "Sheet1", x = x, dims = "A2") ## Internal - Text to display x <- create_hyperlink(sheet = "Sheet3", row = 1, col = 2,text = "Link to Sheet 3") wb$add_formula(sheet = "Sheet1", x
🌐
Exceljet
exceljet.net › home › functions › hyperlink function
Excel HYPERLINK function | Exceljet
1 month ago - The Excel HYPERLINK function returns a hyperlink to a given destination. You can use HYPERLINK to create a clickable hyperlink with a formula. The HYPERLINK function can build links to workbook locations, pages on the internet, or files on network ...
🌐
Plandem
plandem.github.io › xlsx › guide › hyperlinks.html
Hyperlinks | Xlsx2Go
July 15, 2019 - For these cases you can use special type and configure hyperlink as you wish. package code import ( "github.com/plandem/xlsx" "github.com/plandem/xlsx/format/styles" "github.com/plandem/xlsx/types/hyperlink" ) func Example_hyperlinks() { xl := xlsx.New() sheet := xl.AddSheet("") //hyperlink to other excel file with reference to C3 at Sheet1 link := hyperlink.New( hyperlink.ToFile(`C:\example_simple.xlsx`), hyperlink.ToRef("C3", "Sheet1"), hyperlink.Tooltip("That's a tooltip"), hyperlink.Display("Something to display"), //Cell still holds own value hyperlink.Styles(styles.New( styles.Font.Bold, styles.Font.Color("#ff0000"), )), ) sheet.CellByRef("A2").SetHyperlink(link) xl.SaveAs("./foo.xlsx") }
Top answer
1 of 4
22
=HYPERLINK("#'linked sheet name'!linked cell number","your message")

For example

=HYPERLINK("#'Page 2'!A4","TEST") 

The linked sheet name is Page 2 and linked cell number is A4 and message is TEST. The # is shorthand for the local workbook.

2 of 4
2

The HYPERLINK function is used to make a link to another sheet link this:

=HYPERLINK("[File]SheetName!A1", "NiceName" )

Since the first part is a string, if your value for SheetName is stored in cell A1 you could use CONCATENATE to build that string like this (line breaks added inside the CONCATENATE to hopefully add some clarity)

=HYPERLINK( CONCATENATE("[",
   MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1),
   "]",
   A1 ,
   "!B1" ) , "Name" )

This is quite long and painful, sorry, so someone might have a better suggestion - but I think this will work. Note that this will only work on saved files as it requires a filename to work on.

Use B1 for the cell or named ranged to link to (I guess just use A1 if you just want to open that sheet and note bothered about a specific point within it).
And "NiceName" is what appears in the cell to the user.

As way of a brief explanation, what the CONCATENATE is doing, is first extracting the filename from CELL("filename"), wrapping it in the required [], appending the sheet name (taken from cell A1), and finally appending ! and a cell name to complete the link. The result, for example, is something like the following, which should work as a target for HYPERLINK.

[FileName.xls]SheetName!A1
🌐
R Project
search.r-project.org › CRAN › refmans › openxlsx › html › makeHyperlinkString.html
R: create Excel hyperlink string
## Writing internal hyperlinks wb <- createWorkbook() addWorksheet(wb, "Sheet1") addWorksheet(wb, "Sheet2") addWorksheet(wb, "Sheet 3") writeData(wb, sheet = 3, x = iris) ## External Hyperlink x <- c("https://www.google.com", "https://www.google.com.au") names(x) <- c("google", "google Aus") class(x) <- "hyperlink" writeData(wb, sheet = 1, x = x, startCol = 10) ## Internal Hyperlink - create hyperlink formula manually writeFormula(wb, "Sheet1", x = '=HYPERLINK("#Sheet2!B3", "Text to Display - Link to Sheet2")', startCol = 3 ) ## Internal - No text to display using makeHyperlinkString() functio
🌐
How-To Geek
howtogeek.com › home › microsoft office › 6 uses for the hyperlink function in microsoft excel
6 Uses for the HYPERLINK Function in Microsoft Excel
January 16, 2023 - With the HYPERLINK function, you can enter a file path or URL with the sheet, cell, or defined name you want to link to. For example: "=HYPERLINK("[HTG_Desktop.xlsx]Sheet1!A6")" Insert display text to make your link friendlier.
🌐
Stack Overflow
stackoverflow.com › questions › 75762176 › openxml-syntax-for-adding-a-hyperlink-to-an-xlsx-document-cell-when-using-datat
OpenXML syntax for adding a hyperlink to an .XLSX document cell when using Datatables.js
I created a JS fiddle here where it should allow you to download the xlsx file: jsfiddle.net/Ludolfyn/za6y2nt4. But thanks for that tip. I think I'll definitely get that tool and inspect the XML. ... Another way to consider doing this is to find a way from your library to insert a formula into cells you need, like =HYPERLINK("https://google.com","Click here").
🌐
How-To Geek
howtogeek.com › home › microsoft › 3 ways to insert hyperlinks in microsoft excel
3 Ways to Insert Hyperlinks in Microsoft Excel
January 24, 2023 - HYPERLINK(location, text) where the first argument is required and contains the full path and file name as the link. For the second argument, you can enter text in quotes or a cell reference to display friendly text for the link.
🌐
Microsoft Support
support.microsoft.com › en-us › office › hyperlink-function-333c7ce6-c5ae-4164-9c47-7de9b76f577f
HYPERLINK function | Microsoft Support
The HYPERLINK function creates a shortcut that jumps to another location in the current workbook, or opens a document stored on a network server, an intranet, or the Internet.