Converting a row-based text file dataset to a column-based dataset in Microsoft Excel?

Occasional Visitor

I have a text file dataset with around 10000 thousand questions stacked on top of each other in the following form:


I have tried to transpose the rows to columns and it worked for one question:

enter image description here

It worked but i want to automate the process instead of doing it manually one by one.