从Excel分别提取字符串 [英] Extracting string separately from Excel
本文介绍了从Excel分别提取字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Excel中有行
[test].[test1]
如何分别提取 test
和 test1
?
推荐答案
假定字符串在 A1
中,然后将此公式粘贴到 B1
:
Assuming the the string is in A1
, then paste this formula to B1
:
=TRIM(MID(REPT(" ", 999)&SUBSTITUTE(SUBSTITUTE($A1, "[", REPT(" ", 999)), "]", REPT(" ", 999)), COLUMN(A:A)*1999, 999))
您可以将 B1
中的公式复制到 C1
, D1
, E1
,...以获取第二三字...
You can copy the formula in B1
to C1
, D1
, E1
,... to get 2nd, 3rd,... word.
这篇关于从Excel分别提取字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文