简体   繁体   中英

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

=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.

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
  • You could also use Clean

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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