Say I have an excel file called test.xlsx , which is a book with three sheets, where sheet1 is called hello1 , sheet2 two is called hello2 , and sheet3 is called bye .
Now I would like to read the file and then overwrite the same file, but ONLY change the values ββin the (column B, line 11) sheet named hello2 and (column D, line 14) the sheet named bye. The values ββI want to give are the "test" (string) and 135, respectively (that is, the write test in sheets hello2 and 14 in the sheet).
You might be wondering why I am asking such a strange question, but basically I want to get some of the following skills / knowledge:
- To be able to read a book and then a specific sheet of excel file using python
- To be able to write to an excel sheet at a given position using python
Note: for reference, I can use any version of python on the redhat server, the excel file was generated with my mac, saved as xlsx format using excel for mac 2011. version 14.0.1, and then I copied the excel file to the redhat server.
source share