Reputation: 7
ABC|DEF|GHI|JKL|
I have the above data. I want to create a formula by which all the data will get divided into different cells using | as delimiter
Upvotes: 0
Views: 198
Reputation: 265
Upvotes: 2
Reputation: 37145
FILTERXML()
will give you desired result.
=FILTERXML("<t><s>"&SUBSTITUTE(A1,"|","</s><s>")&"</s></t>","//s")
To get results in horizontal alignment use TRANSPOSE()
=TRANSPOSE(FILTERXML("<t><s>"&SUBSTITUTE(A1,"|","</s><s>")&"</s></t>","//s"))
More about FILTERXML()
is here by JvdV Extract substring(s) from string using FILTERXML
Upvotes: 2