How to Number a Card List in Excel, Google Sheets or Numbers
To number a card list, type the first two numbers in a spare column, select both and drag the fill handle down to the last row. Excel, Google Sheets and Apple Numbers all carry the run on. Then paste the numbers into your card number column as values, one row per card.
You need a list when each card carries a name as well as a number, as most membership cards do, when each card has its own QR code, or when the numbers aren’t a simple run. If the cards only count up, with nothing else changing, you don’t need a list at all: give us a start number and the cards run on from it.
The short versionChoose the format first: a high start such as 10001 is the easy one. Fill the run in a spare column, add any zeros or prefix with a formula, then paste the numbers into your card number column as values. Sort whole rows only, count the rows, and keep a copy of the file you send.
1Which number format should you use?
A high start such as 10001 is the easy choice: there are no zeros to lose. Decide before you start, because the format decides how you build the numbers. Our guide to numbered plastic cards explains each format. Here’s what each needs in a spreadsheet.
| Format | Example | In your spreadsheet |
|---|---|---|
| A high start | 10001, 10002 … | No formula needed: fill the run (step 2). Every number has five digits all the way to 99999. |
| Fixed length | 0001, 0002 … | A formula adds the zeros (step 3), and the card number column has to be formatted as Text to keep them. |
| A prefix | M-0001, GOLD-001 | A formula adds the letters (step 3). Use a prefix for different kinds of card, levels or years in one system. |
| Plain sequence | 1, 2, 3 … | For small schemes where the number is only for your records. The numbers get longer as they go. |
| Your own list | From your system | Card numbers from your membership or till software: paste them in as they come, one per row. |
Choose enough digits for every card you’ll ever issue. If the number goes in a barcode, or your software reads it, ask your till or software supplier which format it expects before you choose.
Gift cards are differentA number in order gives away the next one, so if your till holds the balances, use random numbers in the format it asks for. Our guide to numbered gift cards explains.
Our example club on this page, Penmorrow Swimming Club, uses a high start: its 250 members are numbered 10001 to 10250, each number printed on the card and carried in a barcode. The club and its members are made up.
2How do you fill a column with numbers?
Type the first two numbers and drag the fill handle: Excel, Google Sheets and Numbers each see the step between them and carry the run on. Work in a spare column, an empty one beside your list with its ordinary format. In step 4 you paste the finished numbers into your card number column and delete the spare column. The numbers follow the order of your rows, so if you want them in name order, sort the whole list by name first, then fill.
In Excel
- In the spare column, type your first number in row 2, such as 10001, and the next in row 3: 10002.
- Select both cells.
- Drag the fill handle, the small square at the bottom right of the selection, down to the row of your last card. Excel shows each number as you drag.
Start from two cells. Microsoft says a number typed in the first cell only is repeated, not counted on. No fill handle? Turn it on in File, Options, Advanced, under Editing options (on a Mac: Excel, Preferences, Edit).
In Google Sheets
- In the spare column, type your first number in row 2 and the next in row 3.
- Highlight both cells. A small blue box appears at the bottom right.
- Drag the blue box down to the row of your last card.
If the two cells don’t form a series, Google Sheets repeats them instead of counting on.
In Numbers
- In an empty column of the table, type your first number in the first body cell, below the header row, and the next in the cell below it.
- Select both cells.
- Point at the border of the selection until a yellow dot appears, then drag it down over the cells to fill.
Autofill replaces anything already in those cells. To use the keyboard, press Command-\, stretch the yellow border with the arrow keys, then press Return.
Hundreds of cards? Let Excel stop at the last number
Dragging down 250 rows takes a steady hand. In Excel for Windows, the Series command fills down from your first number and stops at the stop value you type.
- Type your first number in row 2 of the spare column, and select that cell.
- On the Home tab, click Fill, then Series.
- Click Columns, and under Type, click Linear.
- Type 1 in Step value and your last number in Stop value: 10250 for 250 cards from 10001.
- Click OK.
On a Mac, the same command is on the Edit menu: Edit, Fill, Series.
Or one formula: SEQUENCE
SEQUENCE makes the whole run from one cell. This one gives 250 rows in one column, starting at 10001 and going up by 1, so the last number is 10250:
=SEQUENCE(250,1,10001,1)
Excel: Microsoft lists SEQUENCE for Microsoft 365, Excel 2024 and Excel 2021, but not for Excel 2019 or 2016. The numbers spill into the cells below, which must be empty: if they aren’t, Excel shows a #SPILL! error. SEQUENCE doesn’t work inside an Excel table, so type it in a spare column outside the table.
Google Sheets: the same formula works, and the numbers fill the cells below it.
Numbers: recent versions have SEQUENCE too, with the same four parts: rows, columns, start and step.
It’s a formula, so step 4 matters: the numbers go into your card number column as values.
3How do you add zeros or a prefix?
With a formula in the next spare column, worked out from a plain run like the one in step 2. For 0001 or M-0001, make the run start at 1. Skip this step if you chose a high start with no prefix.
| You want | Excel and Google Sheets | Numbers | With 1 in D2 |
|---|---|---|---|
| Zeros at the front | =TEXT(D2,"0000") | =NUMTOBASE(D2,10,4) | 0001 |
| A prefix and zeros | ="M-"&TEXT(D2,"0000") | ="M-"&NUMTOBASE(D2,10,4) | M-0001 |
We’ve tried these in Numbers 16: with 1 in D2 they give 0001 and M-0001. A number with more digits than the zeros allow, such as 12345, keeps all of them.
D2 is the first number of your plain run. In TEXT, each 0 stands for one digit and zeros fill the gaps: Microsoft’s own example turns 1234 into 0001234 with seven zeros. Use one 0 for each digit your numbers should have, and put your own letters between the quotation marks. The & joins the letters to the number.
In Excel
- In row 2 of the next spare column, type the formula:
="M-"&TEXT(D2,"0000") - Double-click the fill handle of that cell to copy the formula down beside your run. Check it reached your last row.
In Google Sheets
- In row 2 of the next spare column, type the same formula:
="M-"&TEXT(D2,"0000") - Select that cell and the cells below it, down to your last row, and press Ctrl+D (Cmd+D on a Mac) to fill the formula down.
In Numbers
Numbers has no TEXT function. Its NUMTOBASE function pads a number with zeros: the 10 keeps it in ordinary base 10, and the 4 is the length it pads to.
- In the first body cell of the next spare column, type the formula:
="M-"&NUMTOBASE(D2,10,4) - Select the cell and drag the yellow dot down to copy the formula to every row. Check that your first few results show their zeros.
A prefix on a high start needs no zeros: ="M"&D2 turns 10001 into M10001, in all three apps.
4How do you put the numbers in your card number column?
Copy the finished numbers and paste them into your card number column as values, so it holds the numbers themselves, not formulas. Everything in your file is printed as it is, and a formula would be printed as the formula.
First, format the card number column as Text, like every column in your file, if it isn’t already, so it keeps every number exactly as it goes in: our guide to keeping leading zeros shows how in Excel, Google Sheets and Numbers. In Excel, a formula typed into a cell formatted as Text isn’t calculated, which is why the numbers are built next door.
In Excel
- Select the numbers in the spare column, from row 2 to your last row, and copy them: Ctrl+C (Cmd+C on a Mac).
- Click the cell in row 2 of your card number column.
- On the Home tab, click the arrow below Paste and choose Values. On a Mac, click the arrow next to Paste and choose Paste Values.
Microsoft says Values pastes the results without overwriting the formatting already in the cells, so the column stays formatted as Text. Green triangles in the corners mean Excel has spotted numbers stored as text: in a card file you can leave them.
In Google Sheets
- Select the numbers in the spare column and copy them.
- Click the cell in row 2 of your card number column, then choose Edit, Paste special, Values only. Or press Ctrl+Shift+V (Cmd+Shift+V on a Mac).
Paste special works only within one spreadsheet, so build the numbers in the same spreadsheet as your list.
In Numbers
- Select the numbers in the spare column and choose Edit, Copy.
- Click the first body cell of your card number column and choose Edit, Paste Formula Results (Shift-Command-V).
Apple doesn’t say how the pasted results are formatted, so check that zeros at the front are still there.
- Barcode too? If the barcode carries the same number, paste the same numbers into a barcode column as well, formatted as Text like the card number column. Give it its own column even when it matches, so there’s no doubt which column goes in the bars. Our guide to barcode and QR code lists shows how to build barcode values and QR links from your card numbers.
- Then delete the spare columns. Everything in the file is printed, so the run and the formulas mustn’t go with it.
- No formulas left. In Excel, press Ctrl+` (Ctrl on a Mac too), or choose Formulas, Show Formulas, to show formulas in place of their results: the card numbers should look the same. Press it again to switch back. In Google Sheets the shortcut is Ctrl+~, Ctrl on a Mac too. In Numbers, select a card number: the Smart Cell View at the bottom of the window shows a formula if there is one.
How do you carry on numbering from your last order?
Start the new cards at the number after the last one you issued, so no two cards share a number. The last number of the new run is the first number plus the number of cards, minus one.
ExamplePenmorrow’s first 250 cards ran from 10001 to 10250. Forty new members join, so their cards run from 10251 to 10290, because 10251 + 40 - 1 = 10290. Type 10251 and 10252 at the top of the spare column and fill on from there.
Lost track of the last number?
Open your copy of the file you sent last time and sort it by the card number, smallest first. The last row holds the highest number when every number is the same length and stored the same way. Microsoft says numbers stored as numbers sort before numbers stored as text, and text sorts character by character, so 99 comes after 250. If your column mixes the two, or the lengths vary, read down the column to find the highest.
In Excel and Numbers, =MAX(B2:B251) finds the highest only when every number is stored as a number: Microsoft and Apple both say MAX skips text. In Excel a column of text gives 0, and a mixed column can give a number that isn’t the highest. Google’s help doesn’t say how MAX treats numbers stored as text, so in Google Sheets, sort.
If we numbered your last cards from a start number, tell us the last number you issued and the new cards carry on from there. If members join through the year, our bureau personalisation service holds your printed cards and prints each new member’s details from an Excel file you email.
How do you sort the list without mixing up the numbers?
Sort whole rows, never one column on its own. If you sort just the names, the numbers stay where they were and end up against the wrong people: Microsoft says sorting part of a list separates the sorted cells from the rest of their rows.
In Excel
- Unhide any hidden rows and columns first: Microsoft says they don’t move when you sort.
- Click one cell in the column you want to sort by, such as a name, then on the Data tab choose Sort A to Z (on a Mac, Data, then Ascending). Excel sorts the rest of each row with it, and leaves the heading row out.
- If you selected a whole column first, Excel warns you; on a Mac the box is called the Sort Warning. Choose Expand the selection, not Continue with the current selection.
If a sort goes wrong, choose Undo straight away.
In Google Sheets
- Select every column of your list, not just the one you’re sorting by.
- Choose Data, Sort range, Advanced range sorting options.
- Tick Data has header row, choose the column to sort by and click Sort.
In Numbers
- Point at the letter of the column you want to sort by and click its arrow.
- Choose Sort Ascending. Numbers rearranges whole rows, so each name keeps its number, and the header row stays where it is.
Card numbers made by a formula can change when you sort: Microsoft says numbers made with the ROW function update when the data is sorted. Paste formulas as values (step 4) before you sort.
How do you check the numbers before you send them?
Count the rows, then check the first and last numbers. With headings in row 1, 250 cards run from row 2 to row 251, and the last number is the first plus the number of cards, minus one: 10001 + 250 - 1 = 10250.
- The count. In Excel, click the letter of your card number column. Count on the status bar shows how many cells hold something, heading included, so 250 cards show 251. In Google Sheets and Numbers, the last card’s row number should be the number of cards plus one.
- The first and last numbers match the run you meant, and every number is the same length.
- No repeats. A run made by filling has none, but numbers typed or pasted by hand can. Our guide to checking a card data file shows how to find duplicates in each app.
- The barcode column matches the card number column on every row, if the two should be the same.
We print the file as it is. Our free artwork check covers bleed, resolution, colour mode and file set-up, not your numbers, so checking them is down to you. Then check your free email proof: it shows where the number sits and how it’s formatted, with any zeros or prefix, and the number under the barcode. It shows a sample card, not every number, so the run itself is yours to check.
How do you save and send the file?
Save it as an Excel file or a CSV and attach it to an email to sales@cpcards.co.uk, even for one card. Never type the numbers into the email itself.
Excel: save the workbook as normal (.xlsx), or as CSV UTF-8 (Comma delimited), which keeps accented names such as Siân and Zoë.
Google Sheets: choose File, Download, then Microsoft Excel (.xlsx) or the CSV option.
Numbers: choose File, Export To, then Excel or CSV. For a CSV, leave Include table names unticked. Keep your list in one table on one sheet.
- One worksheet, headings in row 1 and one row per card.
- Only what’s printed. The spare columns are deleted, and so is anything you keep for your own records.
- No hidden or blank rows or columns. A blank row is printed as a card with no name or number on it.
- The same layout as last time. For a re-order, send the same columns in the same order as your first file.
- A CSV? Don’t open it in Excel and save it again: Excel removes zeros from the start of numbers as it opens the file.
- Keep a copy. It’s your record of which number went to which member. You can send a corrected file until you approve your proof, but once the proof is approved, no changes can be made.
Our Excel file guidelines include an example file to download, and our guide to personalised plastic cards shows what else can change from card to card. Names in the file too? Our guide to tidying a name list covers capitals and stray spaces.
Questions & Answers
-
Do I need to send a list if the numbers just count up?
No. Give us a start number and the cards run on from it. Write it with every digit exactly as it should print, because 1, 001 and 0001 all print differently, and give us the last number too: 250 cards from 10001 end at 10250. Send a list when each card also carries a name, when each card has its own QR code, or when the numbers aren’t a simple run.
-
How do I add leading zeros or a prefix to card numbers?
Use a formula in a spare column beside a plain run of numbers. In Excel or Google Sheets, if D2 holds 1,
=TEXT(D2,"0000")gives 0001 and="M-"&TEXT(D2,"0000")gives M-0001. Apple Numbers has no TEXT function:=NUMTOBASE(D2,10,4)pads with zeros there: in Numbers 16 it turns 1 into 0001. Then paste the results into your card number column as values. Or start at 10001, which needs no zeros. -
How do I carry on numbering from my last order?
Start at the number after the last one you issued, so no two cards share a number. The new last number is the first plus the number of cards, minus one: 40 cards from 10251 end at 10290. Keep the same columns in the same order as your first file. If we numbered your last cards from a start number, just tell us the last number you issued.
-
Why does Excel copy the same number when I drag?
Because the drag started from one cell. Microsoft says a number typed in the first cell only is repeated, as in 2, 2, 2, 2. Type the first two numbers, such as 10001 and 10002, select both cells, then drag the fill handle, and Excel carries the run on. Google Sheets works the same way: if the cells don’t form a series, it repeats them.
-
How do I number a list in Google Sheets or Apple Numbers?
As in Excel: type the first two numbers one above the other, select both and drag. In Google Sheets, drag the small blue box at the bottom right. In Apple Numbers, point at the border of the selection and drag the yellow dot. Or use
=SEQUENCE(250,1,10001,1)for 10001 to 10250 in Google Sheets and recent versions of Numbers, then paste the results as values: Paste special, Values only in Google Sheets, or Paste Formula Results in Numbers. -
Can the barcode carry the same number as the card?
Yes. Paste the same numbers into a barcode column beside the card number column, so each row holds both, and give the barcode its own column even when they match. Code 39 and Code 128 barcodes can carry letters as well, so a prefix like M-0427 can go in the bars too. Ask your till or software supplier which barcode type it reads before you order.
-
How many digits should a card number have?
Enough for every card you’ll ever issue, all the same length. A high start such as 10001 keeps five digits up to 99999, with no zeros to lose. For gift cards read by a till, 8 digits is a sensible minimum. In a Code 39 barcode every character adds width: with a 0.33mm narrowest bar and the clear space either side, 6 characters take about 49mm and 10 about 70mm. An 86mm card has 80mm inside its safe area.
-
Will sorting the list change the numbers?
Not if you sort whole rows: typed or filled numbers move with their rows. Card numbers made by a formula can change, though. Microsoft says numbers made with ROW update when you sort, so paste formulas as values first. Never sort one column on its own: if Excel warns you, choose Expand the selection, or the numbers end up against the wrong names.
-
Where can I get numbered cards printed in the UK?
CP Cards supplies numbered plastic cards printed in England, from 25 cards. Send us a start number or your spreadsheet, and every order gets a free email proof showing where the number sits, so you can check the layout and wording before anything is printed. For a quote, email sales@cpcards.co.uk or use our quote form.
Not sure how to number your cards?
Ask us before you order. Tell us what the cards are for, how many you need and how the numbers should look, and we’ll tell you what to send.
Email sales@cpcards.co.uk. We often reply within minutes, 9am to 5pm, Monday to Friday.

