Skip to content

Conversation

@Jython1415
Copy link
Owner

Summary

Fixes a syntax error in the DENSIFY formula that caused "Formula parse error; check formula syntax" in Google Sheets.

Problem

The FILTER/BYROW/LAMBDA expressions in strict mode were missing closing parentheses:

  • Row filtering (line 42): Had 2 closing parens, needed 3
  • Column filtering (line 55): Had 2 closing parens, needed 3

Each expression opens 3 functions (FILTER, BYROW, LAMBDA) but was only closing 2 of them.

Changes

Added the missing closing parenthesis in both locations:

Before:

FILTER(range, BYROW(range, LAMBDA(r, SUMPRODUCT(...) >= threshold)),

After:

FILTER(range, BYROW(range, LAMBDA(r, SUMPRODUCT(...) >= threshold))),

Testing

  • ✅ Linter passes: uv run scripts/lint_formulas.py
  • ✅ README generation passes: uv run scripts/generate_readme.py
  • ✅ Parentheses balanced: All lines now show correct depth

Impact

  • Fixes DENSIFY formula (all modes)
  • Fixes DENSIFYROWS (which calls DENSIFY)
  • Both formulas should now work correctly in Google Sheets

The FILTER/BYROW/LAMBDA expressions in strict mode (lines 42 and 55) were
missing a closing parenthesis. Each expression opens 3 functions (FILTER,
BYROW, LAMBDA) but was only closing 2 of them, causing "Formula parse error"
in Google Sheets.

Fixed by adding the missing closing paren after 'threshold' in both the
row filtering and column filtering sections.
@Jython1415 Jython1415 merged commit 995e1e3 into main Jan 18, 2026
1 check passed
@Jython1415 Jython1415 deleted the claude/fix-densifyrows-error-stoAj branch January 18, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants