-
Notifications
You must be signed in to change notification settings - Fork 0
Closed as not planned
Description
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()andgetSheetId() - Pure formula implementation would require users to manually provide these IDs as parameters, limiting usability
Related
- Depends on: Shorthand for getting a relative cell reference, given a value or range passed in #74
- Related to: Add sheet name support to CELLREF formula #76
References
Metadata
Metadata
Assignees
Labels
No labels