Repository navigation
Defined names: relative references follow the cell that uses the name - #398
Merged
h-a-n-a-s-h-i merged 1 commit intoOct 11, 2026
Merged
Conversation
A name whose references have no $ was evaluated as if they were absolute. In Excel such references are relative: defined from B2, =Sheet1!A2 means "the cell to the left", and the file stores it relative to A1 (Sheet1!XFD1, wrapping around the sheet's edge). Name formulas with relative references are now moved by the using cell's offset from A1, wrapping at the edges, and formulas.defineName takes relative references as relative to the active cell, as Excel's Name Manager does, and stores them relative to A1.
Member
|
Merged — thank you for the contribution! If you haven't already, come join us on the ArtCraft Discord: https://discord.gg/artcraft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A name without
$was evaluated as if absolute:LeftCelldefined from B2 as=Sheet1!A2gave A2 wherever it was used. Excel stores such references relative to A1, asSheet1!XFD1(wrapping at the sheet's edges), and moves them by the using cell's offset; in Excel for Mac,=LeftCellin C10 gives B10, and on Sheet2 it still reads Sheet1.formulas.defineNamenow takes relative references as seen from the active cell, as the Name Manager does, and stores them relative to A1.#208 resets its evaluator
shiftinside names, so whichever lands second needs to combine the two.