Below are a few popular ways to test whether the three cells A1, B1, and C1 all contain exactly the same value. Pick whichever style feels most natural for you—each returns TRUE/FALSE (or a custom message if you wrap it in IF).
────────────────────────────────────────
- Classic AND comparison
────────────────────────────────────────
Formula
=AND(A1=B1, B1=C1)
Why it’s nice
• Simple and readable
• Works for numbers, dates, and text (case-insensitive for text)
Add a friendly message
=IF(AND(A1=B1, B1=C1), "All match", "Different")
────────────────────────────────────────
2) COUNTIF trick (scales to larger ranges)
────────────────────────────────────────
Formula
=COUNTIF(A1:C1, A1)=3
Why it’s nice
• Only one comparison no matter how many cells you’re testing
• Easy to expand—just change the 3 to COUNTA(A1:C5) or similar
• Ignores case for text (same as normal comparison)
────────────────────────────────────────
3) MIN = MAX (numbers or dates only)
────────────────────────────────────────
Formula
=MIN(A1:C1)=MAX(A1:C1)
Why it’s nice
• Super‐compact for numeric data
Caveat: Works only for truly numeric/serial date values, not text.
────────────────────────────────────────
4) Case-sensitive text check with EXACT
────────────────────────────────────────
Formula
=AND(EXACT(A1,B1), EXACT(B1,C1))
Why it’s nice
• Honors upper/lower-case differences (“ABC” ≠ “abc”)
────────────────────────────────────────
5) Modern Excel: COUNTUNIQUE (Microsoft 365 / Excel 2021)
────────────────────────────────────────
Formula
=COUNTUNIQUE(A1:C1)=1
Why it’s nice
• Automatically adapts to any range size
• Works for text, numbers, dates, etc.
────────────────────────────────────────
Need to ignore blanks?
────────────────────────────────────────
Example (returns blank if every cell is blank; otherwise checks for equality):
=IF(COUNTA(A1:C1)=0, "",
COUNTIF(A1:C1, A1)=COUNTA(A1:C1))
Pick the method that best fits your sheet style. Personally, I use AND for a quick three-cell check and COUNTIF/COUNTUNIQUE when the range might grow later. Happy spreadsheeting! 🙂