How to Capitalize All Cells in Excel
In this article
You can capitalize all cells in Excel in two ways: use the UPPER function in a helper column and paste the results back, or use Power Query to transform the column in place. Excel has no built-in "change case" button, so the function method is the fastest for most people. The steps below are for Excel on Windows and Mac desktop; the web version has the same functions but no Power Query, so use the function method there.
What You'll Need
- Excel 2016 or later on Windows or Mac (or Excel for the web for the function method).
- Your data in a worksheet, ideally with a header row.
- An empty column next to your data for the helper formula.
Step-by-Step
Method 1: Use the UPPER Function (Fastest)
- Click the header of the column to the right of your data and insert a new column if needed (right-click the header and choose Insert).
- In the first empty cell below your header, type
=UPPER(A2), replacingA2with the first cell of the text you want to capitalize. Press Enter. - Drag the fill handle (the small square at the bottom-right of the cell) down to fill the formula for every row. Alternatively, double-click the fill handle to fill down automatically.
- Select the new column of results, press Ctrl+C (Windows) or Command+C (Mac) to copy.
- Right-click the first cell of the original column and choose Paste Special (or press Ctrl+Alt+V on Windows). In the Paste Special dialog, select Values and click OK. This replaces the original text with the capitalized version.
- Delete the helper column. Your original cells are now all uppercase.
Method 2: Use Power Query (Transform in Place)
- Select your data range, then go to the Data tab and click From Table/Range. If prompted, confirm the range and that your data has headers.
- In the Power Query Editor, click the column header of the text you want to capitalize.
- Go to the Transform tab, click Format, and choose UPPERCASE.
- Click Close & Load to load the transformed data back into Excel. This creates a new table; you can copy the values back to your original sheet if needed.
Method 3: Use Flash Fill (Simple but Limited)
- In the first cell of an empty column next to your data, type the capitalized version of the first entry manually (e.g., if A2 is "apple", type "APPLE").
- Press Enter and start typing the capitalized version of the second entry in the cell below. Excel should show a preview of the rest of the column filled in.
- Press Enter to accept the preview. If it doesn't appear, go to the Data tab and click Flash Fill.
- Copy the results and paste them as values over the original column, then delete the helper column.
Common Mistakes
- Forgetting to paste as values: If you paste the formula results normally, you'll get formulas referencing the original cells, not the text. Always use Paste Special > Values.
- Using the wrong cell reference: Make sure the formula points to the correct cell. If you copy the formula down without absolute references, it will adjust correctly, but if you copy across, you may need to lock the column with
$. - Applying UPPER to numbers or dates: The UPPER function only affects text; numbers and dates remain unchanged, which is fine, but be aware that dates stored as text may be converted to uppercase text and lose their date formatting.
- Overwriting data without a backup: Always save a copy of your sheet before pasting over original data, in case something goes wrong.
- Using Flash Fill on inconsistent data: Flash Fill relies on patterns; if your data has mixed formats, it may produce incorrect results. Check the preview carefully.
Tips
- To capitalize only the first letter of each word, use
=PROPER(A2)instead of UPPER. - To capitalize only the first letter of the cell, use
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2)-1)). - You can apply UPPER to an entire range at once by selecting the range, typing the formula in the formula bar, and pressing Ctrl+Enter (Windows) or Command+Enter (Mac) to fill all selected cells.
- If you need to keep the original data, work on a copy of the sheet or use a helper column and don't overwrite until you're satisfied.
- Power Query is best for large datasets or when you need to repeat the transformation regularly; you can refresh the query to apply changes to new data.
Troubleshooting
- The formula returns an error: Check that the cell reference is correct and that the cell contains text, not an error value. If the cell is empty, UPPER returns an empty string.
- Paste Special > Values is grayed out: Make sure you've copied the cells first. If you're in cell edit mode, press Esc and try again.
- Flash Fill doesn't work: Ensure the column next to your data is empty and that you've typed at least two examples. Flash Fill may not work if the data is too irregular.
- Power Query option is missing: Power Query is available in Excel 2016 and later on Windows and Mac; if you don't see it, check that your Excel is up to date or use the function method.
- Data loses formatting after pasting: Pasting values may remove cell formatting. To keep formatting, paste values into a new column, then copy the formatted original column and paste special > formats only.
Frequently Asked Questions
Can I capitalize all cells in Excel without a formula?
Yes, you can use Flash Fill or Power Query, but both still rely on Excel's built-in features. There is no single button to change case; the UPPER function is the most straightforward method.
Does UPPER work on numbers?
UPPER only affects text. Numbers and dates remain unchanged. If a number is stored as text, UPPER will return the same text (since numbers have no case).
How do I capitalize only the first letter of each word?
Use the PROPER function: =PROPER(A2). This capitalizes the first letter of each word and converts the rest to lowercase.
Can I apply UPPER to multiple columns at once?
Yes, you can select a range of cells, type the formula for the first cell, and press Ctrl+Enter (Windows) or Command+Enter (Mac) to fill the entire selection with the formula adjusted for each cell.
Will Power Query work in Excel for the web?
No, Power Query is not available in Excel for the web. Use the UPPER function method instead.
How do I keep the original data and also have capitalized versions?
Use a helper column with the UPPER formula, then copy the results and paste them into a new location or sheet, leaving the original column untouched.