openpyxl does not provide support for many automation operations in Excel. For example, when inserting or deleting rows and columns, formulas in Excel are affected. openpyxl does not have methods like sorting, which are supported in Excel. This library provides support for these operations.
Formulas are not automatically adjusted, calculation may be incorrect.

Formulas are automatically adjusted like Excel.

pip install openpyxl_autofill
from openpyxl import load_workbook
import openpyxl_autofill
openpyxl_autofill.enable_all()
wb = load_workbook(...)
ws = wb.active
ws.insert_rows(...)
...
Sorts cells in a given range
Includes insert_rows and insert_cols, which automatically adjust formulas, merged cells, and tables when inserting rows and columns
Includes delete_rows and delete_cols, which automatically adjust formulas, merged cells, and tables when deleting rows and columns
Support formulas across sheets when inserting or deleting rows and columns Support adjustment of columns with formulas when sorting, by calculating formulas first before sorting
