Names on Cards: How to Tidy a Name List in a Spreadsheet
Names on personalised cards are printed exactly as they’re typed in your spreadsheet: capitals, spaces, accents and all. So tidy the name column before you send it. Fix capitals with PROPER and stray spaces with TRIM, and join first names to surnames with &, in Microsoft Excel, Google Sheets or Apple Numbers.
This guide is for clubs, charities, schools and employers turning a sign-up list into membership cards, staff ID cards, volunteer cards or school cards. We print your file as it is, so a slip in the spreadsheet becomes a slip on a card.
=TRIM(A2) removes the stray spaces, then =PROPER(TRIM(A2)) fixes the capitals too. Pasted back over the name as a value, the result prints on the Wychbrook volunteer card as Tom Hughes.The short versionTidy the names in a spare column: =PROPER(TRIM(A2)) fixes capitals and stray spaces in one go. Paste the results back over the names as values, then retype any name PROPER gets wrong, such as McDonald. If you send a CSV from Excel, save it as CSV UTF-8 so the accents come through. Check the name space on your proof against your longest name.
What goes wrong with names in a spreadsheet?
Whatever is in the name column is printed on the card, so the slips a sign-up list collects end up in people’s hands. These are the usual ones, and the fix for each.
| In your file | On the card | The fix |
|---|---|---|
| PRIYA SHAH | PRIYA SHAH, in capitals | PROPER |
| dan mcdonald | dan mcdonald, in small letters | PROPER, then retype McDonald |
| A space before, after or doubled | The spaces, as gaps | TRIM |
| Dr. P. Shah in one row, Tom Hughes in the next | Two styles on cards that should match | One style for every row |
| Siân, Zoë | The letters your file holds | CSV UTF-8, if you send a CSV |
| Isla Ashworth-Okafor | All 20 characters, so the space must fit them | LEN, then size the space |
Our artwork check is technical and doesn’t cover names or spelling, and we don’t edit data files, so each name is printed as it is in your file. Where the names go on the card, and how big, is in our guide to personalised plastic cards.
How do I capitalise names in Excel, Google Sheets or Numbers?
Use PROPER. =PROPER(A2) gives each word a capital first letter and makes every letter that follows another letter small, so PRIYA SHAH and priya shah both become Priya Shah. All three apps have it.
Excel has no Change Case button, so Microsoft’s own method is a formula in a spare column, pasted back over the names as values. It works the same way in Google Sheets and Numbers, and it’s the method for most of the fixes on this page.
Before you startKeep a copy of the original list. Pasting the results over the names replaces them, and Microsoft’s own first step for cleaning data is a backup copy.
In Excel
- Click row 2 of the empty column next to your data. It mustn’t be formatted as Text: Excel shows a formula typed into a Text cell as it is, without working it out. If it is, set it to General first.
- Type
=PROPER(A2), using the letter of your name column, and press Enter. - Click the cell again, then double-click the small square at its bottom right. The formula fills down the column: check it reaches your last name.
- Copy the new cells (Ctrl+C, or Cmd+C on a Mac).
- Right-click the first name, in A2, and choose Paste, then Values. Or press Ctrl+Alt+V, then V and Enter. On a Mac, use the Home tab: click the arrow next to Paste and choose Paste Values.
- Delete the spare column.
In Google Sheets
- Click row 2 of an empty column to the right of your data, one you haven’t formatted as text.
- Type
=PROPER(A2)and press Enter. - Select that cell and the cells below it, down to your last name, and press Ctrl+D (Cmd+D on a Mac) to fill the formula down.
- Copy the new cells, click the first name, and choose Edit, then Paste special, then Values only (Ctrl+Shift+V, or Cmd+Shift+V on a Mac).
- Delete the spare column.
In Numbers
- Click row 2 of an empty column to the right of your names, one you haven’t formatted as text.
- Type
=PROPER(A2)and press Return. - Select the cell, point at its border until a yellow dot appears, and drag the dot down over the cells below.
- Copy the new cells, click the first name, and choose Edit, then Paste Formula Results (Shift+Cmd+V).
- Delete the spare column.
- 1PROPER makes every letter that follows another letter small, so McDonald comes out as Mcdonald.
- 2PROPER gives every word a capital, so the de in Eva de Vries comes out as De.
=PROPER(TRIM(A2)), filled down: TRIM also takes out the stray spaces in row 2 (the orange dots), and for capitals alone =PROPER(A2) is enough. Most names come out right, Ruth O'Neill included (Numbers treats an apostrophe differently: see the table below), but McDonald comes out as Mcdonald (1) and the de in Eva de Vries as De (2), so those two need retyping.Why PROPER gets some names wrong
PROPER follows a rule, not a list of names, and the rule differs a little between the apps:
| App | The rule, in the maker’s help | So |
|---|---|---|
| Excel | A capital for the first letter and for any letter that follows something other than a letter. Every other letter goes small. | O'Neill comes out right, but McDonald becomes Mcdonald. |
| Google Sheets | A capital at the start of each word. Every other letter goes small. | Google’s own example: mcLeod becomes Mcleod. |
| Numbers | A letter after a hyphen starts a new word, but a letter after an apostrophe doesn’t. | O’Neill becomes O’neill. |
All three give every word a capital, so de, van and von become De, Van and Von.
So after you paste the values, read down the column and retype any name with Mc or Mac, an apostrophe or a small word such as de or van, the way the person writes it. If most of your list is already right, fix the few wrong names by hand instead: PROPER would spoil the ones typed correctly, like McDonald.
Is your design in capitals?
Use =UPPER(A2) the same way. It turns every letter into a capital in all three apps, so tom hughes becomes TOM HUGHES, and every card matches.
Numbers also has a Capitalisation setting for text in the Format sidebar. Apple doesn’t say whether it changes the text itself or carries into an exported file, so use PROPER or UPPER for a file you’re sending.
How do I remove extra spaces from names?
Use TRIM. =TRIM(A2) removes the spaces before and after a name and cuts any run of spaces between words down to one. Excel, Google Sheets and Numbers all have it.
A stray space is easy to miss in a spreadsheet, but it’s printed like any other character: a space before a name is printed, and so is a double space in the middle. Names typed into a form, or copied from an email, can carry them.
=TRIM(A2), filled down column B, keeps one space between words (the grey dots) and removes the rest (the orange ones): before the name, after it and doubled in the middle.Use TRIM the way you used PROPER above: in a spare column, filled down, then pasted back over the names as values. Or fix capitals and spaces together with =PROPER(TRIM(A2)), as in the picture at the top of this page.
In Google Sheets you can also trim the names where they are, with no formula: select them and choose Data, then Data cleanup, then Trim whitespace.
Copied from a web page?Text copied from a web page can hold a non-breaking space, which looks just like an ordinary one. Microsoft and Google both say TRIM doesn’t remove it, and Google says the same of Trim whitespace. If a name still has a gap after TRIM, delete the space and type it again. LEN, further down, counts every character, so a name that counts longer than it looks has something hidden in it.
Should first names and surnames be in one column or two?
It depends on your design. If the whole name prints on one line, one Name column is simplest, as in our example files. If the first name and surname print in different places or sizes, ask us how to set out the columns before you build the file.
Joining first names and surnames
Join them with an ampersand. =A2&" "&B2 puts the first name, a space, then the surname, so Tom and Hughes become Tom Hughes. It’s the same formula in all three apps.
=A2&" "&B2, which joins each first name, a space and the surname. Filled down and pasted as values, row 4 gives Dan McDonald, and his card prints the whole name on one line.Fill it down, then copy the new cells and paste them as values into the column that will hold the names, formatted as Text, as with PROPER above. Do that before you delete the spare column and the first name and surname columns: Microsoft notes that a formula whose cells have been deleted shows a #REF! error.
Got a title column that’s empty on some rows? With titles in column A, first names in B and surnames in C, =A2&" "&B2&" "&C2 leaves an extra space at the start wherever the title is blank. =TEXTJOIN(" ",TRUE,A2:C2) skips blank cells instead. Paste its results as values too. It’s in Excel 2019 or later and Microsoft 365, in Google Sheets, and in Numbers 12.2 or later.
Splitting a full name in two
Split it at the space between the names. Leave empty columns to the right of the names first: Microsoft warns that splitting overwrites whatever is there.
In Excel
- Select the names: one column only, as many rows as you like.
- Choose Data, then Text to Columns.
- Choose Delimited and click Next.
- Tick Space, check the Data preview and click Next.
- Check the Destination, the cell where the split names start, and click Finish. The wizard is the same on a Mac.
In Microsoft 365 or Excel 2024, formulas can do it too: =TEXTBEFORE(A2," ") gives the first name and =TEXTAFTER(A2," ") everything after the first space. A name with no space in it gives #N/A. Fill them down and paste the results as values, as with PROPER above, before you delete the column of full names. Or type the first person’s first name in the next column and choose Data, then Flash Fill (Ctrl+E): Excel fills the rest from the pattern. Do the same with the first surname in the column after it.
In Google Sheets
- Select the names.
- Choose Data, then Split text to columns.
- If Sheets hasn’t split the names at the space, click the drop-down menu next to Separator, which changes the character Sheets splits at.
Or use =SPLIT(A2," "), which puts each word in its own cell along the row. Smart Fill can also fill in first names, then surnames, from a pattern: type a few, then press Ctrl+Shift+Y (Cmd+Shift+Y on a Mac). Both fill the cells with formulas, so paste them as values.
In Numbers
Use formulas: =TEXTBEFORE(A2," ") gives the first name and =TEXTAFTER(A2," ") everything after the first space. A name with no space in it gives an error, so check those rows. Then paste the results with Paste Formula Results before you delete the column of full names. In Numbers 15.1 or later, with an Apple Creator Studio subscription, Magic Fill can also complete the columns from a few names you type: choose As Text, then Accept.
Check names of three words or moreA split can’t tell a double first name from a double surname. Text to Columns puts Eva de Vries into three cells, because it can’t know that de belongs with Vries. Put rows like that right by hand.
Names listed surname first?
If your list puts the surname first, as in Hughes, Tom, split each name at the comma and join the two parts the other way round. In Microsoft 365 or Excel 2024, this formula does both, and turns Hughes, Tom into Tom Hughes:
=TRIM(TEXTAFTER(A2,","))
In Google Sheets, select the names and choose Data, then Split text to columns: Google’s own example splits a column of Last name, First name into two. Then join the parts the other way round with =TRIM(B2)&" "&A2, which also clears any space left after the comma. In Numbers, the formula above works too. In Excel and Numbers, a name with no comma gives an error, so check those rows. Whichever app you use, paste the results as values.
Should the names include titles and initials?
Only if you want them printed, and then in the same style on every row. A sign-up form collects names the way people type them, so decide the style before you tidy:
- Titles. Dr, Mrs and the like, or none at all, and with a full stop after them or without.
- Initials. P. Shah, P Shah or Priya Shah.
- Preferred names. Tom or Thomas: use the name the person wants on the card.
- Middle names. In for everyone, or out for everyone.
- Notes. A form can bring in things like “Tom (Thursdays only)”. Brackets and notes are printed too, so keep them in your own copy.
Then make every row match. In Excel, Replace (Ctrl+H, or Control+H on a Mac) with Replace All changes every match at once: replacing “Dr.” with “Dr” takes the full stop out of every title in one go. Check the result afterwards, because Replace All changes the text wherever it appears.
Will accents and special letters print?
Yes, accents print, if they’re in the file you send. Type each name exactly as it should print, with its accents, hyphens and apostrophes: accented names such as Siân, Seán and Zoë are printed as they are in your file. We’re not familiar with printing letters such as the Ł in Łukasz, so ask us before you order. Then send the Excel file, or a CSV saved as CSV UTF-8, which keeps accented names as you typed them:
- Excel. Send the Excel file itself, or choose File, then Save As, and pick CSV UTF-8 (Comma delimited) from the list of file types (the File Format list on a Mac). On Windows, Microsoft notes that the CSV (Comma delimited) type turns the euro sign into a question mark, and doesn’t say what it does to accents, so avoid it for names.
- Google Sheets. Google doesn’t say which character set its CSV download uses, so download an Excel file: File, then Download, then Microsoft Excel (.xlsx).
- Numbers. Choose File, then Export To, then Excel. If you export a CSV instead, the text encoding is under Advanced Options, but Apple’s guide doesn’t list the choices, so check the file.
Check a CSV by opening it in Notepad, or TextEdit on a Mac, not in a spreadsheet app: a plain text editor shows exactly what’s in the file. Don’t save it again from Excel once you’ve checked it.
A CSV from a sign-up form or another system can show the wrong letters when you open it in Excel. Microsoft says a UTF-8 CSV opens normally if it was saved with a byte order mark (BOM); without one, it says to import the file. So if the accents look wrong, close the file without saving. Then, on Windows, choose Data, then From Text/CSV, pick the file, choose the File Origin that shows the names correctly and click Load.
How long can a name on a card be?
As long as it fits the space in your design. Size that space for the longest name on your list, not the average one. As a guide, a person’s name reads well at 10 to 14pt: see font size on plastic cards. LEN finds the longest names, because it counts the characters in each one, spaces included, in all three apps.
=LEN(A2), filled down column B, counts every character in each name, spaces included. The biggest number, 20 in row 10, marks the longest name, Isla Ashworth-Okafor. The name space on the card has to fit hers, not just a short one like Tom Hughes.- In a spare column, type
=LEN(A2)and fill it down, as with PROPER above. - Look down the new column for the biggest numbers. On a long list, sort by that column to bring the longest names together (see below).
- Check that your longest names fit the space in the design, and look at that space again on your proof.
- Undo the sort if the order of the rows matters, and delete the length column before you send the file.
In Excel, click a number in the length column and choose Data, then Sort Smallest to Largest: the longest names end up at the bottom. On a Mac, Data, then Descending puts them at the top.
In Google Sheets, select the table and choose Data, then Sort range, then Advanced range sorting options. Tick Data has header row, choose the length column and the order, and click Sort.
In Numbers, point at the length column’s letter, click its arrow and choose Sort Descending. The longest names come to the top, and the header row stays where it is.
Embossed names do have a limit: up to 22 characters on a line at 5mm, or 27 at 3mm, counting spaces, as LEN does. Our embossing page says which cards can have it.
On the proofEvery order gets a free email proof showing where the names sit on the card, so you can check the layout and wording before anything is printed. The proof shows a sample card, not every name and number in your file. If we spot a particularly long name, we use it on the proof so you can see it fits. Look at the name space with your longest name in mind too. The colours on a proof are a guide only.
How do I send the name list?
Attach it to an email to sales@cpcards.co.uk, even for one card: an Excel file or a CSV, with one row for each card and the headings in row 1. From Google Sheets or Numbers, send the Excel file you download or export, as in the accents section above. Before you attach it, run through this list:
- Text format. Every column was formatted as Text before you typed or pasted. It matters most for numbers, such as an ID that starts with a zero: see how to keep leading zeros in a CSV file.
- No formulas. Every formula has been pasted back as values and the spare columns deleted. A formula left in the file is printed as the formula.
- Only what’s printed. One column for each detail on the card, such as Name, Role and ID. Email addresses, notes and anything else you keep for your records stay in your own copy.
- Checked by eye. Names with Mc or Mac, apostrophes and small words like de, and your longest names.
- One sheet. No hidden or blank rows or columns. Our guide to checking a card data file shows how to find them, and duplicates too.
We print the file as it is and don’t edit it. 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 have an example file to download. Numbers or dates on the cards too? See numbering a card list and dates on cards.
Names arriving through the year?
Our bureau personalisation service holds your printed cards and adds each name as you send it, in one ink colour, which suits volunteers who join all year. Send an Excel file in the same layout every time: a file laid out differently can waste cards from your stock. When a file reaches us before 1pm, we strive to send the cards the same day. Please allow 3 working days.
Questions & Answers
-
How do I capitalise names in Excel?
Use PROPER. In row 2 of a spare column that isn’t formatted as Text, type
=PROPER(A2), fill it down, then copy the results and paste them over the names with Paste Special, Values. Excel has no Change Case button, so this is Microsoft’s own method. Google Sheets and Numbers have PROPER too. Afterwards, retype any name like McDonald, which PROPER turns into Mcdonald. -
Will PROPER get every name right?
No. PROPER capitalises the first letter of each word and makes every letter that follows another letter small, so McDonald becomes Mcdonald, and de or van become De and Van. Apostrophes differ: Excel capitalises the letter after one, so O'Neill comes out right, but Numbers keeps it small, so O’Neill becomes O’neill. After you paste the values, read down the column and retype those names the way each person writes them.
-
How do I remove extra spaces from names?
Use TRIM. In a spare column that isn’t formatted as Text,
=TRIM(A2)removes spaces before and after a name and leaves one space between words, in Excel, Google Sheets and Numbers. Paste the results back as values. Google Sheets can also trim names where they are: Data, Data cleanup, Trim whitespace. Microsoft and Google say TRIM doesn’t remove non-breaking spaces, which can come in with text copied from a web page, so retype any gap that’s left. -
How do I put first names and surnames together?
Join them with an ampersand. In a spare column that isn’t formatted as Text,
=A2&" "&B2gives the first name in A2, a space, then the surname in B2, so Tom and Hughes become Tom Hughes. It works the same in Excel, Google Sheets and Numbers. Fill it down, copy the results, paste them as values into the column that will hold the names, and only then delete the first name and surname columns. -
Will accents and special letters print?
Yes, accents print. Type each name exactly as it should print, with its accents, hyphens and apostrophes, and it’s printed as it is in your file. Send the Excel file, or a CSV saved as CSV UTF-8 from Excel, which keeps accented names as typed. Open a CSV in Notepad or TextEdit to check that names like Siân and Zoë look right. We’re not familiar with printing letters such as the Ł in Łukasz, so ask us before you order.
-
How long can a name be on a card?
As long as it fits the space in your design, so size that space for the longest name on your list, not the average one. Find it with LEN, which counts every character, spaces included, and size the name space for it. If we spot a particularly long name in your file, we use it on your proof so you can see it fits. Embossed names have a limit: up to 22 characters on a line at 5mm, or 27 at 3mm, counting spaces.
-
Can each card have the person’s photo?
Not printed on the card: we can’t print a different photo on each card. A QR code on each card can open the person’s own record on your system, photo included, or a desktop ID card printer can print each photo one card at a time. A picture that’s the same on every card is simply part of the design.
-
Where can I get personalised cards printed in the UK?
CP Cards supplies personalised cards printed in England, with each name printed from your spreadsheet, from 25 cards. Every order gets a free email proof showing where the names sit, 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 set out your names?
Ask us before you order. Tell us what the cards are for and how the names should look on them.
Email sales@cpcards.co.uk. We often reply within minutes, 9am to 5pm, Monday to Friday.

