Comparing zip codes to keep in a column

xtremekyter

New Member
Joined
Aug 9, 2021
Messages
30
Office Version
  1. 2019
Platform
  1. Windows
I have an excel spreadsheet with full addresses and also have a spreadsheet of zip codes to keep. I am trying to find an automated way to compare and highlight zip codes not on my list of keepers without having to do it manually as I have ove 11,000 records. I'm thinking it would be an "is not equal to" function but have never used that.Thanks in advance. Jeff
 
Select Column F or the Column F range you need>
From Excel "Home" tab, Click "Conditional Formatting">
"New Rule">"Use a formula to determine which cells to format">
Enter my formula in Formula box>Click "Format">
Select "Fill", select fill color of your choice, click OK
I got conflicting results:
32068 was highlighted in one case and not highlight just below it. Same with 32073. I got one highlighted and one not.

1643148037726.png
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
How did you select your Range exactly?
 
Upvote 0
I should have been more specific about how to select your range...

=COUNTIF(H$2:H$15,F2)=0

1. Make sure your list of "Good zip codes" are in H$2:H$15 or Change this range in the formula accordingly, to wherever your list is on your sheet, make sure you use absolute referencing as shown.
2. You Must select your range Starting at F2, if your range starts at F1, then you can select the entire Column, change F2 in the formula accordingly to whatever cell your data starts.
 
Upvote 0
I should have been more specific about how to select your range...

=COUNTIF(H$2:H$15,F2)=0

1. Make sure your list of "Good zip codes" are in H$2:H$15 or Change this range in the formula accordingly, to wherever your list is on your sheet, make sure you use absolute referencing as shown.
2. You Must select your range Starting at F2, if your range starts at F1, then you can select the entire Column, change F2 in the formula accordingly to whatever cell your data starts.
It was my fault. I actually had 72 zip codes to keep but didn't alter the formula you provided to reflect that. It works perfectly. Thank you for the lesson. I am grateful. Jeff
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top