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

Data Analysis

  • How to create a Histogram in Excel
  • How to add Trendline to a chart in Excel
  • How to Create Gantt Chart in Excel
  • How To Load Analysis ToolPak in Excel
  • How to Create Area Chart in Excel

References

  • How to get address of first cell in range in Excel
  • Approximate match with multiple criteria in Excel
  • How to get address of named range in Excel
  • Offset in Excel
  • Extract all partial matches in Excel

Data Validations

  • Data validation must not exist in list
  • Excel Data validation only dates between
  • How To Create Drop-down List in Excel
  • Prevent invalid data entering in specific cells
  • Excel Data validation whole percentage only

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

Worked Example:   Highlight cells that end with in Excel

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.

Worked Example:   Cell References: Relative, Absolute and Mixed Referencing Examples

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.

Worked Example:   Excel If, Nested If, And/Or Criteria Examples

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

Post navigation

Previous Post:

Check if range contains a value not in another range in Excel

Next Post:

How to test a range for numbers in Excel

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

  • IF function: Description, Usage, Syntax, Examples and Explanation
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel XOR Function
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • Get fiscal year from date in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Convert date string to date time in Excel
  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • How to get workdays between dates in Excel

Grouping

  • Map text to numbers in Excel
  • Group times into 3 hour buckets in Excel
  • Running count group by n size in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign data to groups in Excel

General

  • Spell Check in Excel
  • How to calculate total from percentage in Excel
  • How to make excel worksheets print on one page?
  • Excel Operators
  • How to password protect excel sheet?
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning