I am trying to find a library that overwrites an existing cell to change its contents using Python.
what I want to do:
- read from .xlsx file
- compare cell data determine if change is needed.
- change data in cell Eg. overwrite date in cell 'O2'
- save file.
I have tried the following libraries:
- xlsxwriter
- combination of:
- xlrd
- xlwt
- xlutils
- openpyxl
xlsxwriter only writes to a new excel sheet and file. combination: works to read from .xlsx but only writes to .xls openpyxl: reads from existing file but doesn't write to existing cells can only create new rows and cells, or can create entire new workbook
Any suggestions would greatly be appreciated. Other libraries? how to manipulate the libraries above to overwrite data in an existing file?