簡體   English   中英

有可能使用公式從Excel中的一個單元格的內容減去另一個單元格的內容嗎?

[英]Is it possible to subtract the content of one cell from another in excel using formula?

在excel中,是否有可能使用任何公式從一個單元格減去另一個單元格(或我們可以稱呼的適當術語),以便第三個單元格包含其余部分。 例如,如果Range("A1")包含"I am not sure"Range("B1")包含"not sure" ,則執行減法時Range("C1")將具有"I am"

原始數據如下:

ColumnA            ColumnB   
I am not sure      not sure
The sky is blue    is blue

應用任何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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM