Код: Выделить всё
A1 = 200
A2 = 300
A3 = =SUM(A1:A2)
Код Python из оболочки:
Код: Выделить всё
wb = openpyxl.load_workbook('writeFormula.xlsx', data_only = True)
sheet = wb.active
sheet['A3']
# python response
print(sheet['A3'].value)
None # python response
Код: Выделить всё
wb2 = openpyxl.load_workbook('writeFormula.xlsx')
sheet2 = wb2.active
sheet2['A3'].value
'=SUM(A1:A2)' # python response
Подробнее здесь: https://stackoverflow.com/questions/361 ... rning-none
Мобильная версия