+ Reply to Thread
Results 1 to 11 of 11

Number identification

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    46

    Number identification

    Please Login or Register  to view this content.

    Can someone make a little change in the code.

    I have got little different addresses and the ZIP code is in the at the beginning, in middle and last. The code will only recognize if the zip code is the last word.
    New York 2 12453 USA
    California 2/7 USA 12458
    13416 USA
    Last edited by HelpExc; 12-14-2012 at 08:05 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Number identification

    Hi HelpExc,

    Suggest you to follow forum rules and put code tags in your code.. thanks.

    http://www.excelforum.com/forum-rule...rum-rules.html


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Number identification

    How about
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Number identification

    Thank you for this code, i noticed you had but USA into code. My bad but I have got all sorts of aadresses in Europa, China... .
    Can you make somekind on universal code?
    Thanks.

    Quote Originally Posted by jindon View Post
    How about
    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Number identification

    Then you need to show me some possible sample data with the result that you want, otherwise that too vague.

  6. #6
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Number identification

    Quote Originally Posted by jindon View Post
    Then you need to show me some possible sample data with the result that you want, otherwise that too vague.
    Here you go:
    Teollisuustie, 60100 SEINÄJOKI
    Vaskikatu 20380 TURKU
    Vehmaantie 7, 33470 YLÖJÄRVI
    Kiteentie 7, 82500 KITEE
    Pansiankatu 9, 38700 KANKAANPÄÄ
    London SW11 3NA, 98514 UK
    Hevoshaankatu 3, 28600 PORI
    New York 13416 USA
    Armilankatu 31, 53100 LAPPEENRANTA
    Kaakelikaari 2 A 01720 VANTAA
    Hongkong 98503, China
    Myllymäenkatu 6, 53550 LAPPEENRANTA
    Lempääläntie 22, 33840 TAMPERE

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Number identification

    First, you need to follow the rule about code tag, so you must edit your first post.
    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]

    Quote Originally Posted by dilipandey View Post
    Hi HelpExc,

    Suggest you to follow forum rules and put code tags in your code.. thanks.

    http://www.excelforum.com/forum-rule...rum-rules.html


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  8. #8
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Number identification

    Done, thank you for reminding me.

    Quote Originally Posted by jindon View Post
    First, you need to follow the rule about code tag, so you must edit your first post.
    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Number identification

    Thanks for that.

    This evaluates if the last appear block of number has 5 digits or not.
    Please Login or Register  to view this content.

  10. #10
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Number identification

    @HelpExc

    option, change Pattern line in Jindon code to:

    Please Login or Register  to view this content.
    Last edited by watersev; 12-14-2012 at 11:26 AM.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Number identification

    Quote Originally Posted by watersev View Post
    @HelpExc

    option, change Pattern line in Jindon code to:

    Please Login or Register  to view this content.
    Ignore it.


    12345 abc avenue 123 x apartment

    should be false
    Last edited by jindon; 12-14-2012 at 02:22 PM.

+ 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