I am reading from a file like this in openpyxl
:
import openpyxl
from pathlib import WindowsPath
p = WindowsPath(r'.\data\product_version.xlsx')
if p.exists():
wb = openpyxl.load_workbook(p)
ws = wb.active
for row in ws.iter_rows(values_only=True):
print(row)
This should return values only and indeed it does for some columns , while others that are basically excel functions return the function as a value.
('WTX84', 'TX', '=MID(A338,1,3)', 'Yes', 'Yes', 258979, 255980)
('WTX90', 'TX', '=MID(A339,1,3)', 'Yes', 'Yes', 258979, 11572174)
I want the value =MID(A338,1,3)
from this.