Canadian Postal Code Ranges

plshelp

New Member
Joined
Nov 22, 2007
Messages
1
Hello!

I have a challenge with postal code ranges, I'm hoping that someone out there will be able to help me with this.

I have a file that gives Canadian cities with their postal codes, but the postal codes are in ranges. I need to convert the format to fill in the ranges, so I have the city listed on multiple rows with a unique postal code for each row.

Example

Input
Toronto, ON M1A1A1 M9Z9Z9

Desired Output
Toronto, ON M1A1A1
Toronto, ON M1A1A2
...
Toronto, ON M1A1A9
Toronto, ON M1A1B0
Toronto, ON M1A1B1

etc, etc.

To make this even more challenging, Canada Post does not use certain letters, so they will need to be excluded. These letters are D, F, I, O, Q, and U.

I have no idea how to approach this, so any help would be much appreciated!

Thank you
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You do realize that in order to output that one example alone you're looking at 400,000 records?
 
Upvote 0

Forum statistics

Threads
1,218,084
Messages
6,140,359
Members
450,283
Latest member
Gaz12345

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