I've tried a few methods, including pandas
:
df = pd.read_excel('file.xlsx')
df.to_csv('file.csv')
But every time I convert my xlsx
file over to csv
format, I lose all data within columns that include a formula. I have a formula that concatenates values from two other cells + '@domain' to create user emails, but this entire column returns blank in the csv
product.
The formula is basically this:
=CONCATENATE(B2,".",E2,"@domain")
The conversion is part of a larger code workflow, but it won't work if this column is left blank. The only thing I've tried that worked was this API, but I'd rather not pay a subscription if this can be done locally on the machine.
Any ideas? I'll try whatever you throw at me - bear in mind I'm new to this, but I will do my best!