简体   繁体   English

有可能使用公式从Excel中的一个单元格的内容减去另一个单元格的内容吗?

[英]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,""))

You could potentially do it this way: 您可能会这样做: 在此处输入图片说明

暂无
暂无

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

相关问题 如何在Excel中从另一个减去一个文本单元格? - How to subtract one text cell from another in Excel? 如何通过使用Excel公式自动将单元格数据的最大值从一个选项卡复制到另一选项卡 - How to copy max value of a cell data from one tab to another tab automatically by using Excel formula 如何使用公式中的ID引用另一个Excel工作表中的单元格 - how to reference a cell in another excel worksheet using ID from a formula Excel:在另一张表中的引用单元格上使用公式 - Excel: Using formula on Referenced cell from another sheet 使用Excel获取具有公式的单元格的内容 - Get the content of a cell having formula using excel 如何使用python从xlsx文件中的另一列中使用单元格值从一列中减去单元格值 - How to subtract cell values from one column with cell values from another column in xlsx files using python 使用openpyxl将公式从一个单元格复制到另一个单元格 - Copy formula from one cell to another using openpyxl IF公式-EXCEL-从另一个单元格获取数据 - IF formula - EXCEL - obtain data from another cell Excel公式来检查一个单元格中的逗号分隔列表中的项是否存在于另一单元格中的逗号分隔列表中? - Excel formula to check if items from a comma separated list in one cell exist in a comma separated list in another cell? 是否可以在一个单元格中进行加/减,并在已经具有值的另一个单元中进行减/加? - Is it possible to add/subtract in one cell, and have it subtract/add in another cell that already has a value?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM