简体   繁体   English

检查或查找值是否存在于另一列中

[英]Check Or Find If Value Exists In Another Column

It should be very easy but I just can not understand whats wrong anymore.这应该很容易,但我就是不明白出了什么问题。 I have 3 columns, first and third column has numbers and I want the second column to show if a number in column 1 exists in column 3. I have found a code online我有 3 列,第一列和第三列有数字,我希望第二列显示第 1 列中的数字是否存在于第 3 列中。我在网上找到了代码

=IF(ISERROR(VLOOKUP(A7;$C$2:$C$3400; 1; FALSE));"Not Exist";"Exist" )

Now I know the number "5568" exist in A7 and the same number "5568" exists in C2365.现在我知道 A7 中存在数字“5568”,而 C2365 中存在相同的数字“5568”。

But the code above gives me value "Not Exist".但是上面的代码给了我“不存在”的价值。

Try:尝试:

Sheet Structure:表结构:

在此处输入图片说明

Formula:公式:

=IF(COUNTIF($C$1:$C$5,A1)>0,"Exist","Not Exists")

Note:笔记:

  • Check for spaces before or after the values using Trim使用Trim检查值之前或之后的空格
  • You could also use Clean你也可以使用Clean

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

相关问题 Excel-检查值是否存在于另一个工作表的列中并返回相邻列 - Excel - Check if value exists in a column in another worksheet and return adjacent column 来自A列的VBA检查值在另一个工作簿中 - VBA check value from column A exists in another workbook 检查 VBA 列中是否存在值 - Check if value exists in column in VBA 检查其他多个工作表上是否存在excel单元格值-如果是,则返回存在于另一列中的工作表名称 - Check if an excel cell value exists on multiple other sheets - and if so return the name of the sheet it exists on in another column 检查值是否存在于另一列中 - Checking if a value exists in another column Excel:检查列中是否已存在单元格值,然后减去并显示另一个值 - Excel: Check if cell value already exists in column, and then substract and show another value 检查所有列值是否存在于另一个列表中 - Check if all column values exists in another list 查找单元格中的值是否存在于另一个范围/单元格中 - Find if a value in a cell exists in another range/cell 使用python查找Excel中的列中是否存在值 - Find if a value exists in a column in Excel using python 检查列中的 substring 是否存在于另一个表列中的字符串中 - Check if substring from column exists inside string in another table column
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM