Repeating lists and table rows in Word templates
Contracts and letters often list things: parties, attorneys, deliverables, beneficiaries, line items. The number changes every time. Here is how to make a Word template handle any number of them.
Repeat a paragraph or bullet
{#deliverables}
• {title}: {description}, due {due_date}
{/deliverables}
Everything between {#deliverables} and {/deliverables} is written once per deliverable. In the questionnaire, the person drafting clicks Add deliverable as many times as needed, and each item has its own title, description and due date.
Repeat a table row
Put the opening tag at the start of the first cell of a row and the closing tag at the end of the last cell of the same row:
| Item | Quantity | Price |
|---|---|---|
{#items}{name} | {qty} | {price}{/items} |
The whole row repeats, so the table grows with the list and keeps your borders and shading.
Commas between names
To write "Ann, Ben and Cara"-style lists, use the built-in {_last} marker, which is true on the final item:
{#parties}{name}{^_last}, {/_last}{/parties}
{_index} gives the item number (1, 2, 3) and {_count} the total, which is useful for "Schedule {_index} of {_count}".
Optional details inside an item
Conditions work inside lists too: {#attorneys}{name}{#is_partner}, Partner{/is_partner}{/attorneys} asks a yes/no question for each attorney.
Totals
A computed field such as sum(items.price) adds up a column, and count(items) counts the rows. See logic and calculations.
The free statement of work and engagement letter templates both use repeating lists, if you want a working example.
More on automating Word templates
- How to automate a Word template without uploading it anywhere
- Conditional clauses in Word: include or remove paragraphs automatically
- Mail merge vs document automation: which one do you need?
- Client intake without a portal: collect answers by email, privately
- Choosing document software when client confidentiality matters: a checklist
All guides
NDAs and restrictive covenants
- What to include in an NDA: a clause-by-clause checklist
- Mutual vs one-way NDA: which one do you need?
- How long should an NDA last? Typical terms explained
- NDA vs confidentiality agreement: is there a difference?
- Non-compete vs non-solicitation agreement: the difference
- Are non-compete agreements enforceable? The rules in 2026
Hiring and HR letters
- How to write a job offer letter (with a free template)
- How to write a warning letter to an employee (free template)
- How to write a termination letter (with a free template)
- How to write a two weeks notice letter (free template)
- How to write a job description that attracts the right people
- What to include in a severance agreement
- How to write a performance improvement plan (PIP) that works
- How to write a remote work agreement (free template)
Freelancing and getting paid
- How to write a freelance contract: 10 clauses that prevent disputes
- What to include in a statement of work (SOW)
- Quote vs estimate vs invoice: what is the difference?
- How to write an invoice: what to include and how to number it
- What is a kill fee? How to set one in a freelance contract
- What to do when a client won't pay: a step-by-step plan
- How to write a demand letter for unpaid invoices
- What is a change order? How to handle scope changes
- What is a credit note? When to issue one, what it must say
Landlords and tenants
- What to include in a residential lease agreement
- What to include in a roommate agreement (free template)
- How to write a rent increase letter: notice and wording
- How to write a notice to vacate letter
- How to return a security deposit: deadlines and deductions
- Renting a room in your home: what the agreement should say
- How to set up a rent payment plan with a tenant
Business deals, money and releases
- Is an MOU legally binding? How it differs from a contract
- What to include in a partnership agreement: 10 key terms
- How to write a bill of sale, with a free template
- How to lend money to family or friends, in writing
- How to write a gift letter for a mortgage
- Are liability waivers enforceable? What makes one hold up
- What is a hold harmless agreement? Types, examples and limits
- When do you need a model release? A plain guide
- How to terminate a contract: notice, cause and the letter
- How does consignment work? Commission, payouts and risk