简体   繁体   English

用于拆分文本的Excel公式

[英]Excel formula to split the text

I need to split the below text like given below using Excel formula.我需要使用 Excel 公式拆分下面的文本,如下所示。

拆分文本

Edit : I misread your question and provided different solution earlier.编辑:我误读了您的问题并早些时候提供了不同的解决方案。 Here's is the formula这是公式

=TRIM(MID(SUBSTITUTE($A1,"/",REPT(" ",999)),(COLUMN(A:A)-1)*999+1,999)) =TRIM(MID(SUBSTITUTE($A1,"/",REPT("",999)),(COLUMN(A:A)-1)*999+1,999))

Do you need formulas?你需要公式吗? I think text to column would work much better.我认为文本到列会工作得更好。 Just set / as the delimiter and split column A. After, do a clean-up by looking for and removing spaces.只需将 / 设置为分隔符并拆分列 A。之后,通过查找和删除空格来进行清理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM