Relative Content

Tag Archive for pythonopenpyxl

openpyxl delete_rows doesn’t completely remove rows if row height is set

Any suggestions? If I ever the row height in openpyxl, delete_rows will appear to remove the rows, but when I save and open in Excel, the rows are empty but not all row information is removed. The scroll bar still scrolls to where the last row was prior to deleting. So “ghosts” of the empty rows remain. Sample code:

Python 3: how to make a list from array in openpyxl

I’m new to openpyxl and already stuck with a problem. Also English is not my native language so sorry for mistakes. I have an excel file and need to get data from rows and columns and make a json text from it. I use openpyxl for my own reasons and another library won’t do for me.

Openpyxl how to evaluate formula

I have this code where i want to take the value in the cell and use it in a function. But the problem is there is a formula in said cell. How would I evaluate the cell to get the value and not the formula.
ws[cell2] = f"{Func(ws[cell1].value)}
So cell 1 has a formula in it and i want to have the value that, that cell returns for example. =D1/F1 I want the value not the formula back.