• 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.

Split cell values based on a delimiter

Junarkar

Member
Hi,

below is a sample of my cell value;
248527/248528/248529/248690/248691/248692/248693/248694/248695
I want to separate each 6 digit numbers in different cells. So the result will looks like below;
248527248697248529248690248691248692248693248694248695

The "/" delimiter will not change and the numbers will be always 6 digit.

Can any one help me please.
 
and yet more option with Power Query

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"Column1.1", "Column1.2", "Column1.3", "Column1.4", "Column1.5", "Column1.6", "Column1.7", "Column1.8", "Column1.9"})
in
    #"Split Column by Delimiter"
 
and yet more option with Power Query

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Split Column by Delimiter" = Table.SplitColumn(Source, "Column1", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"Column1.1", "Column1.2", "Column1.3", "Column1.4", "Column1.5", "Column1.6", "Column1.7", "Column1.8", "Column1.9"})
in
    #"Split Column by Delimiter"
Thanks alot I tried text to columns. But I would love to use such VBA codes.
 
Junarkar
About Your ...But I would love to use such VBA codes.
Then You should open Your thread in VBA Macros
instead of Ask an Excel Question
 
Back
Top