excel - Compare two values and get a third -


i having difficulty getting work. have 3 columns, , 2 of have duplicate values in them (which thing). need take column 1 , compare column 2. if value in column 1 in column 2 value in column 3. example:

hello | test   | 123 test  | object | 321 dog   | cat    | 456 cat   | animal | 654 

(i know bit confusing so..) seeing there test , cat in both column 1 , 2 values 123 , 456.

anyone know of formula this?

if i'm understanding correctly, should trick:

=if(iserror(match(b1,$a$1:$a$4,0)),"",c1) 

the $a$1:$a$4 range of column check.

check see if there match value in other column.

if so, value listed in column c.

you drag formula down column d , list values this:

picture


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -