简体   繁体   English

Excel IF A1是否存在于B列中,则C = D

[英]Excel IF A1 exist in column B, then C = D

I have an issue. 我有一个问题。

In excel I need If value from A column exit in column B, then I need to take value from C from same row as B and put it same row as A. I can do it manually but it is a lot of work for me. 在excel中,我需要如果A列中的值退出B列中,那么我需要从C中获取与B相同的行中的值,并将其与A放在同一行中。我可以手动完成此操作,但这对我来说是很多工作。 Maybe someone have formula, because what I was able to find it was only return true or false. 也许有人有公式,因为我能找到的只是返回true或false。 Maybe someone know other tool to do it. 也许有人知道其他工具可以做到这一点。

In D1 enter: D1中输入:

=VLOOKUP(A1,B:C,2,FALSE)

在此处输入图片说明

An error message will appear in D1 if the value can't be found. 如果找不到该值,将在D1中显示一条错误消息。 To avoid the error message use: 为避免错误消息,请使用:

=IFERROR(VLOOKUP(A1,B:C,2,FALSE),"")

instead. 代替。

暂无
暂无

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

相关问题 如果A1和B1都存在于C列数据数组的任何单个单元中,则D1 =“ YES” - If both A1 and B1 exist within any single cell within Column C data array, then D1=“YES” 将单元格a1中的JSON数据提取到b1,c1,d1等中。 - Excel - Extract JSON data in cell a1, into b1, c1, d1 etc.. - Excel Excel宏查找列B中的最后一行,选择另一个单元格A1,将公式从A1拖动到B中的最后一行 - Excel Macro Find Last Row In Column B, Select another cell A1, drag formula from A1 to last row in B 将数据从B,C,D列移到A列-Excel - Move data from columns B,C,D.. to column A - excel 需要Excel VBA列B和C或列D - Excel VBA Columns B and C OR Column D required Excel公式将A列和B列的值转移到C和D空单元格 - Excel Formula to shift value of Column A and B to C and D empty cells 我想使此代码适用于两个变量,它只复制B列中的单元格A1的数据,我希望它也记录D列中的单元格C1的数据? - I want to make this code to work for two variables it only copies data of cell A1 in column B i want it to record data of cell C1 in column D as well? 在Excel中2如何具有单元格A1、2、3等引用一个公式,该公式对应于关系B2和B列中的其他2个单元格,关系2个单元格A1、2、3等 - In Excel how 2 have cells A1, 2, 3 etc reference a single formula that corresponds 2 other cells in say columns B & C in relation 2 cells A1, 2, 3 etc 当 A1 和 B1 匹配 A2 和 B2 时,尝试连接 C 列中的值 - Trying to concatenate values in Column C when A1 & B1 match A2 & B2 Excel:将B列与A列匹配并将标识符放置在对应的C,D,E等列中 - Excel: Matching Column B with Column A and placing Identifier in Corresponding Column C,D,E,etc
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM