Unpivot Month Columns Into Date-and-Amount Rows: An Easy 3-Month Example

Want to unpivot month columns without retyping a single figure? Here’s how it works. In Excel Power Query, keep the columns that identify each record, then unpivot month columns into a Month column and an Amount column. Once you unpivot month columns, convert each month label to a real date, such as 1 January 2027, so the same output can drive monthly totals and printable planner inserts without retyping figures.

If you’re printing and assembling planner inserts, use the spreadsheet for the figures and a separate page layout for the binder. You can print the figures as their own insert or place them behind a ready-made divider or calendar. Check the binding before choosing a companion refill: letter 11-disc, letter 7/3-hole, Forvencer A5 monthly, A5 project planning and Beautiful six-ring monthly are different formats, not interchangeable page sizes.

How to unpivot month columns, step by step

  1. Define what one output row represents. For a budget insert, that might be one amount per budget line per month. Keep a stable identifier such as Line ID as well as the description you want to print. If two departments both have a line called Supplies, keep Department too. For a folder of exports, retain the source filename on every row so you can trace a figure back to the file that supplied it.

    Decide whether recurring files contain new records or revised copies of the same plan. Stacking a February revision beneath the January version can double-count January if both files contain that month. Use the difference between appending records and merging by identifier to choose the right operation, and keep the reporting version if you need both snapshots.

  2. Make the month headings unambiguous so you can unpivot month columns safely. Use a single header row with labels such as 2027-01, 2027-02 and 2027-03. Jan on its own can’t distinguish one year from another. If the year comes from the filename or a report field, verify that it applies to each month before using it. A report running from November to February needs two calendar years.

    Before you unpivot month columns, remove subtotal rows and keep columns such as Annual Total out of the month set. A total of £245 is a useful control figure, but it isn’t a fourth month. In Excel, format the source range as a table, then open it with Data > From Table/Range. Check the table boundary: Power Query can’t pick up a new month column that sits outside the source table.

  3. Unpivot month columns. To unpivot month columns when the query contains only identifiers and month columns, select the identifiers, then choose Transform > Unpivot Columns > Unpivot Other Columns. Power Query keeps the identifiers and puts the remaining column names in Attribute and their values in Value. Rename those two output columns Month key and Amount.

    Choose the command to match the export. Unpivot Other Columns makes sense when you unpivot month columns that keep growing and all other retained columns are known identifiers. If the source also gains fields such as Notes or Variance, select the month columns themselves and choose Unpivot Columns, or add a rule upstream that keeps only verified month headers and the identifiers. A manually selected month list is safer against stray fields, but you’ll need to update it when a new month arrives.

  4. Convert the month key to a date and the amount to a number. In Add Column > Custom Column, name the new column Month and use this expression for yyyy-MM headers:

    Date.FromText([Month key] & "-01", [Format = "yyyy-MM-dd", Culture = "en-GB"])
    

    Set Month to the Date type. The first day of the month is a reporting key, not a payment date. Keep Month key while testing so you can trace parsing errors, then remove it from the worksheet output if it serves no reporting purpose. Display the real date as mmm yyyy in Excel rather than converting it back to text.

    Set Amount to an appropriate numeric type, such as Fixed Decimal Number for currency. If the export stores amounts as text, use Change Type > Using Locale and pick the locale of the source. A value written as 1.234,50 needs a locale that treats the comma as the decimal separator. Flag conversion errors for review rather than replacing them with zero.

  5. Reconcile the long table before loading it. Power Query unpivoting omits null values, but it retains numeric zeros. Decide whether a blank means “not entered” or “no amount”. If it means “not entered”, don’t fill it with zero simply to produce a complete grid. If the planner needs a line for every month, build that grid separately or retain a missing-value flag so a blank and a confirmed zero remain distinguishable.

    Compare the output row count with the number of populated source month cells, then compare sums by month, not just the grand total. A February amount filed under March can leave the total unchanged. For a combined export, check row counts and control totals by source file before using the figures in the planner. Load the checked query to a worksheet table with Close & Load.

  6. Create a separate print sheet. Keep the query output as the data table and use a separate sheet for the page people will handle. For a monthly budget insert, pull in one month’s detail rows, show the month and currency at the top, and give descriptions enough width to wrap without covering the amounts. A PivotTable can produce a monthly summary, but if the insert needs each line, use the detail rows or include the line identifier so equal descriptions aren’t collapsed into one total.

    Set the paper size and orientation before setting the print area. For a full-size insert, match the page setup to the stock, such as 8.5 × 11 inches for US Letter. For A5, use A5 page setup if the printer supports the stock. If you’re cutting inserts from a larger sheet, use a print layout with the finished page dimensions and verify the printed size with a ruler. Don’t assume a printer’s “two pages per sheet” setting preserves those dimensions.

  7. Print one proof, then trim and punch it. Leave a binding margin based on an insert that already fits the binder. On a double-sided layout, that margin belongs on opposite sides of the front and back when each is viewed upright. For an upright portrait insert that turns like a book, start with long-edge duplex on a portrait sheet. If the layout places inserts sideways on a larger sheet, test the flip setting on the imposed sheet instead of assuming it stays the same.

    Export the print sheet to PDF and print at Actual size or 100% when the PDF page already matches the intended layout. Check that the printer’s non-printable margins don’t clip the edges. For cut-down pages, trim first and punch second, then put the proof into the binder. Turn the page to check that the back is upright and that the holes don’t eat into text, figures or writing space.

Worked example: From a three-month export to a February A5 insert

This sample budget export has two lines and three month columns, enough to show how to unpivot month columns. The blank in February means the software figure hasn’t been entered. The March postage zero is a confirmed amount.

Line IDBudget line2027-012027-022027-03
OPS01Software8085
OPS02Postage30500

Turn the range into an Excel table and open it in Power Query. Select Line ID and Budget line, then unpivot the other columns. That’s how you unpivot month columns without naming each one. Rename Attribute and Value, add the Month date with the expression above, and set the numeric type for Amount. After sorting by month and line ID, the result is:

MonthLine IDBudget lineAmount
1 Jan 2027OPS01Software80
1 Jan 2027OPS02Postage30
1 Feb 2027OPS02Postage50
1 Mar 2027OPS01Software85
1 Mar 2027OPS02Postage0

The six source month cells produce five rows because one cell is blank. January totals £110, February £50 and March £85, for a grand total of £245. March still has two records. If its postage row disappears, look for a filter that excludes zeros, even though the March total still looks right.

On the print sheet, set the month selector to the real date 1 February 2027 and display it as February 2027. Pull in the February detail and label the total Recorded amount: £50. If the insert is meant to show what still needs entering, add a status line for OPS01 marked Not entered. That status comes from the source roster or a missing-value report. The unpivoted February rows alone can’t tell you which line is absent.

Set the finished page to A5, 148 × 210 mm, and keep the figure column away from the binding edge. If the reverse is a notes page, put a small February label on the back of the proof so an upside-down print is easy to spot. Print one sheet, measure it, punch it against a known fitting insert, and turn it in the binder. Only then send January and March to print.

Fixes for missing months, incorrect totals and misaligned pages

A new month doesn’t appear after refresh

Check the source table boundary first, then look at the query step immediately before the unpivot. A Choose Columns step can discard 2027-04 before Unpivot Other Columns sees it. If the export changed Line ID to Budget ID, an earlier type or column-selection step may fail. Find the first step affected by a renamed or removed field rather than rebuilding the print sheet.

Refresh succeeds but the insert shows old or repeated figures

Check the loaded table before looking at the print layout. If the new rows are there, the print sheet may point to a fixed range or a PivotTable that still needs refreshing. If the rows are already repeated in the loaded table, group by the expected key, such as reporting version, Line ID and Month, and inspect keys that occur more than once. Don’t remove duplicates until you know whether they’re repeated exports or separate records with an incomplete key.

Dates sort alphabetically or appear in the wrong year

A heading like Apr 2027 can look right on paper while still being text. Check the Power Query data type and sort the worksheet by the real Month field. If December and January fall in the wrong order, inspect the year assignment rather than changing the formatting. A date format can hide the day or shorten the year, but it can’t correct the underlying date.

The back is upside down or the punch cuts through figures

An upside-down back points to the duplex flip setting or to the orientation of pages on a larger sheet. Print a two-page test with TOP visible on both sides and change one setting at a time. If both faces are upright but the holes clip the figures, change the binding margin on the print sheet. Shrinking the entire page to move one column can make everything harder to read without fixing alignment after trimming.

Choose a companion refill by binding pattern

Use the following listings as reference points if the printed amount sheet will sit behind a calendar or project page. The prices and ratings shown are the supplied listing figures. Match the finished dimensions and hole pattern against a page from the actual binder, especially when the listing title gives the ring count but no page dimensions.

Companion insertListed price and ratingFit check
2027 to 2028 monthly planner refill for 11-disc binders 2027 to 2028 11-disc monthly refill$11.99, 4.618 monthly calendars, 8.5 × 11 inches. Match the disc pattern rather than using a ring punch.
2027 to 2028 monthly planner refill with 7/3-hole pattern 2027 to 2028 7/3-hole monthly refill$11.99, 4.618 monthly calendars, 8.5 × 11 inches. Check which holes align with the existing rings.
Forvencer A5 monthly planner refills for 2027 Forvencer 2027 A5 monthly refills$11.99, 4.8A5 with six holes. Compare both the page size and hole spacing before punching the amount sheet.
A5 double-sided project planning inserts A5 six-hole project planner inserts$9.99, 3.9100 sheets and 200 pages. A companion for project figures that need to sit beside tasks, milestones or deadlines.
Beautiful 2027 to 2028 monthly planner inserts for six-ring binders Beautiful 2027 to 2028 six-ring monthly inserts$5.69, 4.8The listing title specifies six rings. Confirm the dimensions and spacing rather than assuming six rings means A5.

Keep one approved proof beside the punch. On the next refresh, compare the new month’s total with the export, then lay the first printed sheet over the proof. Print the batch only when the figures reconcile and the trim edges and binding holes line up.

Scroll to Top