Skip to content

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

Closed
rakhra wants to merge 1 commit into
mjul:masterfrom
rakhra:master
Closed

Add support for text formula cells. - Prevent "Cannot get a numeric value from a text formula cell"#31
rakhra wants to merge 1 commit into
mjul:masterfrom
rakhra:master

Conversation

@rakhra
Copy link
Copy Markdown

@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
Copy Markdown

+1

@mjul
Copy link
Copy Markdown
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