jas*_*son 3 regex arrays transpose google-sheets google-sheets-formula
假设我有一个带有以下字符串的单元格1. Finely chop onion & mushroom put in bowl 2. add beef, soy sauce, salt. mix 3. put patties on baking sheet 4. cook 5 mins, flip and bake for another 5 mins.
我想将字符串拆分为 4 个垂直堆叠的单元格
1. ...
2. ...
3. ...
我尝试过类似的方法,=split(A1,"\d.")但这不起作用。不确定是否regexextract可以用一行代码来完成。
尝试:
\n\n=TRANSPOSE(SPLIT(REGEXREPLACE(A1, "(\\d+\\.)", "\xe2\x99\xa5$1"), "\xe2\x99\xa5"))\nRun Code Online (Sandbox Code Playgroud)\n\n\n