Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 like this

E               I TSL_groups.mrk  pcbx_report.mrk abcd.mrk        jhuo.mrk 

and so on...

I want to find if the files in column I (heading Filename_B) exists in column E(heading Filename_A). If true, say TRUE in a new column let's say column K.

How do I do that? TIA.

like image 980
Nemo Avatar asked Jul 03 '12 16:07

Nemo


People also ask

How do I find the value of a column based on a cell?

It is quite easy to figure out the row number or column number if you know a cell's address. If the cell address is NK60, it shows the row number is 60; and you can get the column with the formula of =Column(NK60).


1 Answers

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.

like image 170
Brad Avatar answered Sep 20 '22 16:09

Brad