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

Support cached formula string values #54

Conversation

Jaecen
Copy link

@Jaecen Jaecen commented Feb 11, 2015

I've added support for cached formula string values by handling them like inline strings. Additionally, I've modified inline string/cache formula string handling to not use the parsed double value, but instead take the cell value as a string.

I've added the Issue_53_Cached_Formula_String_Type unit test for this issue.

Note that this PR changed the behavior of one of the unit tests. Issue_11573_BlankValues read a value with a leading zero, then asserted it was a double. Since this was a formula cell that did a lookup on a text cell, Excel set the cell type a cached formula string value. The new behavior is that this should be read as a string. I modified the test to match the new behavior.

Fixes #53
Potentially addresses #47 and #31

Modify ExcelOpenXmlReader to treat "str" cell type the same as "inlineString".
Modify ExcelOpenXmlReader to use the original cell value converted to a string rather than the value parsed as a double.
Add unit test.
Modify the "Issue_11573_BlankValues" test to check for a string instead of a number since string formula values are no longer parsed as numbers.
@Jaecen
Copy link
Author

Jaecen commented Mar 23, 2015

Do you have any time frame on merging this PR and making a release? Or is there something I need to fix?

@Ian1971
Copy link
Collaborator

Ian1971 commented Mar 23, 2015

I haven't had any time to look into this yet as my paid project work is too
busy.

On Mon, Mar 23, 2015 at 4:20 PM, Jason Addington notifications@github.com
wrote:

Do you have any time frame on merging this PR and making a release? Or is
there something I need to fix?

Reply to this email directly or view it on GitHub
#54 (comment)
.

Ian Cox
C.T.O.

System Sync
m: Matrix Studios, 91 Peterborough Road, London, SW6 3BU
w: http://www.systemsyncsolutions.com
http://www.releasemobile.com/

Registered in England as systemsync solutions ltd.
Number: 9326325 VAT: 202729923

@andersnm andersnm closed this in 0fdd363 Jun 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cached formula string type ignored
2 participants