Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number format not aplying to formula cells #61

Open
BorjaRRR opened this issue Aug 30, 2024 · 1 comment
Open

Number format not aplying to formula cells #61

BorjaRRR opened this issue Aug 30, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@BorjaRRR
Copy link

When initialize number mask with ExcelGen.setnumformat aplies to all number cells except formulas

@mbleron
Copy link
Owner

mbleron commented Aug 31, 2024

Yes, it's a current limitation with formula cells.
ExcelGen parses formulas but doesn't evaluate them, therefore it doesn't know the resulting data type in order to apply the default styling accordingly. I'll document this behaviour for clarification.
I may try to implement a detection algorithm based on the parse-tree root operand/operator, so I'll keep this open as an enhancement.
In the meantime, the obvious workaround is to style formula cells individually, or through ranges, columns etc.

@mbleron mbleron added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants