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

How to get 0 padded numbers #1401

Closed
rakima5192 opened this issue Nov 24, 2022 · 2 comments
Closed

How to get 0 padded numbers #1401

rakima5192 opened this issue Nov 24, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@rakima5192
Copy link

Hi!

image

image

use GetCellValuefunction.

read value is 1.
How can I get 001?

golang version: 1.19.1
excelize version: v2.6.1

Thanks

@xuri
Copy link
Member

xuri commented Nov 25, 2022

Thanks for your feedback. This issue is similar with #660. The custom number format parser still working in progress, and the library support apply a partial build-in number format. As the documentation of the GetCellValue function says, if the cell format can be applied to the value of a cell, the applied value will be returned, otherwise, the original value will be returned.

@xuri xuri added the duplicate This issue or pull request already exists label Nov 25, 2022
@xuri
Copy link
Member

xuri commented Dec 9, 2022

I closed this and merged it into issue #660. Please let me know if you have any questions to reopen this anytime.

@xuri xuri closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants