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

Data Analysis

  • How to calculate correlation coefficient Correlation in Excel
  • How To Create Pareto Chart in Excel
  • Filter Data Based on Date in Excel
  • Error Bars in Excel
  • How to Create One and Two Variable Data Tables in Excel

References

  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Basic INDEX MATCH approximate in Excel
  • How to use Excel VLOOKUP Function
  • How to get last row in numeric data in Excel
  • How to use Excel OFFSET function

Data Validations

  • Excel Data validation whole percentage only
  • Data validation must not exist in list
  • Excel Data validation specific characters only
  • Excel Data validation exists in list
  • How To Create Drop-down List in Excel

Check multiple cells are equal in Excel

by

To confirm two ranges of the same size contain the same values, you can use a simple array formula based on the AND function. See illustration below:

Formula

{=AND(range1=range2)}

Explanation

In the example shown, the formula in C9 is:

{=AND(B5:D12=F5:H12)}

Note: this is an array formula and must be entered with control + shift + enter.

How this formula works

The AND function is designed to evaluate multiple logical expressions, and returns TRUE only when all expressions are TRUE.

In this case the we simply compare one range with another with a single logical expression:

B5:D12=F5:H12

The two ranges, B5:B12 and F5:H12 are the same dimensions, 5 rows x 3 columns, each containing 15 cells. The result of this operation is an array of 15 TRUE FALSE values of the same dimensions:

{TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE;
TRUE,TRUE,TRUE}

Each TRUE FALSE value is the result of comparing corresponding cells in the two arrays.

The AND function returns TRUE only if all values in the array are TRUE. In all other cases, AND will return FALSE.

Case-sensitive option

The formula above is not case-sensitive. To compare two ranges in a case-sensitive manner, you can use a formula like this:

{=AND(EXACT(range1,range2))}

Here, the EXACT function is used to make sure the test is case-sensitive. Like the formula above, this is an array formula and must be entered with control + shift + enter.

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
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • Invoice status with nested if in Excel
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • Calculate retirement date in Excel
  • Get day from date in Excel
  • Calculate date overlap in days in Excel
  • List holidays between two dates in Excel
  • Get days between dates in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Group times into unequal buckets in Excel
  • Group times into 3 hour buckets in Excel
  • If cell contains one of many things in Excel

General

  • Count cells that contain errors in Excel
  • How to calculate percent change in Excel
  • How to calculate project complete percentage in Excel
  • How to get random value from list or table in Excel
  • Currency vs Accounting Format in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning