+ Reply to Thread
Results 1 to 3 of 3

Formula to Extract site code from text string

  1. #1
    Registered User
    Join Date
    08-01-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    54

    Formula to Extract site code from text string

    Hi, I need help creating a formula that will extract a site code from text strings with varying lengths. For example this is the text string and I want to extract the red text into a new field.
    HONEG BUCKETFLOHAWK//PUYALLUP//98373//103137391INACT//US

    I have attached a sample of my data.

    Thank you for your help.
    Attached Files Attached Files
    Last edited by bbeards; 11-24-2020 at 12:56 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Formula to Extract site code from text string

    Hi there. This should do th ejob for you:

    =TRIM(MID(SUBSTITUTE("//"&$A2,"//",REPT(" ",100)),400,100))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Formula to Extract site code from text string

    I don't know what you changed in your first post AFTER I replied to you. Please don't post-edit posts, as it can cause confusion! It seems, however, that you got sorted. If so, you're welcome. That said, some feedback is always appreciated!!



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Extract transaction code out of a text string
    By Smartalekchick in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2020, 08:45 AM
  2. Formula to extract text from a string
    By andrea5676 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2016, 03:45 PM
  3. [SOLVED] Extract 2 elements from HTML table (code + site provided)
    By efarkouh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-22-2016, 11:04 AM
  4. [SOLVED] Help needed with VBA code to extract Phrases/ords from text string
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2015, 09:08 AM
  5. Extract code from text string
    By dionysusftw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 02:30 PM
  6. Code to Extract certain text from a string
    By bcorm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2013, 01:57 PM
  7. [SOLVED] Extract text from a string of text (amend formula to include new criteria)
    By robertguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 04:53 PM

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