Forum Discussion
sarahhcob
Jun 24, 2022Copper Contributor
Split data from one column into specific columns
Hello I need to split data from one column in excel to specific columns, depending on what numbers are contained in the combined one. i.e. for each row, I need to split the comma separated data ...
- Jun 24, 2022
When
=IFERROR( FILTERXML( "<t><s>"&SUBSTITUTE( $C3,",","</s><s>")&"</s></t>","//s[.=" & RIGHT(D$2, LEN(D$2) - FIND(" ",D$2) ) & "]"), "")
sarahhcob
Jun 24, 2022Copper Contributor
Thank you! It works perfectly, except that when I reach values of 10 and more, it is not recognising the 10, 11, 12 etc. as whole numbers, and is populating code 10 column with a 0, code 11 column with 1, code 12 column with 2, code 13 column with 3 etc, etc...
SergeiBaklan
Jun 24, 2022Diamond Contributor
When
=IFERROR( FILTERXML( "<t><s>"&SUBSTITUTE( $C3,",","</s><s>")&"</s></t>","//s[.=" & RIGHT(D$2, LEN(D$2) - FIND(" ",D$2) ) & "]"), "")- sarahhcobJun 24, 2022Copper ContributorPerfect, thank you so much!!!
- SergeiBaklanJun 24, 2022Diamond Contributor
sarahhcob , you are welcome