Quick, clean, and to the point

Multiple cells have same value case sensitive

Excel formula: Multiple cells have same value case sensitive
Generic formula 

To verify that multiple cells have the same value with a case-sensitive formula, you can use a simple array formula based on the EXACT function with the AND function. In the example shown, the formula in G5 is:


This is an array formula and must be entered with control + shift + enter


This formula uses the EXACT formula to compare a range of cells to a single value:


Because we give EXACT a range of values in the first argument, we get back an array result containing TRUE FALSE values:


This array goes into the AND function, which returns TRUE only if all values in the array are TRUE.

Ignore empty cells

To ignore empty cells, but still treat non-empty cells in a case-sensitive manner, you can use a version of the formula based on SUMPRODUCT:


Here, we count exact matches using the same EXACT formula above, get a total count with SUMPRODUCT, and compare the result to a count of all non-empty cells, determined by COUNTA.

This is an array formula but control + shift + enter is not required because SUMPRODUCT handles the array natively.

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.