Capitalize Only the First Letter in Excel (Sentence Case)
By ExcelReady TeamUpdated 6 min read
The short answer
To capitalize only the first letter in Excel, use =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))). LEFT takes the first character and UPPER makes it a capital; MID takes the rest and LOWER makes it small. To keep the rest exactly as typed, drop LOWER: =UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2)). Excel has no built-in sentence case function.
Key takeaways
- Sentence case is UPPER on the first character plus LOWER on the rest: =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))).
- Drop LOWER to capitalize the first letter but leave words like NYC or iPhone untouched.
- PROPER capitalizes every word, which is title case, not sentence case.
- Wrap the cell in TRIM first if the text might start with a space.
- Formulas go in a helper column; paste the results as values to replace the original text.
On this page+
To capitalize the first letter in Excel and make the rest small, combine four functions: =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))). This is called sentence case, like "Order shipped today". Excel has no button or single function for it, so this formula is the standard fix. This guide explains each part, shows a version that leaves the rest of the text alone, and covers the spaces and other traps that stop it from working.
The sentence case formula#
The formula splits the text into the first character and everything after it, changes the case of each part, and joins them again.
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2)))| Part | What it does | For "oRDER SHIPPED today" |
|---|---|---|
LEFT(A2,1) | Takes the first character | o |
UPPER(...) | Makes it a capital | O |
MID(A2,2,LEN(A2)) | Takes everything from character 2 onward | RDER SHIPPED today |
LOWER(...) | Makes it small | rder shipped today |
& | Joins the two parts | Order shipped today |
LEN(A2) counts the characters in the cell. MID asks for that many characters starting at position 2, which is always enough to reach the end. Asking MID for more characters than exist is fine; it simply stops at the end of the text. The LEFT function guide, MID function guide and LEN function guide cover each function, and the article on LEFT, RIGHT and MID shows more ways to cut text apart.
How to use it on a whole column#
You can't change text in place with a formula, so work in a helper column and then replace the original.
- In B2, type
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2)))and press Enter. - Fill it down: double-click the fill handle, or select the range and press Ctrl+D (Mac: ⌘D).
- Copy column B, then paste it over column A as values (Windows: Ctrl+Alt+V, then V, then Enter; Mac: ⌃⌘V, then choose Values).
- Delete the helper column.
| A (before) | B (formula result) | |
|---|---|---|
| 2 | oRDER SHIPPED today | Order shipped today |
| 3 | LATE PAYMENT RECEIVED | Late payment received |
| 4 | call back on monday | Call back on monday |
Notice row 4: "monday" stays small. The formula only knows about the first letter of the cell, not about names or days. Fix those by hand or with SUBSTITUTE.
How to capitalize the first letter but keep the rest#
Sometimes the rest of the text is already correct and contains capitals you want to keep, like NYC, iPhone or a product code. Leave out LOWER:
=UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2))For "the NYC office is open", this returns The NYC office is open. The sentence case formula would return "The nyc office is open", which is wrong.
A shorter alternative uses REPLACE to swap only the first character:
=REPLACE(A2,1,1,UPPER(LEFT(A2,1)))REPLACE starts at character 1, removes 1 character and puts the capital in its place. Use =REPLACE(LOWER(A2),1,1,UPPER(LEFT(A2,1))) for full sentence case.
Sentence case vs PROPER#
PROPER is the built-in function people try first, but it does something different. It capitalizes the first letter of every word.
| Text | PROPER | Sentence case formula |
|---|---|---|
| order shipped today | Order Shipped Today | Order shipped today |
| mcdonald | Mcdonald | Mcdonald |
| it's ready | It'S Ready | It's ready |
Use PROPER for names and titles, and the sentence case formula for descriptions, notes and status messages. The guide to changing case with UPPER, LOWER and PROPER covers PROPER's quirks, such as the capital after an apostrophe.
Fix spaces before you capitalize#
If the text starts with a space, the formula capitalizes the space, and the first letter stays small. Data copied from emails, forms and web pages often has these hidden spaces. Wrap every A2 in TRIM:
=UPPER(LEFT(TRIM(A2),1))&LOWER(MID(TRIM(A2),2,LEN(TRIM(A2))))For " late payment received ", the result is Late payment received, with the extra spaces gone. TRIM removes spaces at both ends and turns double spaces inside the text into single ones. The guide to cleaning messy data covers other invisible characters, and you can practise cleaning text in a live spreadsheet.
In Microsoft 365, the LET function can store TRIM(A2) once so you don't repeat it. The formula above works in every version.
Capitalize and join in one formula#
Because the result is just text, you can join it with other pieces using &. A common task is a display name such as "Priya S." from a first and last name typed in lower case:
=UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2)))&" "&UPPER(LEFT(B2,1))&"."With priya in A2 and sharma in B2, the result is Priya S.. The first part is the sentence case formula, then a space, then the first letter of the last name as a capital, then a full stop. The guide to getting initials from a name builds on the same LEFT trick, and how to combine text in Excel covers &, CONCAT and TEXTJOIN. Practise joining text to get quick with &.
Flash Fill: the no-formula option#
Flash Fill copies a pattern you type. In the column next to your text, type the first result the way you want it, such as "Order shipped today". Then press Ctrl+E on Windows, or use Data > Flash Fill on a Mac. Excel fills the rest of the column.
Flash Fill is fast for a one-time clean-up, but the results don't update if the original text changes, and it can guess the pattern wrong. Check a few rows. A formula is safer when the data will change or when a test asks for one.
Common mistakes#
These cause most sentence case problems:
- Leading spaces. The first "character" is a space. Use TRIM.
- Starting MID at 1.
MID(A2,1,LEN(A2))repeats the first letter: "Oorder shipped today". Start at 2. - Using PROPER. It gives title case, not sentence case.
- Expecting more than one sentence to be fixed. The formula only capitalizes the first letter of the cell. A second sentence after a full stop stays small.
- Checking case with =. In Excel,
="abc"="ABC"returns TRUE, because the equals sign ignores case. Use EXACT to check that the case really changed.
Practise it#
Sentence case uses four basic text functions at once, which makes it a great test of your text skills. Practise LEFT, RIGHT, MID and LEN in a live spreadsheet, then practise cleaning text: you type each formula and ExcelReady checks it instantly. Start with the display-name exercise on this page.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Build a display name like Priya S. from the lower-case names. Click C2 and capitalize the first name in A2 with UPPER, LEFT, LOWER, MID and LEN, then add a space, the capital first letter of B2 and a full stop.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Display name | |||
| 2 | sharma | |||
| 3 | berg | |||
| 4 | LOPEZ | |||
| 5 | ||||
| 6 | ||||
| 7 |
Tip: Sentence case for A2 is UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))). Then join " ", UPPER(LEFT(B2,1)) and "." with &.
Practise this in a lesson
Frequently asked questions
How do I capitalize only the first letter in Excel?
Use =UPPER(LEFT(A2,1))&LOWER(MID(A2,2,LEN(A2))). It makes the first character a capital and every other letter small, which is sentence case.
How do I capitalize the first letter without changing the rest?
Leave out LOWER: =UPPER(LEFT(A2,1))&MID(A2,2,LEN(A2)). The first letter becomes a capital and everything after it stays exactly as it was typed.
Is there a sentence case function in Excel?
No. Excel has UPPER, LOWER and PROPER, but no sentence case function. You build sentence case from UPPER, LEFT, LOWER, MID and LEN, or use Flash Fill.
Why doesn't PROPER give sentence case?
PROPER capitalizes the first letter of every word, so "order shipped today" becomes "Order Shipped Today". For only the first letter, use the UPPER and LEFT formula instead.
Why is the first letter still small after my formula?
The cell probably starts with a space, so UPPER capitalizes the space. Wrap the cell in TRIM: =UPPER(LEFT(TRIM(A2),1))&LOWER(MID(TRIM(A2),2,LEN(TRIM(A2)))).