+ Reply to Thread
Results 1 to 4 of 4

Adding spaces to Canadian postal code

  1. #1
    Registered User
    Join Date
    03-01-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    1

    Adding spaces to Canadian postal code

    I have a spreadsheet that includes Canadian postal codes which, when correctly formatted are "XXX XXX". In my sheet they are all formatted "XXXXXX". How do I tell excel to add a space after the third character?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Adding spaces to Canadian postal code

    You could do that with a formula in another column, e.g. if postcodes start at A2 then use this formula in B2 copied down

    =REPLACE(A2,4,0," ")
    Audere est facere

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Adding spaces to Canadian postal code

    in another column enter formula like:

    =REPLACE(A2,4,0," ") where A2 contains a postal code entry.... and copy down for others.

    You can then copy and paste special >> values over the original and delete the formula column.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Adding spaces to Canadian postal code

    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.

    Thread moved to General forum.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1