简体   繁体   中英

How to change one Excel cell value using python and read a column values related to this cell with formula?

I should iterate the value of a cell in an Excel file, lets say A5 from 1 to 100

and for each value, I should read the values of a column like C1 to C10 that are related to the value of A5 by a formula.

I wanted to know, should I change the value in A5 and save and close the file and re open and read it or there is a better way to do so ?

尝试https://openpyxl.readthedocs.io/en/stable/我正在使用此模块,在我编辑另一个模块后不必关闭文件即可检查其他单元格。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM