+ Reply to Thread
Results 1 to 5 of 5

Separating Pin-code (Zip-code) from Address.

  1. #1
    Registered User
    Join Date
    10-29-2015
    Location
    india
    MS-Off Ver
    2013 standard
    Posts
    12

    Separating Pin-code (Zip-code) from Address.

    Please help me on below :
    1. I have customer-wise Addresses. Address in each row and in one cell per customer.I want to Separating Pin-code (Zip-code) from Address in another cell.

    Problem is Pin-code is not only present at the end of the address but also come in-between.
    Pincode can be missing - For this case empty cell is the desired output.
    There is also cases where inbetween pin-code there is space . Example :- 400 256 , Desired output in another cell will be 400256.

    I am attaching the Excel where the sample data is there
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,474

    Re: Separating Pin-code (Zip-code) from Address.

    Deleted my answer, the other two answers are a lot nicer
    Last edited by davesexcel; 11-13-2017 at 10:08 AM.

  3. #3
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: Separating Pin-code (Zip-code) from Address.

    In C2,
    =MAX(IFERROR(MID(SUBSTITUTE(B2," ",""),ROW(INDIRECT("1:"&LEN(B2))),6)*1,""))

    ctrl + shift + enter and drag down

    Please find
    Attached Files Attached Files
    To attach worksheet Go advanced -> Manage attachments -> Choose file -> Upload
    Don't forget to Mention your desired result in the sheet..
    There should be sample data only, a lot of data creates confusion.

    Thanks & Regards

    Shivya

    http://excelvbatipsforbeginners.blogspot.in/

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Separating Pin-code (Zip-code) from Address.

    OR,

    Try the below formula in C2:

    Please Login or Register  to view this content.
    - drag down the cells.

    See the attached file.
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Separating Pin-code (Zip-code) from Address.

    if you've PowerQuery installed you can try this one:
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vb code to get vpn and ip address
    By ph011241 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 09-27-2016, 08:12 AM
  2. Separating $1 and $2 Coupons by Bar Code
    By Mamagregory in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2016, 11:20 PM
  3. [SOLVED] VB Code to get address
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-29-2016, 02:22 PM
  4. How to get a Zip Code from an address
    By Drgre in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-20-2015, 07:17 AM
  5. separating a post code
    By Lorna B in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 03:45 PM
  6. Replies: 1
    Last Post: 03-08-2012, 01:57 PM
  7. Separating text and numbers from a mixed code
    By amahesh101 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2010, 03:42 AM

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