Startseite » Excel EN » Excel Compare Two Columns – Find Matches and Differences on Windows, macOS & Ubuntu

Excel Compare Two Columns – Find Matches and Differences on Windows, macOS & Ubuntu

If you’re working with data in Excel, there are many instances where you need to compare two columns—whether to identify duplicates, mismatches, or missing entries. In this guide, you’ll learn exactly how to compare two columns in Excel using built-in functions, conditional formatting, and keyboard shortcuts. These methods work seamlessly on Windows, macOS, and Ubuntu/Linux.


🧮 Why Compare Columns in Excel?

  • To spot duplicates or unique values
  • To validate imported data
  • For reconciliation in finance or logistics
  • To improve data accuracy and consistency

✅ Method 1: Compare Two Columns Using Formulas

🔍 Find Matches

Use this formula to check if values in column A match those in column B:

=IF(A2=B2, "Match", "No Match")

Apply this in column C and drag down. Works in all platforms.

🔍 Highlight Differences

=IF(A2<>B2, "Different", "Same")

You’ll instantly know where values differ.


✅ Method 2: Compare Using Conditional Formatting

  1. Select the first column (e.g., A2:A100).
  2. Go to Home > Conditional Formatting > New Rule.
  3. Choose “Use a formula to determine which cells to format”.
  4. Enter:
=COUNTIF($B$2:$B$100, A2)=0
  1. Set a color to highlight mismatches.

📍 This highlights cells in Column A that do not exist in Column B.

Works the same on Windows, macOS, and Ubuntu (LibreOffice supports similar via Format > Conditional Formatting).


✅ Method 3: Use Excel’s “Go To Special” for Quick Checks

  1. Select both columns.
  2. Press F5 or Ctrl + G (Go To)
  3. Click Special > Row differences
  4. Excel highlights rows where data doesn’t match.

✅ Works best on Windows & macOS with native Excel. LibreOffice users can use Find & Replace instead.


⌨️ Useful Keyboard Shortcuts for Comparing Columns

ActionWindows ShortcutmacOS ShortcutUbuntu (LibreOffice)
Go To SpecialCtrl + G > Alt + SCmd + G > Cmd + Shift + SCtrl + F > More Options
Copy formula downCtrl + DCmd + DCtrl + D
Open conditional formattingAlt + H + LFn + Alt + H + LFormat > Conditional
Navigate to next mismatchCtrl + ↓ / ↑Cmd + ↓ / ↑Ctrl + ↓ / ↑

🧠 Bonus Tip: Compare Columns in Separate Sheets

To compare columns from different sheets:

=IF(Sheet1!A2=Sheet2!A2, "Match", "Mismatch")

You can even use VLOOKUP or XLOOKUP to match values across sheets.


❓ Frequently Asked Questions

How can I compare columns without formulas?
Use conditional formatting or the Go To Special tool for fast, visual comparisons.

Does LibreOffice support column comparison?
Yes. Use formulas like IF(A2=B2;"Match";"No") in LibreOffice Calc or apply conditional formatting via its own menu.

Can I compare columns with different lengths?
Yes, but ensure your formulas or conditional ranges match the longest column to avoid missing data.

Can I automate column comparison?
Yes! Use macros or Power Query in Excel to streamline large-scale data checks.


✅ Conclusion

Knowing how to compare two columns in Excel is one of the most useful skills for data cleaning, validation, and analysis. Whether you’re on Windows, macOS, or Ubuntu, Excel provides powerful tools—from formulas and formatting to built-in functions—that help you quickly find matches and differences with precision.

If you’re working with data in Excel, there are many instances where you need to compare two columns—whether to identify duplicates, mismatches, or missing entries. In this guide, you’ll learn exactly how to compare two columns in Excel using built-in functions, conditional formatting, and keyboard shortcuts. These methods work seamlessly on Windows, macOS, and Ubuntu/Linux.


Complete List of Windows Keyboard Shortcuts

If you need help for Windows, you can find a whole list of all keyboard shortcuts here.

https://keyboard-shortcuts.org/

Advertisment