简体   繁体   English

用在不同单元格中找到的数据替换单元格

[英]Replacing cell with data found in a different cell

I am trying to get the cell 'Output' to show datatype that is found in cell A. For example , i am comparing cell C with Cell A , if cell C matches cell A , cell B data will be displayed on output column .我试图让单元格“输出”显示在单元格 A 中找到的数据类型。例如,我将单元格 C 与单元格 A 进行比较,如果单元格 C 与单元格 A 匹配,则单元格 B 数据将显示在输出列上。 is this achievable ?这是可以实现的吗?

The closes i tried is by using =countif(cellA1:cellA5,CellC1) > 0 but this will only return true or false.我尝试的关闭是使用=countif(cellA1:cellA5,CellC1) > 0但这只会返回 true 或 false。 im trying to acheive the datatype on output column我试图在输出列上实现数据类型

在此处输入图片说明

Use VLookup() like-使用VLookup() -

=VLOOKUP(F2,$A$1:$B$6,2,FALSE)

You can also use INDEX()/MATCH() combination like-您还可以使用INDEX()/MATCH()组合,例如-

=INDEX($B$2:$B$6,MATCH(F2,$A$2:$A$6,0))

If you have Office365 then you can use XLOOKUP() single function like-如果您有Office365那么您可以使用XLOOKUP()单个函数,例如-

=XLOOKUP(F2,$A$2:$A$6,$B$2:$B$6)

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM