Split a string (cell) in Excel without VBA (e.g. for array formula)

后端 未结 6 549
执笔经年
执笔经年 2020-11-27 21:30

I have data in an Excel spreadsheet with delimited strings. For simplicity, think of something like \"4#8#10\", with an arbitrary number of pieces.

Is

6条回答
  •  执笔经年
    2020-11-27 21:59

    Just in case someone is looking to do the same but with Google Sheets, here's how I do it

    Let's say A1 contains 4#8#10

    =ARRAYFORMULA(SPLIT(A1, "#"))
    

    That will create an array, and display the array entry in columns.

    If you need the array to be shown in rows, you can use

    =ARRAYFORMULA(TRANSPOSE(SPLIT(A1, "#")))
    

    I wish there was a SPLIT formula in MS Excel..

提交回复
热议问题