You are on page 1of 10

Check If Cells Match in Excel

The workbook shows how to construct the If match formula in Excel, so it returns logical values, custom text or a value
from another cell.

Author
Last update
Tutorial URL

Examples:
• Check if two cells match
• If two cells match, return another cell
• Case-sensitive If match formula
• Check if multiple cells are equal
• Case-sensitive formula for multiple matches
• If cell matches any cell in range
• Check if two ranges are equal
eck If Cells Match in Excel
rkbook shows how to construct the If match formula in Excel, so it returns logical values, custom text or a value
other cell.

Ablebits.com
29-Jul-22
Check if two or more cells match in Excel

two cells match


ells match, return another cell
nsitive If match formula
multiple cells are equal
nsitive formula for multiple matches
atches any cell in range
two ranges are equal
Value 1 Value 2 Cells match?
1 1 1 No Yes
10 11 FALSE No
x FALSE Yes
1/1/2022 1/1/2022 TRUE No Yes
3/4/2022 4/3/2022 FALSE No
x FALSE No
Apples apples TRUE No Yes
orange lemon FALSE No
Ordered Shipped Cost Matched item cost
Apples Apples $87 $87
Bananas Avocado $69
Cherries Cherries $68 $68
Cranberry Blueberries $56
Grapes Grapefruit $94
Lemons Lemons $80 $80
Oranges Oranges $70 $70
Ordered Shipped Items match?
AA-01 AA-01 Yes
Aa-02 aa-02 No
Bb-03 Bb-03 Yes
C-04 C-04 Yes
DA-05 Da-06 No
DB-06 DB-07 No
Ef-07 Fe-07 No
Value 1 Value 2 Value 2 Cells match?
1 1 1 1 Yes
10 11 11 0
x x x 1 Yes
1/1/2022 1/1/2022 1/1/2022 1 Yes
3/4/2022 4/3/2022 4/4/2022 0
x 0
Apples apples apples 1 Yes
orange lemon lemon 0
Ordered Shipped Installed Items match?
AA-01 AA-01 AA-01 1 Yes
Aa-02 aa-02 aa-02 0 No
Bb-03 Bb-03 Bb-03 1 Yes
C-04 C-04 C-03 0 No
DA-05 Da-06 Da-06 0 No
DB-06 DB-07 DB-07 0 No
Ef-07 Fe-07 Fe-07 0 No
Ingredient Alternatives Any match?
Apple Apple Orange Pear 1 Yes
Blueberry Cranberry Raspberry Strawberry FALSE No
Cinnamon Allspice Cinnamon Ginger TRUE Yes
Pork Beaf Lamb Veal FALSE No
Sugar Allulose Stevia Sugar TRUE Yes
MATRIX A
Tests UC 1.1 UC 1.2 UC 1.3 UC 1.4 UC 1.5 Matrixes match?
1.1 x x Boolean 1
1.2 x x Yes/No Yes
1.3 x x x
1.4 x x

MATRIX B
Tests UC 1.1 UC 1.2 UC 1.3 UC 1.4 UC 1.5
1.1 x x
1.2 x x
1.3 x x x
1.4 x x

You might also like