Excel- compare two cell from different sheet, if true copy value from other cell [closed]

烂漫一生 提交于 2019-12-11 04:07:00

问题


So, I have a worksheet A and worksheet B.

I would like to compare column A on both sheets with each other.

If the value is the same (true), than copy value from worksheet B, from column F (this value is email address, and it is of course different in every row).

I tried with VLOOKUP, but I cannot figure it out. My excel knowledge is quite poor.

Any help please. Thanks

EDIT: I want to check company names in first sheet against all of the company names in the other sheet. And for those which are the same, copy the emails (which I have only in sheet2)


回答1:


In your destination field you want to use VLOOKUP like so:

=VLOOKUP(Sheet1!A1:A100,Sheet2!A1:F100,6,FALSE)

VLOOKUP Arguments:

  1. The set fields you want to lookup.
  2. The table range you want to lookup up your value against. The first column of your defined table should be the column you want compared against your lookup field. The table range should also contain the value you want to display (Column F).
  3. This defines what field you want to display upon a match.
  4. FALSE tells VLOOKUP to do an exact match.


来源:https://stackoverflow.com/questions/15396677/excel-compare-two-cell-from-different-sheet-if-true-copy-value-from-other-cell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!