Hi,
Thanks in advance for your time.
I have two columns of zip codes taken from separate web sources that I need to match with if() functions and various other exact matching functions like vlookup() and match().
The problem is, no matter what I do, the zip codes will not format identically. I believe it has to do with their number format, because one of the groups pastes into Excel in the "general" format, but somehow has leading zeros still attached. The other group also pastes in "general" with leading zeros, but sometimes after editing this group the leading zeros disappear. I have no idea why the two columns are behaving differently, they both paste in general with leading zeros, but one group never loses its leading zeros, even when I try to force it. I have tried several methods, detailed below.
-I put both columns through the =clean(text("zipcode", "00000"), then pasted values only to a new column. This does not work even though visually, the values are all five-digit general numbers with a single trailing space.
-I put both columns through the =trim("zipcode") function, then pasted values only to a new column. This gives the same results as the first attempt, visually everything matches but it won't work with the matching formulas.
-I used data -> text to columns with no delimiters selected to force everything into general format, but this doesn't work either. It removes leading zeros from one set, but not the other.
When using conditional formatting to highlight duplicates, there are no duplicates between columns, even though they appear to be identical in every sense.
Does anyone know a formula or method, not mentioned above, that can force zip codes to be identical so they work with exact match formulas? Or does someone know of a possible error that could be causing this issue?
I truly have no idea what is going on here and I am at the end of my rope. I feel like I'm going crazy haha. Please help!!!
Thank you!
Bookmarks