0

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

JvdV
  • 70,606
  • 8
  • 39
  • 70

2 Answers2

2

FILTERXML() will give you desired result.

 =FILTERXML("<t><s>"&SUBSTITUTE(A1,"|","</s><s>")&"</s></t>","//s")

enter image description here

To get results in horizontal alignment use TRANSPOSE()

=TRANSPOSE(FILTERXML("<t><s>"&SUBSTITUTE(A1,"|","</s><s>")&"</s></t>","//s"))

enter image description here

More about FILTERXML() is here by JvdV Extract substring(s) from string using FILTERXML

Harun24hr
  • 30,391
  • 4
  • 21
  • 36
2

You can try Text to Column enter image description here

  1. "Data" Tab
  2. "Text to Columns"
  3. "Delimited" Option
  4. Type the bar "|" in the "Other" option box