Dynamic Named Range Without a Table: An Easy Setup That Adds a 4th Insert

A dynamic named range grows with the data when the source can’t be turned into a table. Microsoft’s OFFSET function reference explains the arguments behind most dynamic ranges.

dynamic named range at a glance

In Excel, build a dynamic named range by fixing its top left cell and using INDEX to find its bottom right cell. Base the endpoint on the last occupied cell in a reliable record column, so the dynamic named range grows when you add an insert without changing the source sheet’s layout.

This is useful when a planner workbook has a merged title, a fixed supplier template or print settings you need to preserve. Keep the source as it is, use the name to feed a separate print sheet, and set the print area on that sheet. A dynamic named range that expands to include a fourth weekly insert doesn’t automatically give that insert a page.

Set up the dynamic named range before changing the print layout

  1. Mark where the records start and stop. Suppose the Insert Source sheet has a merged title in A1:F2, column headings in A5:F5 and records starting in A6:F6. Reserve A6:F2005 for records. That gives you 2,000 rows to work with without scanning entire columns. Leave the title and headings outside the name so a consumer formula receives only data rows.

    Check what sits below the records before choosing the limit. If a stock total or a manual note sits in A80, and column A is the record column, a search through row 2005 may treat that note as the last insert. End the search above the note or move the note outside the record column if the template allows it. If the source is editable and has one header row with no footer in the record block, turning the fixed range into an Excel Table is usually simpler. The dynamic named range is for the layout that has to stay put.

  2. Choose one column that proves a record exists. Use a field every real insert must have, such as Insert ID in column A. A missing note in column F shouldn’t affect the endpoint. If you use a date instead, check that the source doesn’t fill future dates down the template before those inserts are ready.

    Decide what blank means before writing the formula. A formula that returns "" should usually count as blank. A cell containing one space isn’t blank under the test below, and a numeric zero counts as occupied. If the record column contains imported values, inspect a few rows below the visible data before trusting the endpoint.

  3. Calculate the last occupied position in a helper cell. In desktop Excel for Microsoft 365 or Excel 2021 and later, put this formula in H2 on Insert Source. If H2 is part of the fixed template, use a spare cell on a control sheet and update the reference in the next step.

    =IFNA(XMATCH(TRUE,IFERROR($A$6:$A$2005<>"",FALSE),0,-1),0)
    

    XMATCH looks for an exact TRUE, searching from bottom to top because its final argument is -1. The result is a position within the search range, not a worksheet row number. If the last ID is in A10, the result is 5. If there are no IDs, the result is 0. The inner IFERROR makes error cells in the ID column ineligible, so inspect and repair any ID errors rather than treating them as valid records.

    If your desktop version doesn’t have XMATCH, use this formula in the same helper cell. It finds the last numeric position for which the ID test succeeds.

    =IFNA(LOOKUP(2,1/($A$6:$A$2005<>""),ROW($A$6:$A$2005)-ROW($A$6)+1),0)
    

    A count of occupied cells can give the wrong endpoint. With IDs in A6, A7 and A10, a count gives 3, which would end the range at row 8. A last position search gives 5, keeping row 10 in scope.

  4. Create the dynamic named range as a workbook name that returns a range reference. Open Formulas > Name Manager > New. Enter PlannerInserts for the name, choose Workbook for the scope and paste the following into Refers to:

    ='Insert Source'!$A$6:INDEX('Insert Source'!$F$6:$F$2005,MAX(1,'Insert Source'!$H$2))
    

    The colon joins the fixed start cell, A6, to the cell returned by INDEX in column F. When H2 is 5, that end cell is F10. The result is a reference to A6:F10, with all six fields kept together. Dollar signs keep the endpoints from shifting when you use the name on another sheet.

    When H2 is zero, MAX(1,...) keeps the name at A6:F6. Excel can’t return a range reference with zero rows, so use the zero in H2 as the empty state. Choose a workbook scope so a print sheet can refer to PlannerInserts directly. If that sheet already has a local name with the same spelling, resolve the worksheet and workbook name conflict before connecting the layout.

  5. Test the endpoint before connecting any print formulas. On a spare sheet, enter =ROWS(PlannerInserts) and =COLUMNS(PlannerInserts). With the last ID in A10, expect 5 and 6. Add a test ID in A11; the results should change to 6 and 6. Delete that test ID and confirm the height drops back to 5.

    Next, clear the ID in a middle row without removing the final ID. The range height should stay the same because the name describes one rectangle. To produce a compact record list, use a separate formula. In Excel versions with FILTER, put this in A2 on an empty Print Queue sheet:

    =FILTER(PlannerInserts,IFERROR(INDEX(PlannerInserts,0,1)<>"",FALSE),"")
    

    The 0 in INDEX returns the first column in full, so the filter keeps only rows with an ID. Leave room for the result to spill across six columns and down as records are added. In an older version without FILTER, use the dynamic named range as the input for your existing print layout, then select the IDs to print there. The dynamic named range itself won’t remove internal gaps.

  6. Set the print area around the output, not the source. If one record fills one designed insert, point that insert’s fields at a selected ID or queue row. Keep the border, date fields and punch allowance in a fixed page block. Use Page Layout > Print Area > Set Print Area on the sheet that holds that block, then check the page count in File > Print.

    If the output is a production checklist instead, select the current checklist before printing, or reset the print area after the list grows. A worksheet print area and the name PlannerInserts are separate settings. Before printing and assembling planner inserts, confirm the paper size and orientation, turn off any scaling that would change the finished dimensions, and print one proof at actual size. Measure the proof rather than relying on the preview.

Worked example: Add a fourth A5 weekly insert without changing the source

Worked example: Add a fourth A5 weekly insert without changing the source

A weekly planner workbook uses six fields: Insert ID, Week commencing, Layout, Paper size, Sides and Notes. The workbook has three A5 inserts ready to print. An unused row separates the first two records from the third because the source doubles as a manual planning sheet.

Source rowInsert IDWeek commencingLayoutPaper sizeSidesNotes
6W014 May 2026WeeklyA5SingleFirst proof
7W0211 May 2026WeeklyA5Single
8
9W0318 May 2026WeeklyA5Single
10
  1. Create and verify the dynamic named range. Enter the helper formula in H2, create the workbook name and enter the filter formula in Print Queue!A2. The helper reads 4 because A9 is the fourth cell starting at A6. The named range covers A6:F9, while the queue shows just three records in A2:F4. The blank notes for W02 and W03 don’t stop those records from appearing.

  2. Connect a fixed A5 layout to the queue. On a Weekly Insert sheet, use J2 outside the print area as the queue position. With 1 in J2, a date field inside the printable block can use the formula below. Format that field as a date, and use the same pattern with column 1 for the ID. Print only positions that exist in the queue and leave the print block unchanged between inserts.

    =INDEX('Print Queue'!$A$2#,$J$2,2)
    
  3. Add the fourth record and check which numbers change. Fill A10:F10 with W04, 25 May 2026, Weekly, A5, Single and any note you need. H2 changes to 5, and PlannerInserts expands to A6:F10. The queue expands to A2:F5 because it still skips source row 8. Set J2 to 4. The printable date should now show 25 May 2026, and the preview should still show one page. The fourth record changes the content of the page, not the size of the print job.

  4. Proof the size and binding edge before running the batch. Use A5 stock if the printer supports it, and select A5 in both Excel and the printer settings. At actual size, a 100 mm reference line on a proof should measure 100 mm. Check the printed writing area against the holes on an existing insert. If working from A4 stock, place the artwork and trim marks on an A4 layout with enough room for the printer’s margins. A4 is 210 × 297 mm, so two A5 panels at 148 × 210 mm leave only 1 mm along the 297 mm edge before allowing for trim marks or nonprintable margins.

  5. Print in queue order and assemble from the proof. For this single sided batch, set J2 to each position from 1 to 4 and print one copy. Lay the sheets out in date order before trimming, if needed. Punch one trimmed sheet first and put it in the binder to check that the holes don’t cut into the writing area. If a later batch uses two sided inserts, run one sheet with labelled fronts and backs first. Bound orientation on the proof matters more than the printer driver’s flip setting label.

Fix range errors before reprinting the batch

Fix range errors before reprinting the batch

The dynamic named range stops short of a new insert

Check H2 first. If a new ID in A11 leaves it at 5, look for an ID entered in the wrong column, a formula returning "" or an error in the ID cell. If the new record is in row 2006, it’s outside the planned capacity. Extend both the ID search range and the column F range inside the name to the same final row, then repeat the add and delete test.

If H2 changes but the displayed insert doesn’t, check the consumer. In the worked example, J2 still points to the same queue position until you change it. If a different sheet is using a fixed reference such as A2:F4, replace that reference with the intended name or spill reference rather than widening the source formula again.

The range reaches a footer or appears to keep empty records

Filter the ID column mentally from the bottom up: the first occupied value you find is the one the formula sees. A footer in A30, a copied space in A400 or a second heading in A22 can each extend the range. Remove stray values or cap the search above a fixed footer. If the template uses placeholders such as TBC in the ID column, use a separate ready field or make both the endpoint and queue tests exclude those placeholders.

If every ID has been removed, ROWS(PlannerInserts) still returns 1 by design. Treat H2=0 as the signal to stop before printing. If the Print Queue formula displays #SPILL! instead, inspect the cells below and to the right of A2 for typed values or merged cells. The queue needs open cells; the designed insert page doesn’t.

The queue is right but the pages are clipped, tiny or missing

A correct queue with a missing record in a printed checklist usually points to an old print area. Check the preview against the last expected ID, such as W04, and reset the print area if it ends at W03. If the layout prints one insert at a time, keep the fixed area and verify the selected position instead. Extending the print area in that case can add an unwanted blank page.

If a 100 mm line measures 96 mm, check scaling in Excel and in the printer driver before editing any cell widths. If the line measures 100 mm but an edge is clipped, move the artwork away from that edge or choose stock that gives it room. Commit the batch only after one proof passes all three checks: the expected record is on the page, the dimensions match the layout, and the punched sheet fits the binder.

Scroll to Top