Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to create Gauge Chart in Excel
  • Remove Duplicates Example in Excel
  • Filter Data Based on Date in Excel
  • Conditional Formatting Rules in Excel
  • Conditional Formatting Color Scales Examples in Excel

References

  • How to use Excel MMULT Function
  • How to get first row number in range in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation must not contain
  • Excel Data validation date in specific year
  • Excel Data validation specific characters only
  • Excel Data validation date in next 30 days
  • Prevent invalid data entering in specific cells

Check if multiple cells have same value with case sensitive in Excel

by

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 and AND functions. See example below:

Formula

{=AND(EXACT(range,value))}

Explanation

In the example shown, the formula in G5 is:

=AND(EXACT(B5:F5,B5))

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

How this formula works

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

=EXACT(B5:F5,B5)

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

{TRUE,FALSE,TRUE,TRUE,TRUE}

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:

=SUMPRODUCT(--(EXACT(range,value)))=COUNTA(range)

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.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to use Excel NOT Function
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel FALSE Function
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Count holidays between two dates in Excel
  • How to calculate Next working/business day in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Dynamic date list in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • How to randomly assign data to groups in Excel
  • How to randomly assign people to groups in Excel
  • Group times into unequal buckets in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel

General

  • How to generate random number between two numbers in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • Count cells less than in Excel
  • How to fill cell ranges with random text values in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning