Openpyxl-read formulas results (Python 2.7)

前端 未结 1 575
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 01:16

I am using openpyxl to read from an excel file. I am trying to read a cell whose value is calculated by a formula.

Regular reading functions returns formula script:<

相关标签:
1条回答
  • 2020-12-12 02:00
    wb = openpyxl.load_workbook('forecast.xlsx', data_only=True)
    

    Will read the actual value. (From what you have posted, I think you miss a comma that separates the arguments)

    0 讨论(0)
提交回复
热议问题