OpsBench AI Tell us your problem
3 min read Automation, Excel

How to automate a weekly Excel report (from easy wins to fully hands-off)

Four levels of automating a recurring Excel report, from Power Query refresh to a scheduled job that downloads the data, builds the workbook and emails it, with the checks each level needs.

In short: most weekly reports can be automated in steps. First, stop retyping: connect the workbook to the source files with Power Query so one Refresh rebuilds it. Next, standardize where the source files land. Then schedule the refresh and the email. Finally, automate the download from the source system itself. Add a check at every level so a bad week is flagged instead of sent.

Level 1: refresh instead of rebuild

If someone copies data into the report each week, replace the copying with Power Query (Data > Get Data):

  1. Point a query at the source: a CSV export, a folder of files, another workbook or a database.
  2. Clean it once in the query editor (remove columns, fix dates, filter rows).
  3. Load it to a table; build the report's formulas and pivots on that table.
  4. Next week: drop in the new file and click Data > Refresh All.

Using From Folder is especially useful: put each week's export in one folder and the query combines them all.

Level 2: make the inputs predictable

Automation breaks when inputs vary. Agree on:

  • one folder where exports are saved,
  • one file name pattern (2026-12-21 Sales.csv),
  • the same export settings every time (columns, date range, format).

Write this down as a short procedure; what to include in an SOP has a template.

Level 3: schedule the refresh and the email

A scheduled task can open the workbook, refresh it, save a dated copy and email it. The pattern is the same as in how to schedule an Excel macro: a small macro does ThisWorkbook.RefreshAll, waits for queries to finish, saves, and sends the email; Task Scheduler runs it every Monday at 7:00.

Level 4: automate the download too

The remaining manual step is usually signing in to a website and exporting the data. That can be automated with the system's API if it has one, with scheduled exports the system emails you, or with a browser automation that signs in and downloads the report. This is the most fragile level: websites change, sign-ins add security steps. It needs monitoring and upkeep.

This is the kind of work we build and run at OpsBench AI: download, build, check and deliver, kept working when the source changes.

Add checks at every level

A report that runs on its own needs to notice when something is wrong:

  • Row counts: this week's data has a sensible number of rows.
  • Dates: the data covers the expected week, not last week again.
  • Totals: the report's total matches a total from the source.
  • Blanks: key columns aren't empty.

If a check fails, send an alert instead of the report.

Frequently asked questions

Do I need macros to automate an Excel report?

Not for refreshing data: Power Query does that without code. Macros (or a script) are needed to schedule the refresh, save copies and send emails without anyone opening the file.

Can Excel refresh automatically on a schedule?

Excel can refresh when a file is opened or every few minutes while it's open. To refresh at a set time with nobody there, use a scheduled task that opens Excel and runs the refresh.

What if the source system has no export?

Look for a scheduled email report, an API, or a print-to-PDF option. Failing those, browser automation can download what a person would. Each is more work to keep running.

How do I stop a bad report from going out?

Add checks on row counts, dates and totals before sending, and send an alert instead of the report when a check fails.

More from the blog
  1. How to schedule an Excel macro to run automatically (and what breaks)

    Run an Excel VBA macro on a schedule with Windows Task Scheduler and a small script, the settings that matter, and the problems that stop unattended Excel runs.

  2. Running real Excel VBA macros in the cloud (without rewriting them)

    How I made a bookkeeping team's own VBA macro run unattended on a cloud Windows VM that starts when there's work and switches itself off after: the setup and the problems that took longest to fix.

  3. How to automate daily POS sales reports for restaurants and multi-store businesses

    Stop downloading the same point-of-sale report for every store every morning: what can be automated, how a hands-off daily sales report works, and the checks that keep it reliable.

Have work your team repeats every week? / Tell us about it.

Tell us your problem