Using Excel Formulas
Using Excel formulas in our Python code is easy!
When to use
Use this whenever you need to pass an Excel formula from your Python code to your Excel spreadsheet.
# Find the sum of the cells from B2 to B5
ws['B8'] = "=SUM(B2:B5)"
Hints & tips
- ws['B8'] = "=SUM(B2:B5)"
Lesson notes are only available for subscribers.