Find if value in column A contains value from column B?

前端 未结 3 1883
温柔的废话
温柔的废话 2021-01-30 21:12

I have two columns- column E which extends upto 99504(values) and column I which extends to 2691(values).Both the columns contains filenames with extension.

Something li

相关标签:
3条回答
  • 2021-01-30 21:15

    You can use VLOOKUP, but this requires a wrapper function to return True or False. Not to mention it is (relatively) slow. Use COUNTIF or MATCH instead.

    Fill down this formula in column K next to the existing values in column I (from I1 to I2691):

    =COUNTIF(<entire column E range>,<single column I value>)>0
    =COUNTIF($E$1:$E$99504,$I1)>0
    

    You can also use MATCH:

    =NOT(ISNA(MATCH(<single column I value>,<entire column E range>)))
    =NOT(ISNA(MATCH($I1,$E$1:$E$99504,0)))
    
    0 讨论(0)
  • 2021-01-30 21:16

    You can try this. :) simple solution!

    =IF(ISNUMBER(MATCH(I1,E:E,0)),"TRUE","")
    
    0 讨论(0)
  • 2021-01-30 21:42

    You could try this

    =IF(ISNA(VLOOKUP(<single column I value>,<entire column E range>,1,FALSE)),FALSE, TRUE)
    

    -or-

    =IF(ISNA(VLOOKUP(<single column I value>,<entire column E range>,1,FALSE)),"FALSE", "File found in row "   & MATCH(<single column I value>,<entire column E range>,0))
    

    you could replace <single column I value> and <entire column E range> with named ranged. That'd probably be the easiest.

    Just drag that formula all the way down the length of your I column in whatever column you want.

    0 讨论(0)
提交回复
热议问题