Written by Allen Wyatt (last updated October 5, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003
In Canada, postal codes consist of six characters with a space in the middle: a letter, a number, a letter, a space, a number, a letter, and a final number. Thus, A1B 2C3 is a properly formatted postal code. If you are retrieving postal codes from an external database, they might not have the required space in the middle. Excel makes it easy to add such a space.
Let's assume that the improperly formatted postal codes are in column C. In column D you could use a formula such as the following:
=LEFT(B12,3) & " " & RIGHT(B12,3)
This formula uses string-manipulation functions to place a space in between the first and last three characters. Thus, if B12 contained A1B2C3, then the cell with this formula would display A1B 2C3.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (1931) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Formatting Canadian Postal Codes.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
Do you see some small rectangular boxes appearing in your formula results? It could be because Excel is substituting that ...
Discover MoreIf you have a mixture of numbers and letters in a cell, you may be looking for a way to access and use the numeric ...
Discover MoreWant to add up all the digits in a given value? It's a bit trickier than it may at first seem.
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2020-10-08 01:30:12
Andrew Hamlin
Wrap this in UPPER() to force alpha characters to capitals.
=UPPER(LEFT(H241,3) & " " & RIGHT(H241,3))
2017-06-02 15:48:16
Ajit Dudani
THANKS FOR THE TIP - GOT MY WORK DONE IN JIFFY
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments