Skip to main content

How to highlight cells if not in another column in Excel?

Author: Xiaoyang Last Modified: 2024-10-22

In a worksheet, normally, you may need to compare two columns and highlight the cell values in a column which are not in another column to outstanding the results as following screenshot shown. And this article, I will talk about some good tricks to deal with this job.

A screenshot showing two columns with data to be compared in Excel

Highlight cells if not in another column with Conditional Formatting

Highlight cells if not in another column with Kutools for Excel


Highlight cells if not in another column with Conditional Formatting

In Excel, the Conditional Formatting feature can help you to highlight the different values between two columns, please do as follows:

1. Select cells in List A where you want to highlight the values not in List B. And then click Home > Conditional Formatting > New Rule, see screenshot:

A screenshot showing the Conditional Formatting menu in Excel for highlighting cells

2. In the popped out New Formatting Rule dialog box, select Use a formula to determine which cells to format under the Select a Rule Type section, and then enter this formula:=ISERROR(MATCH(A2,$C$2:$C$14,0)) into the Format values where this formula is true text box, see screenshot:

A screenshot showing the formula used to highlight cells not in another column using Conditional Formatting in Excel

Note: In the above formula: A2 is the first cell of the column that you want to highlight the different values, C2:C14 is another column range you want to be compared with.

3. Then click Format button, in the popped out Format Cells dialog box, please select one color under the Fill tab, see screenshot:

A screenshot showing the Format Cells dialog in Excel for selecting a fill color for the highlighted cells

4. And then click OK > OK to exit the dialogs, and all the values in List A but not in List B have been highlighted in List A at once, see screenshot:

A screenshot showing cells highlighted if they are not in another column

Note: On the other side, if you want to highlight the different values in List B, you just need to select the List B and apply this formula =ISERROR(MATCH(C2,$A$2:$A$15,0)) into the Conditional Formatting function.


Highlight cells if not in another column with Kutools for Excel

If you have Kutools for Excel, with its Select same & Different Cells utility, you can quickly highlight the different or same values from the two columns.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as follows:

1. Click Kutools > Select > Select Same & Different Cells, see screenshot:

A screenshot showing Kutools for Excel's 'Select Same & Different Cells' option

2. In the Select Same & Different Cells dialog box, please specify the following operations:

(1.) Select the two columns that you want to compare from the Find values in and According to boxes separately;

(2.) Select Each row under the Based on section;

(3.) Choose Different Values form the Find section;

(4.) Then choose a background color or font color that you want to highlight the values under the Processing of results.

A screenshot showing the Select Same & Different Cells dialog

3. And then click Ok button, and the values in List A but not in List B have been selected and highlighted at once, see screenshot:

A screenshot showing cells highlighted using Kutools for Excel after comparison

Note: To highlight the different values in List B, you just need to switch the range references in the Find values in and According to in the dialog box.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Demo: Highlight cells if not in another column with Kutools for Excel

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related articles:

How to check / find if value exists in another column?

How to compare two columns and list differences in Excel?

How to compare two columns and highlight when found in another column?

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!