To capitalize all letters in Excel, use the UPPER function: in a blank cell, type =UPPER(A1) (where A1 holds your text) and press Enter. For a permanent in-place change without a formula, copy the result and paste it back as values using Paste Special. This guide covers the UPPER function, Flash Fill, Power Query, and a VBA macro, so you can pick the method that fits your data size and workflow.
Why Excel Doesn’t Have a One-Click Capitalize Button
Unlike Word, Excel has no built-in “Change Case” command on the ribbon. Word’s Shift+F3 cycles through uppercase, lowercase, and title case, but Excel reserves that shortcut for inserting functions. Instead, Excel offers several workarounds: a text function (UPPER), a smart fill feature (Flash Fill), a data transformation tool (Power Query), and a macro for automation. Each works differently, so the best choice depends on whether you need a formula, a one-time fix, or a repeatable process.
Method 1: The UPPER Function (Best for Formulas)
The UPPER function converts all letters in a text string to uppercase. It ignores numbers, punctuation, and spaces. Syntax: =UPPER(text).
Example: Assume cell A1 contains “hello world”. In B1, enter:
=UPPER(A1)
Result: “HELLO WORLD”. If A1 contains “123 Main St.”, the result is “123 MAIN ST.”.
To apply to multiple cells, drag the fill handle (the small square at the bottom-right of the cell) down. If you want to replace the original data with the uppercase text, copy the formula cells, then use Paste Special > Values (right-click > Paste Special > Values) to overwrite the originals. This removes the formula, leaving only the uppercase text.
Mac difference: The function works identically on Excel for Mac. The Paste Special dialog is accessed via Edit > Paste Special, then choose Values.
Method 2: Flash Fill (Quick, No Formulas)
Flash Fill (introduced in Excel 2013) automatically fills a column based on a pattern you provide. It’s ideal for one-time conversions without formulas.
- In a new column next to your data, type the uppercase version of the first cell manually (e.g., if A1 is “apple”, type “APPLE” in B1).
- Press Enter, then start typing the second cell’s uppercase version. Excel will detect the pattern and show a preview of the rest.
- Press Enter to accept the fill.
Alternatively, after typing the first cell, go to Data > Flash Fill (or press Ctrl+E on Windows, Cmd+E on Mac). Excel fills the rest based on the pattern. Flash Fill is not case-sensitive in pattern detection, but it works well for simple conversions. Note: Flash Fill is not dynamic—if you change the original data, the filled cells won’t update.
Method 3: Power Query (Best for Large Datasets or Repeatable Steps)
Power Query is a data transformation tool built into Excel (Data > Get Data). It’s powerful for cleaning data, especially when you need to repeat the same steps on new data.
- Select your data range and go to Data > From Table/Range (if your data isn’t already a table, Excel will create one).
- In the Power Query editor, select the column(s) you want to capitalize.
- Go to Transform > Format > UPPERCASE.
- Click Close & Load to bring the transformed data back to the worksheet.
Power Query records the steps, so you can refresh the query later if the source data changes. This method is best for data that will be updated regularly. It requires Excel 2016 or later; in Excel 2013, Power Query is a separate add-in.
Method 4: VBA Macro (For Automation)
If you frequently need to capitalize a range, a simple VBA macro can do it in one click. This method permanently changes the selected cells.
Sub CapitalizeSelection()
Dim cell As Range
For Each cell In Selection
If cell.Value <> "" Then
cell.Value = UCase(cell.Value)
End If
Next cell
End Sub
To use this: press Alt+F11 to open the VBA editor, insert a new module (Insert > Module), paste the code, and close the editor. Then, select the cells you want to capitalize and press Alt+F8, choose “CapitalizeSelection”, and run it. Important: Save a copy of your workbook before running any macro—macros cannot be undone with Ctrl+Z. Also, this macro overwrites the original data, so use it on a copy if you need to keep the original.
How to Choose the Right Method
Consider your situation:
- Need a formula that updates automatically? Use
UPPERin a helper column. - One-time conversion without formulas? Use Flash Fill (Ctrl+E).
- Large dataset or recurring data cleaning? Use Power Query.
- Frequent, one-click capitalization? Use a VBA macro.
For most users, UPPER is the safest and most transparent method. Flash Fill is quick but can be finicky with irregular data. Power Query is overkill for small datasets but excels at repeatable transformations.
Common Problems and Misconceptions
Problem: UPPER doesn’t change numbers or symbols. That’s correct—it only affects letters. If you need to capitalize only the first letter of each word, use PROPER (e.g., =PROPER(A1) gives “Hello World”). If you need to capitalize only the first letter of a sentence, there’s no single function; you’d need a formula combining UPPER and LEFT.
Misconception: “Shift+F3” works in Excel. It doesn’t. In Excel, Shift+F3 opens the Insert Function dialog. The case-changing shortcut is only in Word.
Problem: UPPER returns a formula error. Check that the cell reference is correct and that the text isn’t a number formatted as text. If the cell contains a formula that returns text, UPPER works fine.
Problem: Flash Fill isn’t working. Ensure Flash Fill is enabled (File > Options > Advanced > Automatically Flash Fill). Also, make sure you’re typing the pattern in a column adjacent to the data, and that there are no blank rows in between.
Frequently Asked Questions
Can I capitalize all letters in a cell without a formula? Yes. Use Flash Fill (type the uppercase version in the next cell and press Ctrl+E) or use a VBA macro. Alternatively, use the UPPER function and then paste as values.
Does UPPER work on numbers? No, UPPER only affects text characters. Numbers and punctuation are left unchanged. If you have numbers stored as text, they will remain the same.
How do I capitalize only the first letter of each word? Use the PROPER function: =PROPER(A1) converts “hello world” to “Hello World”. It also handles names like “john smith” to “John Smith”.
Can I use UPPER on a range without a helper column? Not directly. You’d need to use a formula in a separate column, or use Power Query or VBA to modify the original range in place.
Why does my UPPER formula show #VALUE!? This usually happens if the referenced cell contains an error, or if you’re using a non-text value in a way that Excel can’t convert. Check the source cell for errors.
Is there a keyboard shortcut to capitalize all in Excel? No dedicated shortcut exists. The closest is Ctrl+E for Flash Fill after typing the first example, but there’s no direct “uppercase” shortcut like in Word.
Related
- P&L vs Balance Sheet: Key Differences Explained
- Google Sheets Sum Whole Column: Quick Formula
- Computer Data Encryption: How It Works
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Numbers Text to Columns: Split Your Data CorrectlyYes. Apple Numbers can split text from one cell or column into separate columns: on a Mac, select…
- Show Unread Emails in Outlook and Keep Them VisibleTo show only unread emails in Outlook, open the inbox or folder you want to check and apply…
- How to Hyperlink in Excel on a Mac: Web, Files, and CellsTo add a hyperlink in Excel for Mac, select the cell, press Command+K, enter or choose the link…
- Find Duplicate Values in Excel: Step-by-Step GuideTo find duplicate values in Excel, select the cells you want to check, then choose Home > Conditional…
- How to Autofill in an Excel Table: Steps That WorkTo autofill in an Excel table, enter a value or formula in a cell, then drag its small…
- Excel WEEKDAY: Return a Day Name from a DateTo return a weekday name from a date in Excel, use =TEXT(A2,"dddd"), assuming A2 contains a valid date;…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.