[英]If a cell's value is found on another column, how to return the cell's value from another column which is on same row with the synced cell?
My Excel table is looking like this. 我的Excel表看起来像这样。
A column is the one that I want to fill in with correct data.
B column is where the lookup values are.
C column is the one where I want to extract data from.
D column is where data from B column will be searched.
For example, if data from B2 is found on D7 cell, I want to have in A2 the value from C7. 例如,如果在D7单元中找到了来自B2的数据,我希望在A2中具有来自C7的值。
My Countries///My Codes////All Countries//////All Codes 我的国家///我的代码////所有国家///////所有代码
AD Afghanistan AF
AU Albania AL
Algeria DZ
American Samoa AS
Andorra AD
Angola AO
Anguilla AI
Antarctica AQ
Antigua and Barbuda AG
Argentina AR
Armenia AM
Aruba AW
Australia AU
Austria AT
Azerbaijan AZ
It would be much appreciated your help because I would like to learn as much as I can about excel formulas. 非常感谢您的帮助,因为我想尽可能多地了解excel公式。
Kind Regards, Ioan 亲切的问候,伊安
Chris is right, looks like you need a vlookup, example 克里斯说得对,看起来您需要一个vlookup,例如
B1 would be B1将是
=Vlookup(A1,c1:d200,2,0) = VLOOKUP(A1,C1:d200,2,0)
B2 would be B2将是
=Vlookup(A2,c1:d200,2,0) = VLOOKUP(A2,C1:d200,2,0)
And so on 等等
It works like this Vlookup (value to lookup, range the lookup and return values are in, column number from range you want to return, exact match only (0 or false)) 它的工作方式类似于此Vlookup(要查找的值,查找和返回值所在的范围,您要返回的范围中的列号,仅完全匹配(0或false))
Though Chris's link is more detailed 尽管克里斯的链接更详细
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.