+ Reply to Thread
Results 1 to 4 of 4

Extract string of text in the middle of 2 delimiters

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Extract string of text in the middle of 2 delimiters

    Hi, I have a raw text file with data in a single column

    Search Success -> Found Tags [5] - Views: 1939 - Redundant string of text here
    Data A1
    Data A2
    Data A3
    Data A4
    Data A5
    Search Success -> Found Tags [5] - Views: 2219 - Redundant string of text here
    Data B1
    Data B2
    Data B3
    Data B4
    Data B5

    So pretty much, I need to keep the text in red, from the 1st ":" until the 3rd "-" every 6 rows and to be able to auto fill down

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Extract string of text in the middle of 2 delimiters

    Try

    =MID($A1,FIND(":",$A1)+2,4)

    If all numbers are 4 digits

    Not sure on your data layout for auto filling .


    =MID(INDEX($A$1:$A$2,INT((ROWS($1:1)-1)/5)+1),FIND(":",INDEX($A$1:$A$2,INT((ROWS($1:1)-1)/5)+1))+2,4)

    will fill numbers down a single column
    Attached Files Attached Files
    Last edited by JohnTopley; 05-07-2018 at 05:48 AM.

  3. #3
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Extract string of text in the middle of 2 delimiters

    some digits are larger than 4, they range for 3-6

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Extract string of text in the middle of 2 delimiters

    Try this:

    =LOOKUP(10^35,--MID(A1,FIND(":",A1)+2,{1,2,3,4,5,6,7,8,9}))

+ 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 text from cell with delimiters
    By GreenWheels in forum Excel General
    Replies: 8
    Last Post: 11-21-2016, 12:45 PM
  2. Replies: 3
    Last Post: 07-20-2016, 03:52 AM
  3. [SOLVED] Extract string between delimiters
    By Apexeon in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-27-2015, 06:23 PM
  4. [SOLVED] Extract Text from middle of text string
    By reedersketer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2014, 05:12 PM
  5. Replies: 2
    Last Post: 04-09-2014, 11:48 AM
  6. Extract text from the middle of a string for concatenation
    By christopherp in forum Excel General
    Replies: 1
    Last Post: 05-16-2011, 08:55 AM
  7. RexEx to extract from middle or end of string
    By RobynC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2008, 12:14 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