Hi, I'm a newbie this Forum and am newish to Excel. I have a large spreadsheet with multiple columns and rows. A list of zip codes in one column.
The sheet has a macro that kicks out a text file that is accessed by javascript. If a zip-code has a range in a cell like 98950-98953 or 99356-99356 (same zip represented as a range) the javascript can handle. If a single zip code does not have a range like 70601 the javascript does not handle. I would like to find all non-range zip cells like 70601 and replace them with a range like 70601-70601.
I've done a lot of search on ways to handle with IF statements but have not found anything. I've also been learning to use Macros with VB but usually need to find a specific example.
Thanks in advance.
The sheet has a macro that kicks out a text file that is accessed by javascript. If a zip-code has a range in a cell like 98950-98953 or 99356-99356 (same zip represented as a range) the javascript can handle. If a single zip code does not have a range like 70601 the javascript does not handle. I would like to find all non-range zip cells like 70601 and replace them with a range like 70601-70601.
I've done a lot of search on ways to handle with IF statements but have not found anything. I've also been learning to use Macros with VB but usually need to find a specific example.
Thanks in advance.