ZIP code compare

G

Guest

Guest
I have one set of ZIP codes I am trying to compare to another to see if any ZIPS in column 1 are equal to any ZIPS on column 2. Is there an easy way to put a yes/ no type answer next to the ZIPS in Coulmn 1 after looking up the inormation in Column 2? Example: the first ZIP in coulmn 1 is 42301- I'd like to see if that ZIP is listed anywhere in Column 2 and if so give me an indicator (in column 3 or somewhere) that the ZIP code is included.

Thanks.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Put the following formula in column 3:
=IF(COUNTIF(B:B,A1)>0,"yes","no")
This code will count the number of times the ZIP code in column A appears in column B. If the number is greater than 0 then it will display yes otherwise it will display no.

I hope this helps.
Kind regards, Al
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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