-
Notifications
You must be signed in to change notification settings - Fork 0
Closed as not planned
Description
Description
Enhance the CELLREF formula to optionally include the sheet name in the cell reference output (e.g., 'Sheet1'!N6 instead of just N6).
Context
Follows up on #74, which introduced the basic CELLREF formula for converting cells to A1 notation.
Technical Feasibility
Challenge: Google Sheets has no native formula to get the current sheet name. The ADDRESS function accepts a sheet name as the 5th parameter, but obtaining it programmatically requires:
- Google Apps Script custom function (e.g.,
=sheetName()) - Manual input as a parameter
Approach: Accept an optional sheet_name parameter that users can provide manually or via a custom Apps Script function.
Research findings:
- Google Sheets has no native formula to get the current sheet name (unlike Excel's CELL function)
- The only workaround is Google Apps Script:
function sheetName() { return SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getName(); } - Custom functions are cached and don't auto-update when sheets are renamed
Related
- Depends on: Shorthand for getting a relative cell reference, given a value or range passed in #74
- Related to: Add hyperlink generation from cell references #77
References
Metadata
Metadata
Assignees
Labels
No labels