Search code examples
stringexcelexcel-formulaworksheet-function

Splitting text columns


I have a very large file (8 million rows) I imported in PowerPivot with an address column I want to split:

enter image description here

I tried LEFT and FIND but couldn't get the output as I wanted.


Solution

  • With data in A1, in B1 enter:

    =TRIM(MID(SUBSTITUTE($A1,"#",REPT(" ",999)),COLUMNS($A:A)*999-998,999))
    

    and copy across.