Features of !SEMTools
↑ Navigate Excel tasks and !SEMTools add-in features ↑

Find uppercase or lowercase letters in Excel cells

, creator of !SEMToolsUpdated 8 min readTopics: Text and characters

You can check if an Excel cell contains uppercase letters, test whether all its cased letters are uppercase, or match only a capital at the start. These are different conditions. Below I compare the formulas and show the !SEMTools check on a real column.

Capitalization can help you review names, abbreviations or inconsistent data entry, but it does not identify names by itself. “iPhone” starts with a lowercase letter, while a capital at the beginning of an ordinary sentence is not proof of a proper name.

Before changing or extracting text, I often run a TRUE/FALSE check and review the matching cells. That helps separate a case condition from the later operation:

  • bulk replacement of characters or words;
  • extraction of text with capital letters, whether words or entire cells;
  • deletion of characters, words, phrases or entire cell contents.

Test for uppercase English letters A–Z

The FIND function is case-sensitive. We can test each letter from A to Z and count how many searches return a position. COUNT ignores the errors returned for letters that are absent.

Since uppercase English letters go in a row in the ASCII table, from 65 to 90, you can use a compact array formula instead of listing all 26 letters:

=COUNT(FIND(CHAR(ROW($65:$90)),A1))>0

The formula returns TRUE if cell A1 contains at least one uppercase English letter. Use the fixed range $65:$90: otherwise, when you copy the formula to cells above or below, the range of letters shifts.

If rows may be inserted above or inside rows 65–90, use INDIRECT to keep the text reference “65:90” fixed. Dollar signs prevent changes when copying a formula, but they do not protect a row reference from structural changes to the sheet.

=COUNT(FIND(CHAR(ROW(INDIRECT("65:90"))),A1))>0

How it works step by step:

  • INDIRECT("65:90") creates a reference to rows 65 to 90;
  • ROW(…) returns an array of numbers from 65 to 90, the ASCII codes of A–Z;
  • CHAR(…) turns the codes into the letters A, B, C… Z;
  • FIND(…,A1) looks for each capital letter in A1 and returns its position or an error;
  • COUNT(…) counts the numbers, that is, successful searches, and ignores the errors;
  • >0 returns TRUE if at least one capital letter was found.

These classic array formulas work in Excel 2010 and later. In Excel 2019 and earlier, confirm them with Ctrl+Shift+Enter, without typing the outer array braces. In Microsoft 365, Excel 2021 and Excel 2024, use Enter.

In current Microsoft 365, REGEXTEST can match an uppercase A–Z letter. The default match is case-sensitive. This built-in function is not available in Excel 2024 or earlier perpetual versions:

=REGEXTEST(A1,"[A-Z]")

Check if a cell contains a capital letter

An A–Z test does not match accented capitals such as É, Ü or Ñ. To check cased letters more broadly, compare the text with its lowercase version instead of listing individual letters.

Use LOWER to convert the text, then EXACT for a case-sensitive comparison:

  • convert the value to lowercase;
  • compare the result with the original;
  • if they don’t match, at least one character was uppercase.

Here is the formula:

=NOT(EXACT(LOWER(A1),A1))

The test returns TRUE when Excel changes at least one character to lowercase. It covers cased letters supported by Excel, including many accented letters. Scripts without uppercase/lowercase forms do not pass this test merely because they contain letters. Blank cells and digits alone return FALSE.

Check if a cell contains lowercase letters

To check for lowercase letters, reverse the logic: convert with UPPER and test whether the text changed:

=NOT(EXACT(UPPER(A1),A1))
Capital and lowercase letters
C3=NOT(EXACT(LOWER(A3),A3))
ABCD
1TextA–Z capital?Any capital?Any lowercase?
2visit Paris in MayTRUE=COUNT(FIND(CHAR(ROW($65:$90)),A2))>0TRUE=NOT(EXACT(LOWER(A2),A2))TRUE=NOT(EXACT(UPPER(A2),A2))
3ÉCOLETRUE=COUNT(FIND(CHAR(ROW($65:$90)),A3))>0TRUE=NOT(EXACT(LOWER(A3),A3))FALSE=NOT(EXACT(UPPER(A3),A3))
4iPhoneTRUE=COUNT(FIND(CHAR(ROW($65:$90)),A4))>0TRUE=NOT(EXACT(LOWER(A4),A4))TRUE=NOT(EXACT(UPPER(A4),A4))
5lowercase onlyFALSE=COUNT(FIND(CHAR(ROW($65:$90)),A5))>0FALSE=NOT(EXACT(LOWER(A5),A5))TRUE=NOT(EXACT(UPPER(A5),A5))
6NASATRUE=COUNT(FIND(CHAR(ROW($65:$90)),A6))>0TRUE=NOT(EXACT(LOWER(A6),A6))FALSE=NOT(EXACT(UPPER(A6),A6))
72026FALSE=COUNT(FIND(CHAR(ROW($65:$90)),A7))>0FALSE=NOT(EXACT(LOWER(A7),A7))FALSE=NOT(EXACT(UPPER(A7),A7))

“ÉCOLE” has capitals, but É isn’t in A–Z; the first check still finds C, O, L, E. The LOWER/EXACT check works for any alphabet. “2026” has no letters at all, so every check is FALSE.

Test all caps and the first character

This test checks whether all cased letters in the cell are uppercase and whether at least one cased letter exists. Digits, spaces and punctuation are allowed, so “SALE 25%” passes, but “123” alone does not:

=AND(EXACT(UPPER(A1),A1),NOT(EXACT(LOWER(A1),A1)))

Does the first character have an uppercase form? This test does not skip leading spaces, digits or punctuation. It checks the character at position 1, not the first letter anywhere in the cell:

=AND(EXACT(LEFT(A1,1),UPPER(LEFT(A1,1))),NOT(EXACT(LEFT(A1,1),LOWER(LEFT(A1,1)))))

To count uppercase A–Z letters, use SUBSTITUTE, which is case-sensitive. The difference in LEN before and after each replacement gives the count. As in the first row-based formula, use INDIRECT if structural changes might move the referenced rows:

=SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(ROW($65:$90)),"")))
Other checks with letter case
B3=AND(EXACT(UPPER(A3),A3),NOT(EXACT(LOWER(A3),A3)))
ABCD
1TextAll caps?Starts with a capital?Capitals A–Z, count
2visit Paris in MayFALSE=AND(EXACT(UPPER(A2),A2),NOT(EXACT(LOWER(A2),A2)))FALSE=AND(EXACT(LEFT(A2,1),UPPER(LEFT(A2,1))),NOT(EXACT(LEFT(A2,1),LOWER(LEFT(A2,1)))))2=SUMPRODUCT(LEN(A2)-LEN(SUBSTITUTE(A2,CHAR(ROW($65:$90)),"")))
3ÉCOLETRUE=AND(EXACT(UPPER(A3),A3),NOT(EXACT(LOWER(A3),A3)))TRUE=AND(EXACT(LEFT(A3,1),UPPER(LEFT(A3,1))),NOT(EXACT(LEFT(A3,1),LOWER(LEFT(A3,1)))))4=SUMPRODUCT(LEN(A3)-LEN(SUBSTITUTE(A3,CHAR(ROW($65:$90)),"")))
4iPhoneFALSE=AND(EXACT(UPPER(A4),A4),NOT(EXACT(LOWER(A4),A4)))FALSE=AND(EXACT(LEFT(A4,1),UPPER(LEFT(A4,1))),NOT(EXACT(LEFT(A4,1),LOWER(LEFT(A4,1)))))1=SUMPRODUCT(LEN(A4)-LEN(SUBSTITUTE(A4,CHAR(ROW($65:$90)),"")))
5lowercase onlyFALSE=AND(EXACT(UPPER(A5),A5),NOT(EXACT(LOWER(A5),A5)))FALSE=AND(EXACT(LEFT(A5,1),UPPER(LEFT(A5,1))),NOT(EXACT(LEFT(A5,1),LOWER(LEFT(A5,1)))))0=SUMPRODUCT(LEN(A5)-LEN(SUBSTITUTE(A5,CHAR(ROW($65:$90)),"")))
6NASATRUE=AND(EXACT(UPPER(A6),A6),NOT(EXACT(LOWER(A6),A6)))TRUE=AND(EXACT(LEFT(A6,1),UPPER(LEFT(A6,1))),NOT(EXACT(LEFT(A6,1),LOWER(LEFT(A6,1)))))4=SUMPRODUCT(LEN(A6)-LEN(SUBSTITUTE(A6,CHAR(ROW($65:$90)),"")))
72026FALSE=AND(EXACT(UPPER(A7),A7),NOT(EXACT(LOWER(A7),A7)))FALSE=AND(EXACT(LEFT(A7,1),UPPER(LEFT(A7,1))),NOT(EXACT(LEFT(A7,1),LOWER(LEFT(A7,1)))))0=SUMPRODUCT(LEN(A7)-LEN(SUBSTITUTE(A7,CHAR(ROW($65:$90)),"")))

“All caps” also requires at least one letter, so “2026” is FALSE. The count uses case-sensitive SUBSTITUTE: “NASA” has 4 capitals, “ÉCOLE” 4 (É isn’t counted).

Check for uppercase letters with !SEMTools

For a whole column, I use the !SEMTools procedure instead of typing a compound formula, filling it down and replacing the results with values.

The path is FIND → Characters → Uppercase. This is a “has uppercase” check: it tests whether at least one matching character is present anywhere in each cell.

  • copy the source column to the next column;
  • with the copy still selected, choose FIND → Characters → Uppercase.

Cells containing an uppercase letter return TRUE; the rest return FALSE. This does not require the whole cell to be in caps, and it does not change the letter case. Review or filter the test results before your next operation.

In the animation, compare “new york pizza” with “New York pizza” and “iphone case” with “iPhone case”. The uppercase letter can be at the beginning or inside the text; the check still returns TRUE.

Find cells with uppercase letters in Excel
Any capital letter makes the cell TRUE: “Café” passes, “café” doesn't.

Match words by letter case

FIND → Words → By case is a separate group: lower, Proper and UPPER test words inside each cell. For example, “buy NOW” can match both lower and UPPER because it contains two different words. This is not the same as checking whether the whole cell is uppercase.

Find words in lowercase, Proper case or UPPERCASE inside Excel cells
Each column asks whether the cell has at least one word written that way, so “buy NOW” is TRUE twice.

Find cells with capital letters in whole columns right in place, without array formulas or helper columns.
!SEMTools solves this and hundreds of other text tasks in a couple of clicks!

Summary: finding uppercase and lowercase letters

Choose the condition first: A–Z capitals, cased uppercase or lowercase letters, all caps, or an uppercase first character. The formulas serve different purposes. For a column-wide “has uppercase” check, !SEMTools produces the result directly in your selection without writing or filling down a formula.

You may also be interested in related operations: regular expressions in Excel to find, replace and extract by pattern, and how to change letter case in Excel.

Leave a Reply

Your email address will not be published. Required fields are marked *

*