Skip to content

Add hyperlink generation from cell references #77

@Jython1415

Description

@Jython1415

Description

Create a formula to generate clickable hyperlinks from cell references in the format:

https://docs.google.com/spreadsheets/d/[SPREADSHEET_ID]/edit#gid=[SHEET_ID]&range=[CELL_REF]

Context

Follows up on #74, which introduced the CELLREF formula. This would enable creating dynamic links to specific cells within the spreadsheet.

Technical Feasibility

Challenge: Google Sheets formulas cannot access:

  • Spreadsheet ID (the long string in the URL after /d/)
  • Sheet GID (the numeric ID after gid= in URLs)

Limitation: Pure formula implementation is not possible. Only achievable via:

  • Google Apps Script custom functions
  • Manual parameter input (requires users to provide IDs)

Approach: If implemented, would need to accept spreadsheet_id and sheet_gid as parameters, which limits practical usability.

Research findings:

  • No native formula can retrieve the spreadsheet ID or sheet GID programmatically
  • These values are only available via Google Apps Script using SpreadsheetApp.getActiveSpreadsheet().getId() and getSheetId()
  • Pure formula implementation would require users to manually provide these IDs as parameters, limiting usability

Related

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions