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

Missing error value: #ERROR! #558

Open
aclarembeau opened this issue Mar 17, 2021 · 1 comment
Open

Missing error value: #ERROR! #558

aclarembeau opened this issue Mar 17, 2021 · 1 comment

Comments

@aclarembeau
Copy link

Steps to reproduce

Read a sheet with a cell that contains =#error!

Issue

While using the Roo gem, we've remarked that some Excel sheet may contain cells with the #ERROR! value.
We've been patching that with the following code:

module Roo
  class Excelx < Roo::Base
    ERROR_VALUES = %w(#N/A #REF! #NAME? #DIV/0! #NULL! #VALUE! #NUM! #ERROR!).to_set
  end
end

I think that would be good to add it to this official repo.

System configuration

Roo version:

Ruby version:

@nicpillinger
Copy link

+1 same problem here - #ERROR! just causes reading a sheet to bomb out with

invalid value for Integer(): "#ERROR!"

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

No branches or pull requests

2 participants