Automate Excel with Python: A Practical Guide for Nonprogrammers

John Wengler

New New
Book cover for Automate Excel with Python: A Practical Guide for Nonprogrammers
Image for variant 9781718504646
Book cover for Automate Excel with Python: A Practical Guide for Nonprogrammers
Image for variant 9781718504646

Automate Excel with Python: A Practical Guide for Nonprogrammers

Automate Excel with Python: A Practical Guide for Nonprogrammers

John Wengler

View full details

Description

AI can write the code. You still need to know what it does.

You're already good at Excel. But you're tired of the copy/paste, the helper columns, and the brittle formulas that break when someone adds a row. You want automation, and whether you write the code yourself or let AI generate it, you need to understand what's actually running your business processes.

Automate Excel with Python teaches you to build real workflows, step-by-step. You'll read messy workbooks into pandas dataframes, filter and reshape data without helper columns, merge sources without silent VLOOKUP failures, and export polished results with formatting intact. A capstone chapter ties it together: import a multi-tab workbook, generate exception reports, and email the results--all from one script you run with a single click.

You'll learn how to:
  • Read existing Excel files you already use into Python, even the messy ones
  • Replace daily copy/paste routines with reusable scripts
  • Merge and match data across sources with auditable results
  • Handle dates, times, and the edge cases that break formulas
  • Export from Python to Excel with column widths, number formats, and frozen panes intact
  • Build workflows that run daily without babysitting

AI can write the code. This book makes sure you're the one in control of it.

About the Author

John Wengler taught himself Python to automate a spreadsheet process and solve a "million-dollar problem" at work. He is the author of Managing Energy Risk and has taught at the Illinois Institute of Technology and Tulane University.

Publishing Information

Publisher: No Starch Press
Pub date: 2026-05-19
Length: 272 pages

The Allstora Membership

Membership Perks:

  • Save 30% on all online store purchases
  • Exclusive access to author's content
  • You pay less, but authors still earn double

Membership Terms:

First Month: $0.00
Monthly price: $5.00
  • To access membership discount simply log in and add to cart, discount applied automatically.
  • One month free trial, cancel anytime. Membership renews on the 15th of each month.