fix: support formulas in gsheets_update_cell#21
Open
faionfaion wants to merge 1 commit intoisaacphi:mainfrom
Open
fix: support formulas in gsheets_update_cell#21faionfaion wants to merge 1 commit intoisaacphi:mainfrom
faionfaion wants to merge 1 commit intoisaacphi:mainfrom
Conversation
When value starts with '=' treat it as a formula by using USER_ENTERED valueInputOption instead of RAW. This allows formulas to be properly evaluated instead of being stored as literal text.
dmitry-simple-it
added a commit
to dmitry-simple-it/mcp-gdrive
that referenced
this pull request
Jan 19, 2026
…e_cell Change valueInputOption from RAW to USER_ENTERED to fix: - Boolean values (TRUE/FALSE) being stored as text with leading apostrophe - Formulas not being evaluated - Numbers and dates not being recognized Fixes isaacphi#22 Also addresses the issue described in PR isaacphi#21 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3 tasks
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.
Summary
USER_ENTEREDvalueInputOption when value starts with=(formula)RAWfor regular values to preserve existing behaviorProblem
Currently, entering a formula like
=A1+B1results in the literal text being stored with a leading apostrophe ('=A1+B1), preventing formula evaluation.Solution
Check if value starts with
=and useUSER_ENTEREDin that case, allowing Google Sheets to interpret it as a formula.Test plan
=B36-B35- correctly evaluates