To post as a guest, your comment is unpublished.· 2 years agoHi Manjot Singh,
You can use this formula =COUNTIF($B$1:$B$9,A1)
Return 0 indicates the number in Cell A1 does not exist in Column B, while Return 1 or other numbers means the number in Cell A1 exists in Column B. See below screenshot:
How to compare two columns for (highlighting) missing values in Excel?
For example I have two fruit lists in two worksheets as below screenshots shown, and now I need to compare these two lists and find out missing values in each list. It may be not easy to solve it manually. In this article, I will introduce two tricky ways to solve it easily.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
This method will take an example to find out missing values of Fruit List 1, and highlight/color these missing values in Fruit List 2. The following are detailed steps:
1. Select the first blank cell besides Fruit List 2, type Missing in Fruit List 1 as column header, next enter the formula =IF(ISERROR(VLOOKUP(A2,'Fruit List 1'!$A$2:$A$22,1,FALSE)),A2,"") into the second blank cell, and drag the Fill Handle to the range as you need. See below screenshot:
(1) In above formula, A2 is the value in Fruit List 2, 'Fruit List 1'!$A$2:$A$22 is the range whose missing values you are looking for.
(2) This formula ignores case sensitivity.
Then you will see missing values of Fruit List 1 is listing in the new Column as below screenshot shown:
2. Select the found values in the Fruit List 2, and highlight them with clicking the Home > Fill Color and selecting a fill color from drop down list.
3. You can apply similar formula =IF(ISERROR(VLOOKUP(A2,'Fruit List 2'!$A$2:$A$22,1,FALSE)),A2,"") (A2 is the fruit in Fruit List 1, and 'Fruit List 2'!$A$2:$A$22 is the range whose missing values you are looking for) to find out missing values in Fruit List 2 (see below screenshots), and then highlight these missing values in Fruit List 1 manually.
The long complicated formula may make you confused. In this method, I will introduce Kutools for Excel for you. ItsSelect Same & Different Cells utility can help you compare two lists and highlight unique values (missing values) quite easily in Excel.
1. Click the Kutools > Select > Select Same & Different Cells to open the Compare Ranges dialog box.
2. In the Compare Ranges dialog box, you need to:
(1) In the Find Values in box, specify the range of Fruit List 1 without the list header;
(2) In the According to box, specify the range of Fruit List 2 without the list header;
(3) In the Find section, please check the Different Values option;
(4) In the Processing of results section, please check the Fill backcolor option, and select a fill color from the below drop down list.
Note: Please uncheck the My data has headers option, because in our case two lists have different headers. If your lists have same headers, you can specify the ranges with list headers in both Find Values in box and According to box, and check the My data has headers option.
3. Click the Ok button. Another Compare Ranges comes out to show you how many values have been selected. Just click the OK button to close it.
Now you see all values which are missing in Fruit List 2 are highlighted by the specified fill color in Fruit List 1 as above screenshot shown.
4. You can apply this utility again to highlight all missing values of Fruit List 1 in the Fruit List 2.
Note: This utility is case- sensitive.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 years agoI have 10 barcodes in colume A and same barcodes in column B but 9 barcode. Can i find out with same on excel, please help me out.
To post as a guest, your comment is unpublished.· 2 years agoHi,
I have two lists.one with meaning and code.In a column i will show meaning but when when we select meaning, code should be come