Skip to content

Conversation

@jpoz
Copy link
Contributor

@jpoz jpoz commented Jan 23, 2026

PR Details

Excel wraps sheet names containing spaces or special characters in single quotes. The calculation engine previously failed to resolve these references because it included literal quotes in the sheet lookup.

Description

In this PR we strip surrounding quotes during parsing to ensure formulas correctly resolve data across sheets with spaces, hyphens, or other special characters.

How Has This Been Tested

Added test coverage

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.56%. Comparing base (418be6d) to head (19c98e8).
⚠️ Report is 19 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #2253    +/-   ##
========================================
  Coverage   99.55%   99.56%            
========================================
  Files          32       32            
  Lines       25778    26291   +513     
========================================
+ Hits        25663    26176   +513     
  Misses         60       60            
  Partials       55       55            
Flag Coverage Δ
unittests 99.56% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpoz jpoz force-pushed the jpoz/fix-special-chars-in-sheetnames branch from 6506c4b to ccd825c Compare January 23, 2026 18:55
Excel wraps sheet names containing spaces or special characters in
single quotes. The calculation engine previously failed to resolve
these references because it included literal quotes in the sheet
lookup.

Strip surrounding quotes during parsing to ensure formulas correctly
resolve data across sheets with spaces, hyphens, or other special
characters.
@jpoz jpoz force-pushed the jpoz/fix-special-chars-in-sheetnames branch from ccd825c to 63bc6f3 Compare January 23, 2026 19:00
@xuri xuri added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 24, 2026
…est case into TestCalcWithDefinedName

- Remove TestCalcWithNamedRangesVariousScenarios because the changes of calc.go already covered by TestCalcWithDefinedName
@xuri xuri added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 24, 2026
@xuri xuri moved this to Bugfix in Excelize v2.10.1 Jan 24, 2026
Copy link
Member

@xuri xuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks for your contribution.

@xuri xuri changed the title fix(calc): strip quotes from sheet names Trim single quotes from sheet names to fix calculation engine resolve references failed Jan 26, 2026
@xuri xuri merged commit 38eb7c1 into qax-os:master Jan 26, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

Status: Bugfix

Development

Successfully merging this pull request may close these issues.

2 participants