-
-
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
Cell values with underscore surrounded by numbers not able to be read (ex: 123_4567) #1219
Comments
Small update: As a work around I was trying to use the This is how I'm passing options: I replaced line 66 in cell.go from: and line 132 in rows.go from: I don't know of any unintentional side effects of this change but it works for getting those underscore values to be read: I'm not familiar enough with the codebase yet to understand what may be going wrong with trying to parse the original values but I'll keep looking. |
Thanks for your issue, I have fixed it. Please upgrade to the master branch code, and this patch will be released in the next version. |
…formance, and 1904 date system support - Fix incorrect cell data types casting results when number formatting - Support set cell value on 1904 date system enabled, ref qax-os#1212 - Improve performance for set sheet row and the merging cells, fix performance impact when resolving qax-os#1129
…formance, and 1904 date system support - Fix incorrect cell data types casting results when number formatting - Support set cell value on 1904 date system enabled, ref qax-os#1212 - Improve performance for set sheet row and the merging cells, fix performance impact when resolving qax-os#1129
…formance, and 1904 date system support - Fix incorrect cell data types casting results when number formatting - Support set cell value on 1904 date system enabled, ref qax-os#1212 - Improve performance for set sheet row and the merging cells, fix performance impact when resolving qax-os#1129
Description
I'm trying to read in data from an .xlsx and it seems like excelize has a problem reading in cell value data when the data in the cell is in the format of "[NUMBERS]_[NUMBERS]". I've not been able to find a fix.
Steps to reproduce the issue:
The data I'm working with is sensitive so I made a dummy .xlsx which I also attached:
sample2.xlsx (A column has no special formatting)
I made the A column show a few different examples of underscores in the cells.
Here is my code:
Describe the results you received:
You can see that it is detecting and reading in the A column just fine except for where there is an underscore surrounded by numbers in the second row (A2). The results are the same when using GetCellValue().
In the debugger it is just an empty string "". Here are second and third rows from debugger:
Describe the results you expected:
I expect a cell with "[NUMBERS_NUMBERS]" (ex 1888_257) to be read into the []string that GetRows()/GetCellValue() returns.
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
I'm on windows working specifically with .xlsx format files.
The text was updated successfully, but these errors were encountered: