+ Reply to Thread
Results 1 to 4 of 4

Looking for a way to extract a text with a pattern in a string.

  1. #1
    Registered User
    Join Date
    09-08-2012
    Location
    bliss
    MS-Off Ver
    Excel 2007
    Posts
    5

    Looking for a way to extract a text with a pattern in a string.

    Happy Halloween everyone

    Is it possible to extract a text that has a pattern or format in a string?
    For example I have to text boxes the first one shows the original text. When I click the button, it will only show the text that I want.

    untitled.JPG

    In the first box, the other texts that i don't want are random in length and are alphanumeric but the text that I want has a fixed length, fixed format/pattern and only numeric. And also, the whole string in the first text box does not have fixed length.

    Thanks~

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Looking for a way to extract a text with a pattern in a string.

    Hi

    Try this

    Please Login or Register  to view this content.
    rylo

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

    Re: Looking for a way to extract a text with a pattern in a string.

    hi domino21, option, press Run button
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-08-2012
    Location
    bliss
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Looking for a way to extract a text with a pattern in a string.

    hi domino21, option, press Run button
    Attached Files
    domino21.xlsm‎ (16.9 KB, 5 views)



    This worked great! Although I don't understand how the pattern code works. Thanks a bunch, watersev and rylo.
    Last edited by domino21; 11-04-2012 at 08:04 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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