HYPERLINK in ONLYOFFICE Spreadsheet Editor
Construct a linked cell value with a separate destination and label, while distinguishing source metadata from unverified browser or editor activation.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =HYPERLINK("https://example.com/reports/alpha","Alpha report") attaches the specified destination to the text Alpha report in the inspected source. No link was opened to test this example.
Availability and evidence scope
- Introduced: Original introduction release is not established by the checked sources.
- Available: Listed in current unversioned ONLYOFFICE help, checked October 18, 2026.
- Implementation inspected: Official SDKJS v10.0.0.169, commit
3679e0375a758d7dc59d31337a45461be3525ed8. The snapshot does not prove identical behavior in every installed editor. - Retired or deprecated: These sources do not establish retirement or formal deprecation.
- Testing: Numerical examples are independent mathematical expectations, and implementation discrepancies are labeled source predictions. No ONLYOFFICE application or calculation-engine execution was performed.
The examples use English function names and commas. Use your locale’s argument separator if different. These examples establish only the stated mathematical or source-trace cases. Application rendering, link activation, array placement and general import/export behavior have not been tested.
Syntax and the two separate roles
=HYPERLINK(link_location, [friendly_name])
One or two arguments are registered. link_location is the destination text; friendly_name is the value shown for the link. If the label is omitted, the location itself supplies the displayed value. The destination and label can be literal text in quotes or values referenced from cells.
The inspected function converts the location to text, resolves the optional label, and attaches the location as hyperlink metadata to the returned value. Constructing that metadata does not check that a website exists, that a file can be opened, that access is permitted, or that a protocol will be accepted by the editor. A link label can differ completely from its destination.
Current help says the online version supports URL addresses for document locations and also describes references to a place in the current workbook. Desktop file paths and in-workbook navigation involve additional editor behavior. This guide does not infer a supported protocol list, file-access permissions, a working internal-reference syntax or click behavior from this calculation function alone.
Step-by-step: maintain a destination and a readable label
- Enter
https://example.com/reports/alphaas text in A2. - Enter
Alpha reportas text in B2. - In C2 enter
=HYPERLINK(A2,B2). - The source-derived result value is the text Alpha report, with hyperlink metadata containing the exact address from A2.
The reserved example.com domain is used only as a safe illustration; the example does not assert that the reports/alpha path hosts a report. There is no need to visit it to understand or verify the formula’s argument construction.
If you omit B2 and enter =HYPERLINK(A2), the location text becomes the label. This is useful when showing the full destination is more important than a short label. Do not confuse changing the label with changing the address: editing B2 leaves the destination supplied by A2 unchanged.
Label types, empty cells and error behavior
| Formula | Source-derived returned value | Destination metadata |
|---|---|---|
=HYPERLINK("https://example.com/reports/alpha","Alpha report") |
Text Alpha report | The supplied URL |
=HYPERLINK("https://example.com/reports/alpha") |
Text containing the URL | The supplied URL |
=HYPERLINK("https://example.com/reports/alpha",42) |
Numeric 42 | The supplied URL |
=HYPERLINK("https://example.com/reports/alpha",A1) with A1 genuinely blank |
Numeric 0 | The supplied URL |
A supplied blank friendly-name cell is therefore different from omitting the argument. The source converts an empty label element to numeric zero. A literal "" is an empty string and follows a different type path. Its precise visible styling or clickable region is not established here.
The label is not universally converted to text: the numeric-label case keeps a numeric result with hyperlink metadata. If the location conversion or the resolved label is an error, that error is returned and its hyperlink metadata is cleared. Do not conceal a formula error by assuming the destination remains usable.
Advanced example: construct a consistent report index
Suppose A2:A4 contain text identifiers alpha, beta and gamma, and B2:B4 contain readable report titles. A formula such as =HYPERLINK("https://example.com/reports/"&A2,B2) constructs one destination per row; copy it down with the row references changing normally.
For alpha, the constructed location is exactly https://example.com/reports/alpha. Keep identifiers already suitable for the destination path. Simple concatenation does not perform URL encoding, authenticate a user, grant access, upload a report or validate its existence. Spaces, query delimiters and fragments can change the meaning of a URL if inserted without appropriate handling.
Maintain a visible destination column when reviewing a workbook received from someone else. Friendly text such as “Internal report” does not prove that the link points to an internal service. Before activating a link, inspect its actual destination using your editor’s supported interface. The function itself is not a security or trust check.
Range and application limitations
The inspected body scalarizes array arguments to the upper-left element and intersects range arguments with the formula context. That is not evidence that HYPERLINK returns a full list of links when passed a multi-cell range. Use one clear scalar destination and label per formula for the row-by-row index.
The source does not fetch the address during this calculation. Actual navigation is handled elsewhere by the application and may depend on online versus desktop mode, browser restrictions, workbook location, security prompts and permissions. Native hyperlink styling, mouse gestures, keyboard activation and saved-file roundtrips have not been verified for these examples. Follow the current editor documentation for those actions rather than assuming the formula alone establishes them.
Compatibility and related functions
Recalculate representative formulas when moving a workbook between editors. Matching names do not guarantee identical argument coercion, array behavior, numerical precision or error handling. These source-derived examples do not establish automatic spill behavior or a general import/export guarantee.
Official references
- ONLYOFFICE HYPERLINK help, checked October 18, 2026.
- Official SDKJS implementation, 1505–1560, tag v10.0.0.169 and exact commit above.