Find values from one excel sheet in another

excel

Solution

You can use a simple `VLOOKUP` - For example, assuming that the content of cell A1 of sheet B is 2, and that the sheet you call A is called `SheetA`, you can put the following formula in cell B1:

 =IF(ISERROR(VLOOKUP(A1,SheetA!A:A,1,FALSE)),"",VLOOKUP(A1,SheetA!A:A,1,FALSE))

Problem

I have a column with the values in A excel sheet 1 1 1 2 2 2 3 3 3 4 4 4.... and i have in B excel sheet another column with values 1 2 4 ...., what i want is read values from B and see if they are in A sheet, for example if value 2 is in B sheet, then write true in a new column in sheet A in front of 2, and similarly false or nothing in front of value 3. thanks

Original source