• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Text & Special Character Split

Hi All,
I need to split Special Characters like "," & "and" text character as given in sample excel file pls help on same Thanks.
 

Attachments

  • Book1.xlsx
    9.1 KB · Views: 19
Like you, I would use TEXTSPLIT. Can your users access PowerQuery?

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    ReplacedValue = Table.ReplaceValue(Source," and ",",",Replacer.ReplaceText,{"Input"}),
    SplitColumns = Table.SplitColumn(ReplacedValue, "Input", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), {"Input.1", "Input.2", "Input.3", "Input.4"}),
    Result = Table.TransformColumnTypes(SplitColumns,{{"Input.1", type text}, {"Input.2", type text}, {"Input.3", type text}, {"Input.4", type text}})
in
    Result
 
This formula work for Excel 2010 and up

In B2, formula copied across right and down:

=TRIM(MID(SUBSTITUTE(", "&SUBSTITUTE(SUBSTITUTE($A2,", and",",")," and",","),", ",REPT(" ",50)),COLUMN(A1)*50,50))

1694760488293.png
 
Back
Top