[英]Is it possible to subtract the content of one cell from another in excel using formula?
Is it possible in excel using any formula to subtract (or whatever appropriate terms we can call it) from one cell to another so that the third cell will contain the rest of the portion. 在excel中,是否有可能使用任何公式从一个单元格减去另一个单元格(或我们可以称呼的适当术语),以便第三个单元格包含其余部分。 For example, If Range("A1")
contains "I am not sure"
and Range("B1")
contains "not sure"
and as a result the Range("C1")
will have "I am"
when subtraction is performed. 例如,如果Range("A1")
包含"I am not sure"
而Range("B1")
包含"not sure"
,则执行减法时Range("C1")
将具有"I am"
。
Original data are like: 原始数据如下:
ColumnA ColumnB
I am not sure not sure
The sky is blue is blue
Applying any excel formula, after subtracting Range("B")
from Range("A")
, The Range("C")
will contain the rest of the portion like below: 应用任何excel公式,从Range("A")
减去Range("B")
, Range("C")
将包含其余部分,如下所示:
ColumnA ColumnB ColumnC
I am not sure not sure I am
The sky is blue is blue The sky
使用“ Substitute
功能和“ Trim
删除前导/后缀空格
=TRIM(SUBSTITUTE(A1,B1,""))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.