How to Capitalize Values in Excel: Step-by-Step
In this article
To capitalize values in Excel, use the UPPER function: in a blank cell, type =UPPER(A1) and press Enter, then copy the formula down. This converts all letters in the referenced cell to uppercase. For proper case (first letter capitalized, rest lowercase), use =PROPER(A1). For all lowercase, use =LOWER(A1). You can then copy the results and paste them as values to replace the originals. This guide walks through each method, plus common pitfalls and fixes.
What You'll Need
- Microsoft Excel (any recent version) on Windows, Mac, or Excel for the web.
- Data in a worksheet that you want to capitalize.
- Basic familiarity with entering formulas.
Step-by-Step
- Open your workbook and locate the column containing the text you want to capitalize. For example, assume names are in column A, starting at A2.
- Insert a helper column next to your data. Right-click the column header (e.g., column B) and choose Insert to create a blank column. This keeps your original data intact while you work.
- Enter the capitalization formula in the first cell of the helper column. For all uppercase, type
=UPPER(A2). For proper case (each word capitalized), type=PROPER(A2). For all lowercase, type=LOWER(A2). Press Enter. - Copy the formula down to apply it to the rest of the column. Select the cell with the formula, then drag the fill handle (the small square at the bottom-right corner of the cell) down to the last row of your data. Alternatively, double-click the fill handle to auto-fill down to the end of the adjacent data.
- Review the results in the helper column. Check that the capitalization matches your expectation. If you see errors like #NAME?, ensure you typed the function name correctly.
- Copy the helper column (Ctrl+C on Windows, Command+C on Mac).
- Paste as values over the original data. Select the original column (e.g., A2:A100), then right-click and choose Paste Special > Values. This replaces the original text with the capitalized version and removes the formulas. On Mac, use Edit > Paste Special > Values. If you prefer, you can paste into a new column and delete the original.
- Delete the helper column if you no longer need it. Right-click the column header and choose Delete.
- Save your workbook to keep the changes.
Note: Menu labels can differ slightly by Excel version, device, or region. The steps above apply to Excel for Windows and Mac; Excel for the web has similar options under the Home tab.
Common Mistakes
- Forgetting to paste as values: If you simply copy and paste the formula, the helper column will still contain formulas that reference the original cells. When you delete the original data, the formulas will break. Always use Paste Special > Values.
- Using PROPER on all-caps text: PROPER converts the first letter of each word to uppercase and the rest to lowercase. If your data is already in all caps, PROPER will produce mixed case (e.g., "JOHN DOE" becomes "John Doe"). That may be what you want, but be aware of the change.
- Overwriting data without a backup: Before pasting over your original data, consider making a copy of the sheet or working on a duplicate file. Once you paste values, the original text is replaced and cannot be undone with Ctrl+Z after you save and close.
- Incorrect cell references: If you copy the formula down but the references are not relative (e.g., you used $A$2), all cells will show the same value. Ensure you use relative references like A2 without dollar signs.
- Ignoring leading/trailing spaces: UPPER and PROPER do not remove extra spaces. If your data has leading or trailing spaces, the capitalization will still work, but the spaces remain. Use TRIM to clean them:
=UPPER(TRIM(A2)).
Tips
- Use Flash Fill for quick capitalization: In Excel 2013 and later, you can type the capitalized version of the first item in the adjacent column, then press Ctrl+E (Windows) or Command+E (Mac) to fill down. Flash Fill recognizes the pattern. However, it may not work perfectly for all data, so review the results.
- Combine functions for specific needs: For example, to capitalize only the first letter of a cell and keep the rest as is, use
=UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2)-1). This is useful for codes or IDs. - Apply capitalization to entire columns: If you have a large dataset, consider using Power Query (Get & Transform) to transform columns to uppercase or proper case without formulas. In Power Query, right-click the column header, choose Transform > Uppercase or Capitalize Each Word.
- Use keyboard shortcuts for Paste Special: After copying, press Ctrl+Alt+V (Windows) or Command+Option+V (Mac) to open the Paste Special dialog, then select Values and click OK.
- Test on a small sample first: Before applying changes to the entire dataset, try the formula on a few cells to ensure it produces the desired result.
Troubleshooting
- Formula returns #NAME?: This usually means the function name is misspelled. Check that you typed UPPER, PROPER, or LOWER correctly, with no extra spaces.
- Formula returns #VALUE!: This can happen if the referenced cell contains an error value or if you are trying to capitalize a number. UPPER works on text; numbers are unaffected. If the cell contains a formula that returns an error, fix that first.
- Capitalization does not change: Ensure the cell is formatted as Text or General, not as something that might override the display. Also, check that you are not in Manual Calculation mode; press F9 to recalculate.
- Paste Special > Values is grayed out: This can occur if you are in cell edit mode. Press Enter to exit edit mode, then copy again. Also, ensure you have copied a cell, not just selected it.
- Flash Fill does not work: Flash Fill requires a clear pattern. If it fails, type a couple more examples, or use the formula method instead. Also, ensure Flash Fill is enabled in File > Options > Advanced > Automatically Flash Fill.
- Data loses formatting after paste: Paste Special > Values only pastes the values, not formatting. If you need to keep formatting, paste values into a new column, then copy formatting separately using the Format Painter.
Frequently Asked Questions
Can I capitalize only the first letter of each word?
Yes, use the PROPER function: =PROPER(A1). It capitalizes the first letter of each word and converts the rest to lowercase.
How do I capitalize all letters in a cell without a formula?
You can use Flash Fill: type the capitalized version in the adjacent cell, then press Ctrl+E (Windows) or Command+E (Mac). Alternatively, use Power Query to transform the column to uppercase.
Does UPPER work on numbers or dates?
UPPER only affects text. Numbers and dates are returned unchanged. If a cell contains a mix of text and numbers, the text portion is capitalized.
Can I capitalize text in multiple cells at once?
Yes, enter the formula in the first cell, then copy it down to apply to all cells. You can also select a range, type the formula, and press Ctrl+Enter to fill the entire range.
What is the difference between UPPER and PROPER?
UPPER converts all letters to uppercase. PROPER converts the first letter of each word to uppercase and the rest to lowercase.
Will capitalizing values affect my original data?
Only if you paste the results over the original data. Using a helper column keeps the original intact until you choose to replace it.