Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel how to find values in 1 column exist in the range of values in another

I have two columns- column A which extends upto 11027(values) and column I which extends to 42000(values).Both the columns contains some code details.

Something like this

A               B q123           as124 as124          gh456 ff45           q123 dd1             dd2 xx2 xx3 xx4 

and so on...

I want to find if the names in column A exists in column B or not.using excel

like image 729
user1254579 Avatar asked Aug 28 '13 13:08

user1254579


People also ask

How do you return a value if a given value exists in a certain range?

Return a value if a given value exists in a certain range by using a formula. Please apply the following formula to return a value if a given value exists in a certain range in Excel. 1. Select a blank cell, enter formula =VLOOKUP(E2,A2:C8,3, TRUE) into the Formula Bar and then press the Enter key.

Which Excel function tells you if the value of one cell is present in another column?

The VLOOKUP function searches a value in the first column of a table or data range based on match type and returns its related value from that row in a specified column based on column_index_number. IF the value is found in that column then it returns the value as a result.


2 Answers

This is what you need:

 =NOT(ISERROR(MATCH(<cell in col A>,<column B>, 0)))  ## pseudo code 

For the first cell of A, this would be:

 =NOT(ISERROR(MATCH(A2,$B$2:$B$5, 0))) 

Enter formula (and drag down) as follows:

enter image description here

You will get:

enter image description here

like image 97
Mayou Avatar answered Sep 23 '22 02:09

Mayou


Use the formula by tigeravatar:

=COUNTIF($B$2:$B$5,A2)>0 – tigeravatar Aug 28 '13 at 14:50

as conditional formatting. Highlight column A. Choose conditional formatting by forumula. Enter the formula (above) - this finds values in col B that are also in A. Choose a format (I like to use FILL and a bold color).

To find all of those values, highlight col A. Data > Filter and choose Filter by color.

like image 34
sma Avatar answered Sep 25 '22 02:09

sma