[Comma Delimited String] Need Help Extract Values

mzafar1076

New Member
Joined
Sep 22, 2017
Messages
8
I have tried several formulas from this forum, but I cannot get what I need.

I have a long spreadsheet with over 1000 values....

One of the columns....columns AC contains the following string....this is just an example...

These strings are not fixed.

There could only be one value or several values.

Example of one value:

POLABCD0001043;#8920;

Several Value Example String:

POLABCD0001043;#8920;#7232;#RECG0293969;#7054;#RECG0261579;#7011;#RECG1805163;#8392;#RECG2054797;#8547;RECG2435542;#8834;#RECG2435699;#8835;#RECG2208113;#8716;#RECG1846076;#8424;#RECG2033072;#8535

From the string listed above, here is what I am trying to get, but in rows instead of columns.....so, column AD would get the first value, AE, AF and so on...

POLABCD0001043
RECG0293969
RECG0261579
RECG1805163
RECG2054797
RECG2435542;
RECG2435699
RECG1846076
RECG2033072

Is there someone that might know how can I accomplish this?

Thank you in advance.
 
you mean like this?


Column1Column2Column3Column4Column5Column6Column7Column8Column9Column10Column11Column12Column13Column14Column15Column16Column17Column18
RECG0293969RECG0261579RECG1805163RECG2054797RECG2435542RECG 2435699RECG2208113RECG1846076RECG2033072RECG0293969RECG0261579RECG1805163RECG2054797RECG2435542RECG2435699RECG2208113RECG1846076RECG2033072

or


result
RECG0293969, RECG0261579, RECG1805163, RECG2054797, RECG2435542, RECG 2435699, RECG2208113, RECG1846076, RECG2033072, RECG0293969, RECG0261579, RECG1805163, RECG2054797, RECG2435542, RECG2435699, RECG2208113, RECG1846076, RECG2033072
 
Last edited:
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thank you Rick.

That does it....

RECG0485429 RECG0293969 RECG0261579 RECG1805163 RECG2054797

I appreciate it.
 
Upvote 0
for the second option from post#11

M code
Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
    #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Column1", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Column1"),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Column1", type text}}),
    #"Filtered Rows" = Table.SelectRows(#"Changed Type1", each Text.Contains([Column1], "REC")),
    #"Replaced Value" = Table.ReplaceValue(#"Filtered Rows","#","",Replacer.ReplaceText,{"Column1"}),
    #"Transposed Table" = Table.Transpose(#"Replaced Value"),
    #"Merged Columns" = Table.CombineColumns(#"Transposed Table",{"Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10", "Column11", "Column12", "Column13", "Column14", "Column15", "Column16", "Column17", "Column18"},Combiner.CombineTextByDelimiter(", ", QuoteStyle.None),"result")
in
    #"Merged Columns"

but maybe easier for you will be use Rick's solution :)
 
Upvote 0

Forum statistics

Threads
1,216,111
Messages
6,128,898
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top