+ Reply to Thread
Results 1 to 5 of 5

Split a text string values into a parts as required in column C and D

  1. #1
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Split a text string values into a parts as required in column C and D

    Hi,

    Required a formula help to Split a text string values into a parts as required in column C and D, based on data available in column-B.

    Sample Sheet and with expected results (Highlighted) are enclosed for the reference.


    Thanks for the help.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Split a text string values into a parts as required in column C and D

    Please try spill array

    =LET(z,B4:B14,i,FIND("ppm ",z&"ppm "),j,FIND(" 95 ",z&" 95 "),y,SUBSTITUTE(MID(z,IF(i>j,j,i)+4,99),"-D","D"),x,LEFT(y,FIND(" ",y&" ")-1),IF(y={"",""},z,CHOOSE({1,2},x,MID(y,LEN(x)+1,99))))

  3. #3
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Re: Split a text string values into a parts as required in column C and D

    Many thanks Bo_Ry for your amazing formula solution.


    i have an one issue when i added further data to in the text string it is return before spilt text value -(dash sign).


    for your reference sample sheet attached.

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Split a text string values into a parts as required in column C and D

    Try

    =LET(z,B4:B22,i,FIND("ppm ",z&"ppm "),j,FIND(" 95 ",z&" 95 "),v,MID(z,IF(i>j,j,i)+4,99),y,MID(v,1+(LEFT(v)="-"),999),x,LEFT(y,FIND(" ",y&" ")-1),IF(y={"",""},z,CHOOSE({1,2},x,MID(y,LEN(x)+1,99))))

  5. #5
    Forum Contributor
    Join Date
    08-19-2020
    Location
    Dubai
    MS-Off Ver
    Office365
    Posts
    131

    Re: Split a text string values into a parts as required in column C and D

    Many thanks Bo_Ry for the 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. [SOLVED] Split string to two equal parts
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-27-2016, 05:09 AM
  2. [SOLVED] Split a string into 3 parts based on _ sybol
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-31-2016, 06:00 PM
  3. find certain text in a string and split into a new column
    By NeoDasari in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2015, 03:52 PM
  4. [SOLVED] Split string and apply function on string parts
    By fandreacci in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2015, 12:34 PM
  5. [SOLVED] Split a string into parts
    By LeahS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2013, 09:33 AM
  6. Split String into 4 Parts - Max 30 Characters per Cell and Whole Words
    By keithm_007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2012, 05:56 AM
  7. [SOLVED] Dim String, and divide/split into parts
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2012, 12:37 PM

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