0

I have an excel file which contains something like this:

An excel file with such a row

I have a running python script which creates a User GUI. The GUI lists the "Description" column from the excel as a single line in the GUI. I would like to have new lines after each semicolon ";" in the Description. i.e

Current output:

Current Output

Expected output:

Expected output Expected output 2

matt
  • 3
  • 1
  • 3

1 Answers1

0

You may try FILTERXML()

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

More about FILTERXML()

enter image description here

Harun24hr
  • 30,391
  • 4
  • 21
  • 36
  • Hi Harun, i guess this is not what i want. I dont want the seperated result in Excel but in the GUI. – matt Jan 27 '22 at 15:51