How to compare two columns in Excel and copy the corresponding value in the next column

自作多情 提交于 2019-12-20 04:24:10

问题


I have 3 columns in my Excel list. Column A contains "computer names", column C contains "Computer names" and column D contains "IP addresses". I want to compare data in column A with column C and if a match is found, copy the corresponding value in column D (IP Address) into column B.

Hope it makes sense.


回答1:


Use VLOOKUP

Example in cell B1:

=VLOOKUP(A1,C1:D4,2, FALSE)

where C1:D4 is the table that contains computer names and their corresponding IP addresses.



来源:https://stackoverflow.com/questions/22927231/how-to-compare-two-columns-in-excel-and-copy-the-corresponding-value-in-the-next

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