R
ronsmail
I am working on a project to take a list of ZIP codes (29,133 rows) an
sort it by territory, then find all ZIPs in that territory that are i
sequential order and make a ZIP range from the 2 extremes in th
sequential group.
The logic behind what I want to do goes like this:
Sort by Region code, then by Zone #, then by ZIP code. Find all group
of ZIP codes sequentially ordered and append the first ZIP in the grou
to column X and the last ZIP in the group to Column Y
sort it by territory, then find all ZIPs in that territory that are i
sequential order and make a ZIP range from the 2 extremes in th
sequential group.
The logic behind what I want to do goes like this:
Sort by Region code, then by Zone #, then by ZIP code. Find all group
of ZIP codes sequentially ordered and append the first ZIP in the grou
to column X and the last ZIP in the group to Column Y