Feature request: allow cell errors to be ignored
See original GitHub issueI need to produce a spreadsheet where cells contain long numerical strings, representing object IDs.
If a value is added to the cell as an int
, precision is lost and the value is shown with scientific notation. Eg 12345678901234567890
is stored as 12345678901234500000
and is rendered as 1.23457E+19
.
If a value is added to the cell as a str
, then we avoid the precision problems, but Excel displays a warning about a number being stored as text.
My current workaround is to hack Worksheet._assemble_xml_file
so that it adds XML like the following:
<ignoredErrors>
<ignoredError sqref="A:A" numberStoredAsText="1"/>
<ignoredError sqref="D:D" numberStoredAsText="1"/>
</ignoredErrors>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Interest in ignore errors feature - Google Groups
The IgnoredError.sqref definition is wrong (sqref = CellRange, no call) and to fix that, you need to redeclare the class as the metaclass...
Read more >Power Query M Primer (Part 15): Error Handling | Ben Gribaudo
Suppose the expression defining a table column value errors for one cell out of the entire table. In an exception-based world, this error...
Read more >More on data validation - Microsoft Support
Excel ignores the data validation until you correct the error. Cells referenced in formulas are correct - If a referenced cell changes so...
Read more >Video: Input and error messages - Microsoft Support
To help people decide what drop-down list option to select, and even to let them know that a cell contains a drop-down list,...
Read more >How to Stop or Control Green Error Checking Markers in Excel
If a user has clicked the Smart Tag in a cell and selected Ignore Error for specific cells, this can be reset: In...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to let you know that I am working on this feature and it will be in the next release.
@Hugovdberg I have a function called
monkey_path_worksheet
:This changes the
_write_page_margins
method on the worksheet class so that it also adds theignoredErrors
element.I use it like this:
Does that help?