Creating zip code ranges from one list - help

gdl614

New Member
Joined
Oct 26, 2005
Messages
13
Hello,

I have a long list of zip codes (this is just a small portion of the list) that I need to make into ranges. Is there a formula I can use?

From this list:
90080
90081
90082
90083
90084
90086
90087
90088
90089
90091
90093
90094
90095
90096
90097
90099
90101
90102
90103
90174
90185
90189
90201
90202
90209
90210
90211
90212
90213
90220

To this:

To From
90080 90084
90086 90089
90091 90091
90093 90099
90101 90103
90174 90174
90185 90185
90189 90189
90201 90202
90209 90213
90220 90220
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
try this,
Excel Workbook
A
1
290080
390081
490082
590083
690084
790086
890087
990088
1090089
1190091
1290093
1390094
1490095
1590096
1690097
1790099
1890101
1990102
2090103
2190174
2290185
2390189
2490201
2590202
2690209
2790210
2890211
2990212
3090213
3190220
3290221
3390222
Sheet1
Excel 2003
Excel Workbook
CD
1FromTo
29008090084
39008690089
49009190091
59009390097
69009990099
79010190103
89017490174
99018590185
109018990189
119020190202
129020990213
139022090222
Sheet1
Excel 2003
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.

Note: This requires a blank row above the data
 
Upvote 0
Got it working too. Would it be possible to add a 3 bit to the array to give ranges for each unique value in a 3 rd column when unique?
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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