-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 set the cell format ? #705
Comments
professorxin
changed the title
How can I set the cell format ?
How to set the cell format ?
Sep 18, 2020
You can set cell var style int
if style, err = f.NewStyle(&excelize.Style{NumFmt: 49}); err != nil {
fmt.Println(err)
return
}
if err = f.SetCellStyle("Sheet1", "A1", "A1", style); err != nil {
fmt.Println(err)
return
} |
How about to set the format to Numberic? What would be the numFmt value? I cannot find the doc on this from anywhere |
Sorry for my late reply, you can find more built-in number format mapping details in the documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cell format as example:
How to set the cell format to the text ?
The text was updated successfully, but these errors were encountered: