Home
Challenges
Check if Text is All Caps
Cleanup
Easy

Check if Text is All Caps

An Excel code list needs review, and you need to flag which entries are fully typed in uppercase and which are not.

AuthorExcelClash Team
PublishedApr 02, 2026
Check if Text is All Caps

The Problem

Promo codes, SKUs, and internal labels often follow an all-caps rule. The problem is that lists rarely stay clean for long. A few mixed-case entries slip in, and then someone has to scan row by row to find them.

That manual check is easy on five rows and annoying on five hundred. It also gets unreliable fast because numbers and letters can look similar when you are moving quickly. This challenge gives us a simple way to audit the list and count how many entries really follow the rule.

How We Solve It

The safest pattern is to turn each value into uppercase and compare it to the original text with EXACT. If both versions match exactly, the entry is all caps. If not, we label it as mixed.

Method 1: Compare with UPPER

Exact Upper Illustration
Method 1: Compare the original text to its uppercase version with EXACT.

This is the method the challenge wants. UPPER creates the all-caps version of the text, and EXACT checks whether the original already looks like that. Wrapping the result in IF lets us return clear labels instead of raw TRUE or FALSE values.

This solves the main audit problem because the worksheet needs to tell whether each code already follows the all-caps rule. By comparing the entry to its uppercase version, the formula can label the row without anyone having to inspect the text manually.

=IF(EXACT(A2, UPPER(A2)), "ALL CAPS", "MIXED")

Method 2: Check for all lowercase

Exact Lower Illustration
Method 2: Check whether an entry is fully lowercase.

Sometimes the useful question is the opposite one. Instead of looking for approved all-caps entries, you may want to find rows that were typed fully in lowercase. The same structure works, but this time you compare the value to LOWER(A2).

This solves a different casing problem, where the sheet needs to detect entries that lean entirely the other way. It is useful when the cleanup rule changes from enforcing uppercase to diagnosing how the text was entered.

=IF(EXACT(A2, LOWER(A2)), "LOWER", "MIXED")

Method 3: Avoid a numbers-only false positive

All Caps Guard Illustration
Method 3: Add a second check so numbers-only text does not get mislabeled.

A value like 12345 matches both its uppercase and lowercase versions because there are no letters to change. If your real worksheet mixes codes and pure numbers, add a second test so only text that behaves like uppercase text is marked as all caps.

This solves an edge case that can make the audit misleading. It separates true uppercase text from values that only look acceptable because they contain no letters at all, which keeps the final label more trustworthy.

=IF(AND(EXACT(A2, UPPER(A2)), NOT(EXACT(A2, LOWER(A2)))), "ALL CAPS", "MIXED")

Function Explanation

1. EXACT

EXACT compares two text values and respects case. That detail matters here because a normal equality check would treat uppercase and lowercase letters as the same. This function is what makes the audit trustworthy.

Learn more this functionEXACT

2. UPPER

UPPER converts letters to uppercase without changing the rest of the string. We use it to create the standard we want to compare against, which keeps the formula short and easy to copy down.

Learn more this functionUPPER

3. COUNTIF

COUNTIF gives us the summary at the end. After column B is filled with labels, it counts how many rows say ALL CAPS so the audit result is easy to read.

Learn more this functionCOUNTIF

One small gotcha is that punctuation and numbers stay the same when you use UPPER. That is usually fine for promo codes, but if your sheet includes entries with no letters at all, add the extra guard from Method 3.

Try Yourself

Audit the code list and mark each entry as ALL CAPS or MIXED. Then finish the two summary cells so you can see how many records were checked and how many passed the casing rule.

1
Objective #1
Cell: B2-B6

In Column B, audit the casing. Label the entry "ALL CAPS" if it matches its uppercase version exactly, otherwise label it "MIXED".

2
Objective #2
Cell: B9

In cell B9, count the total number of entries processed in your list.

3
Objective #3
Cell: B10

In cell B10, identify the total count of identified "ALL CAPS" strings in your database roster.

Tactical Arena
Objectives Met: 0 / 0
Share this challenge
Share this challenge

Let others know about this challenge!

Related Challenges
Analysis
#37
Calculate Pro-Rated Costs

An Excel billing sheet needs partial charges, and you need to calculate how much of a monthly cost applies to each service period.

Intermediate
Cleanup
#38
Identify Duplicate Transactions

An Excel transaction log may contain repeated IDs, and you need to flag possible duplicates before review.

Easy
Analysis
#39
Calculate Running Totals

An Excel transaction list needs a running balance, and you need to keep a cumulative total that updates row by row.

Intermediate
Analysis
#40
Flag High-Value Customers

An Excel sales sheet tracks customer orders, and you need to total each customer spend before labeling high-value accounts.

Intermediate
Discussion
0 Feedbacks
ExcelClash

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster—without boring lessons. Just hands-on practice that actually sticks.

Navigation
Back to Challenges
Go to Dashboard
Platform Home
Discover
SUM FunctionsLookup FunctionsConditional FunctionsLogical Functions
Support
About UsContact UsPrivacy PolicyTerms of Service
© 2026 ExcelClash, Inc. All rights reserved.
Objectives Met: 0 / 0