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

Data Analysis

  • How To Load Analysis ToolPak in Excel
  • How to Create Column Chart in Excel
  • How to Create Gantt Chart in Excel
  • How to create dynamic reference table name in Excel
  • Excel Pie Chart

References

  • How to get relative column numbers in a range in Excel
  • How to use Excel ROW Function
  • Create hyperlink with VLOOKUP in Excel
  • Merge tables with VLOOKUP in Excel
  • How to use Excel LOOKUP Function

Data Validations

  • Excel Data validation unique values only
  • Excel Data validation date in next 30 days
  • Excel Data validation no punctuation
  • Excel Data validation must begin with
  • Excel Data validation require unique number

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.

Worked Example:   Check if range contains a value not in another range in Excel

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:

Worked Example:   Highlight dates between in Excel

{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.

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

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:

Last row number in range

Next Post:

Check multiple cells have same value 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 with boolean logic in Excel
  • How to use Excel XOR Function
  • OR function Examples in Excel
  • SWITCH function example in Excel
  • Invoice status with nested if in Excel

Date Time

  • Get first day of previous month in Excel
  • Get fiscal year from date in Excel
  • Assign points based on late time in Excel
  • Create date range from two dates in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel

General

  • List worksheet index numbers in Excel
  • How to calculate profit margin percentage in Excel
  • How to calculate decrease by percentage in Excel
  • Split Cell Content Using Text to Columns in Excel
  • Subtotal invoices by age in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning