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 compatibility #1847

Closed
Yiling-J opened this issue Mar 14, 2024 · 1 comment · Fixed by #1852
Closed

Number format compatibility #1847

Yiling-J opened this issue Mar 14, 2024 · 1 comment · Fixed by #1852
Labels
enhancement New feature or request

Comments

@Yiling-J
Copy link

Some of my tests failed using google sheets built-in format code, here are the test cases, the expected results are copy from google sheets but I also check Excel web, results are same:

{"43543.5448726851", "General", "43543.54487"}, // actual  : "43543.5448726851"
{
	"43543.5448726851",
	`_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)`,
	"$ 43,543.54 ",
}, // actual  : "$43,543.54"
@xuri xuri added the enhancement New feature or request label Mar 14, 2024
lizhichao added a commit to lizhichao/excelize that referenced this issue Mar 18, 2024
xuri pushed a commit that referenced this issue Mar 19, 2024
- Update dependencies module
- Update unit tests
@xuri
Copy link
Member

xuri commented Mar 19, 2024

Thanks for your issue. This issue has been resolved. Please upgrade the master branch code by go get -u github.com/xuri/excelize/v2@master, and these changes will be released in the next version. Note that the number format repeat control character (*) will be ignored in the formatted result, this behavior was the same when you copied cell value with the same number format in the spreadsheet apps, so the formatted result of number 43543.5448726851 should be " $43,543.54 ".

@xuri xuri moved this to Improve the Compatibility in Excelize v2.9.0 Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Improve the Compatibility
Development

Successfully merging a pull request may close this issue.

2 participants