0

I want to look for a cell that contains a string and if it does then take a number in an adjoining cell on the same row and copy this to a new column. I know very little about Excel but tried:

=IF(FIND("sja",D14),M14=E14,M14=0)

and it didn't work. This is just for one row, but I hope to apply this to the entire column.

Basically I have a list of purchases and want to extract the amount from certain suppliers to a new column.

How might I achieve this?

4

1 回答 1

1

以下或类似情况可能适合:

SO16689364 示例

搜索词在第 1 行(M 和 N)中,以允许选择搜索不同的词而无需覆盖或硬编码。星号用于搜索该术语而不考虑上下文。SEARCH 也产生数字输出,但与 >0 结合应为 TRUE 或 FALSE(如果不是错误)。如果有错误,默认为空白 ("")。如果 D 可能包含多个实例,则总和使用单独的公式(在第 18 行中)。

于 2013-05-22T11:34:25.210 回答