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

Add support for text formula cells. - Prevent "Cannot get a numeric value from a text formula cell" #31

Closed
wants to merge 1 commit into from

Conversation

rakhra
Copy link

@rakhra rakhra commented Mar 9, 2015

Evaluate formula cell prior to date formatted check to prevent "Cannot get a numeric value from a text formula cell" exception.

The modification is in speadsheet.clj. The formulae integration test has been updated to check for text formulas.

The read-cell multi method for Cell/CELL_TYPE_FORMULA has been modified to first evaluate the formula, then inspect the type of the CellValue object returned and determine whether a date is present else boolean, number or string.

Evaluate formula cell prior to date formatted check to prevent "Cannot get a numeric value from a text formula cell" exception.
@ducky427
Copy link

+1

@mjul
Copy link
Owner

mjul commented Mar 23, 2015

Thanks a lot for the contribution, it was accepted with issue #33

@mjul mjul closed this in 2b6f73a Mar 23, 2015
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.

3 participants