2
Hey, guys, what’s up? First time around. I have a spreadsheet in excel with several formulas, and I wanted my python code to take for me only the result of these formulas, and not the formula itself, example:
import openpyxl
ficha=str(input("Informe o nome da ficha: "))
wb = openpyxl.load_workbook(ficha+'.xlsx')
NH=wb["PERÍCIAS"]['D4'].value
print(NH)
And in the print result, we have:
=IF(E4 ="DX",ATTRIBUTES! B5+F4,IF(E4="IQ",ATTRIBUTES! B7+F4,IF(E4="ST",ATTRIBUTES! B3+F4,IF(E4="HT",ATTRIBUTES! B9+F4,""))))
It gives me what I wrote in the excel cell, the formula, rather than a simple "12" which is the result of this kkkk account. Is it possible to do what I want? Thank you in advance.