-
-
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
Need to get cell type or cell value type #417
Labels
enhancement
New feature or request
Comments
Also, some numbers in Excel can be stored as text by add ' before numbers.
GetCellType(sheet, "A1") |
no progress on this? |
Thanks for your issue, I have added a new API |
jenbonzhang
pushed a commit
to jenbonzhang/excelize
that referenced
this issue
Oct 22, 2023
…as been added
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
GetCellStyle() only gets the style index, which is integer, of a cell. And the style index can't be related to a certain cell format. I need to get the cell format, like general, date, time, percentage, number, text. Or cell value type like int, string, float64, bool. Since Excel stores date and time as int and float, date or time format can be return as float.
Describe the results you expected:
GetCellType(sheet, "A1")
string
GetCellType(sheet, "B1")
int
The text was updated successfully, but these errors were encountered: