What to do next
- Load the exported TXT in InDesign: in the Data Merge panel, choose Select Data Source.
- Make a page the size of one press sheet, put a text frame for the number at each position, and insert the fields A1, B1 and so on.
- Merge with one record per page (Single Record).
- Before printing, check the first few sheets and the last one against the "Numbers by position" table.
What cut-and-stack numbering is
When you print numbered pieces several up on a sheet, cut-and-stack puts the numbers in an order where you only have to cut the sheets and stack the piles to get the numbers in sequence.
Say you print numbers 1 to 1000, 4 up. Sheet 1 gets 1, 251, 501 and 751; sheet 2 gets 2, 252, 502 and 752, and so on. Print 250 sheets and cut them, and pile A holds 1–250 and pile B holds 251–500, so stacking A, B, C and D in that order gives you 1–1000. If sheet 1 had 1, 2, 3 and 4 on it instead, you would have to collate the cut pieces one by one.
Whether sheet 1 ends up at the top or the bottom of the printed pile depends on the press and how it delivers. Check the direction on the first few sheets.
Three ways to number
- One number: one number per piece. You can print the same number in several places, such as a ticket and its stub (0001, 0001, 0002, 0002…).
- Run of numbers: several numbers in a row on each piece. For a strip of three tickets, the first piece gets 001, 002 and 003, the next 004, 005 and 006, and so on.
- Book + serial: a book number and a serial within the book, like 01-001, 01-002 … 02-001. When the serials have gone round once, the book number goes up by one. A book has as many sheets as there are serials.
How it's worked out
| Result | Calculation | Example |
|---|---|---|
| Sheets to print (loose) | Finished pieces ÷ number up, rounded up | 1,000 ÷ 4 = 250 sheets |
| Sheets to print (bound into books) | Finished pieces ÷ (number up × sheets per book), rounded up, then × sheets per book | 1,010 ÷ 200 → 6, × 50 = 300 sheets |
| Numbers by position | A runs from the first number for as many sheets as you print, B carries on from there… | A 1–250, B 251–500 |
| Pieces for a run of numbers | Numbers ÷ numbers per piece, rounded up | 100 ÷ 3 → 34 pieces |
| Books per pile (book + serial) | Books ÷ number up, rounded up; sheets are that × sheets per book | 10 books ÷ 4 → 3, × 50 = 150 sheets |
| Blank slots | Number up × sheets − finished pieces | 4 × 300 − 1,010 = 190 |
When binding into books, the sheet count is rounded up to a whole number of books, so each pile holds whole books. In the example above (4 up, 50 sheets per book, 1,010 pieces), piles A to C get 300 sheets (6 books) each, pile D gets 110 (2 books and 10 sheets), and the remaining 190 slots have no number. Blank slots are left empty or filled with zeros in the data.
Leading zeros follow what you type. If the first or last number starts with 0 (0001, say), every number is padded to the longer length. Without it, numbers are not padded (1, 2 … 1000).
Using the data in InDesign Data Merge
- Export the data: press "Tab-delimited TXT". The first row holds the field names, and each following row is one sheet. InDesign Data Merge reads text files separated by commas, tabs or semicolons (CSV or TXT), with field names in the first row.
- Set up the page: make the page the size of one press sheet and place a text frame for the number at each position. Load the TXT in the Data Merge panel and put field A1 at position A, B1 at position B and so on. Any position can be A; what matters is stacking the piles starting with A.
- Merge: merge with one record per page (Single Record). Multiple Records puts consecutive records on one page, which breaks the cut-and-stack order.
To print text such as "No." before the number, type it in the text frame and put the field after it. If characters come out garbled, show the import options when you select the data source and choose the encoding (this tool writes TXT as UTF-16 with a BOM).
Splitting into stacks
With a lot of sheets, they may not fit in the guillotine or on the press in one go. Set the number of stacks and the sheets are split as evenly as possible (never in the middle of a book). Choose the number to suit your guillotine and press.
After cutting each stack, put the piles for the same position together in stack order (stack 1, stack 2…), then stack those in position order (A, B…). The data is split by stack too: one TXT file per stack, zipped together, and one sheet per stack in the Excel file.
Common mistakes
- Leading zeros disappear: Excel removes leading zeros from anything that looks like a number, so opening a CSV in Excel and saving it again turns 0001 into 1. Load the exported TXT straight into InDesign without going through Excel. The Excel file from this tool stores the numbers as text cells, so the zeros stay when you open it.
- Merging with Multiple Records: 1, 2, 3 and 4 end up on one sheet, which is not cut-and-stack.
- Printing zeros in blank slots by accident: "Zeros" prints 0000 and so on in blank slots. That's fine if those pieces are thrown away; otherwise choose "Nothing".
- Running out of Excel rows: one Excel sheet holds up to 1,048,576 rows. Use more stacks for more sheets than that.
FAQ
- How far can I go?
- Up to 128 up, 20 places (or numbers) per piece and 24-digit numbers. Finished pieces are limited to 10,000,000,000 and one file to 2,000,000 cells. These are this tool's limits, to keep the work within what a browser can handle.
- Does it have to be CSV?
- No. InDesign Data Merge also accepts tab-delimited TXT as a data source.
- Can InDesign use the Excel file directly?
- No. Data Merge reads text files such as CSV and TXT. Use the Excel file to check or edit the data.
- Is anything I enter sent anywhere?
- No. Everything is calculated and exported in your browser. Your settings are saved in the browser for next time.
Sources
- Adobe, "Data source files overview" (data sources are comma-, tab- or semicolon-delimited text; line breaks separate records)
- Adobe, "Merge data in InDesign" (field names go in the first row; an @ at the start marks an image field)
- Adobe, "Set up target documents" (the import options let you choose the delimiter and encoding)
- Adobe, "Merge records" (choose a single record or multiple records per page)
- Microsoft, "Keeping leading zeros and large numbers" (Excel removes leading zeros automatically)
- Microsoft, "Excel specifications and limits" (a worksheet has 1,048,576 rows)
- Meikosha Printing, notice on numbered tickets with barcodes (in Japanese; examples of repeated numbers such as 0001, 0001, 0002, 0002 and parent-child numbers such as 01-001, 01-002 … 02-001)
All checked on 5 December 2026. InDesign and Excel are trademarks or registered trademarks of their owners. This site is run by an individual and has no connection with these companies.