Choose the report shape once
A budget sheet with one month per column is convenient to enter and awkward to summarize repeatedly. Build a reusable transformation into Department, Period and BudgetAmount rows. The useful automation is the repeatable shape change: a reviewer still decides which periods and departments belong in the report. Do not make an AI model guess what an unfamiliar heading means.
Microsoft explains unpivoting columns into rows. In this proposed setup, the finance owner approves the period naming rule and a list of descriptive columns. Keep the original workbook untouched; load the transformed result into a separate table.
Write an explicit column contract
- Give each department a stable ID. Keep a separate display name if the business may rename departments.
- Use one agreed period format, such as 2026-01. Put commentary in a named Notes column, not in a month cell.
- Create a period map with source heading, reporting month and inclusion decision. Require an exact approved match before treating a column as money.
- In Power Query, retain the department fields and accepted period columns, then unpivot the period columns. Rename Attribute to Period and Value to BudgetAmount.
- Convert amounts using the agreed locale. Load unexpected headers and failed conversions into a review table instead of coercing them into the report.
If you automate the discovery of new months, validate that a heading represents a real month and record the newly included period. A name merely containing four digits is not a sufficient rule.
Rehearse the six-row and eight-row results
Use this synthetic input. The figures are invented to make the expected output easy to check; no live spreadsheet connection has been exercised here.
| Department | 2026-01 | 2026-02 | 2026-03 |
|---|---|---|---|
| OPS | 100 | 110 | 120 |
| ADMIN | 50 | 60 | 70 |
The output is OPS/2026-01/100, OPS/2026-02/110, OPS/2026-03/120, ADMIN/2026-01/50, ADMIN/2026-02/60 and ADMIN/2026-03/70. That is six rows totaling $510: OPS $330 and ADMIN $180.
Add 2026-04 with OPS $130 and ADMIN $80, plus a Notes column saying “revised” for each department. Accept the April heading into the period map. Expect eight budget rows and $720 total; Notes contributes no budget rows or amount.
Decide what blank and invalid amounts mean
A blank can mean missing work, an intentionally empty period or zero allocation. Agree that meaning before transforming the file. For this pilot, require every included department-period pair to have an explicit numeric value, including an explicit zero where intended. A missing pair is reported as incomplete rather than quietly disappearing.
Power Query makes conversion errors inspectable. Put “pending” in one test amount and ensure the reviewer gets the source row, heading and value. Do not replace the error with zero. Also reject two source headings that map to the same department-period combination unless the finance owner has defined an aggregation rule.
Keep the monthly acceptance check small
For each refresh, compare source and output totals by department and period, count the expected pairs and inspect newly discovered headings. Reordering source columns must not change the result. Adding an unapproved “Forecast” column must produce a review item, not a new reporting month. Keep a dated copy of the period map with the approved output.
This is a proposed Power Query deployment recipe, with tenant access and refresh arrangements still to test in your environment. If the recurring burden extends beyond reshaping to retrieving files or handing reports to reviewers, describe that boundary in a scoped ParseMill workflow review. The general spreadsheet connection is separate from ParseMill’s existing invoice extraction and export.
Assisted setup with ParseMill
Put one spreadsheet workflow into practice
Share the shape of the input, the expected output and how often the work repeats. We can assess a bounded implementation with row checks, exceptions and a handover your team can use.
Discuss this deploymentDescribe your tools, the repeated task, its frequency and the result you need. We agree the scope and any fee before starting. Third-party connections need their own fit assessment; sending a request does not activate an integration.
For supplier invoice PDFs, try the invoice-to-Excel example to see ParseMill’s extraction, source review and workbook export.
Sources and editorial notes
- Microsoft: Unpivot columnsChecked 2026-11-09
- Microsoft: Power Query errorsChecked 2026-11-09
Written by ParseMill. Worked examples are illustrative process examples, not customer results. Software availability can vary by subscription and region; check the linked documentation for your account. Review decisions and approvals remain with your team.