-
-
Save wellington1993/536a4231b895b2aa319a73f935d0d4fe to your computer and use it in GitHub Desktop.
Spreadsheet: wrong value from formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#encoding: utf-8 | |
require 'spreadsheet' | |
xls_file_name = "/tmp/status_data.xls" | |
xls_book = Spreadsheet.open(xls_file_name, "rb") | |
xls_book.worksheet(0).each do |row| | |
puts row[6].value if row[6] and row[6].is_a?(Spreadsheet::Formula) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment