Python Write Excel xlsx File with Formula Cells using OpenPyXL In this Python openpyxl tutorial we learn how to write Excel xlsx files with formula cells using the openpyxl package.