[英]Extracting text in excel cell
I have an excel column something like 我有一个像
900sft
1000sft
1050sft
1050sft
3000sft
217 sqyd
267sqyd
235sqyd
186sqyd
250sqyd
1610 sft
Now I want to extract the digits to the next cell and the text to another. 现在,我想将数字提取到下一个单元格,并将文本提取到另一个。 I managed to get the numbers by doing this:
通过这样做,我设法得到了数字:
=1*MID(raw!E2,MATCH(TRUE,ISNUMBER(1*MID(raw!E2,ROW($1:$9),1)),0),COUNT(1*MID(raw!E2,ROW($1:$9),1))) = 1 * MID(raw!E2,MATCH(TRUE,ISNUMBER(1 * MID(raw!E2,ROW($ 1:$ 9),1)),0),COUNT(1 * MID(raw!E2,ROW($ 1 :$ 9),1)))
-- raw!E2 is the source cell -- first record shows 900 -raw!E2是源单元格-第一条记录显示900
don't know how to separate the text.. any ideas please? 不知道如何分隔文本..有什么想法吗?
Thanks 谢谢
Let's say that the 900 is in cell F2. 假设900位于单元格F2中。 You can simply use something like this:
您可以简单地使用以下内容:
=TRIM(SUBSTITUTE(raw!E2,F2,""))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.