0

我已经为此工作了大约一个星期,但我被困住了。我在这里没有看到任何与我的问题有关的表格,所以希望你们能提供帮助。

我正在尝试将sheet2中的数据与sheet1进行比较,如果B列中的值相同,请将sheet2中的数据粘贴到sheet1的下一个空白单元格中

我已经包含了一个电子表格,希望能更好地说明我的观点。

4

1 回答 1

0
=if(sheet2!B(some_number)=sheet1!B(some_number),fill_in_answer_you_want,0)

You would have to input this statement into the cell that you want. For example, in Cell C2 you would write:

=if(sheet2!$B2 = $B2,sheet2!$B2,0)

As for a way to fill in the next blank cell, you would have to write a vba script to find the cell you would like to place it in and place the above formula into the cell.

于 2013-05-13T16:29:00.077 回答