ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Comparing Lists (https://www.excelbanter.com/excel-worksheet-functions/198113-comparing-lists.html)

PAL

Comparing Lists
 
I am trying to find which items in Column B are missing from A (finding the
reverse would be helpful to; any in column A not in column b)

Column A has data in 389 rows (A2:A389)
Column B has data in 400 rows (B2:B400)

I thought the formula below in Column C will call out the differences

=IF(B2=$A$2:$A$389,"Yes", "") then drag down to 400.

Ideas. Thanks.


Teethless mama

Comparing Lists
 
=IF(COUNTIF($A$2:$A$389,B2),"yes","")

copy down


"PAL" wrote:

I am trying to find which items in Column B are missing from A (finding the
reverse would be helpful to; any in column A not in column b)

Column A has data in 389 rows (A2:A389)
Column B has data in 400 rows (B2:B400)

I thought the formula below in Column C will call out the differences

=IF(B2=$A$2:$A$389,"Yes", "") then drag down to 400.

Ideas. Thanks.


Gary''s Student

Comparing Lists
 
=IF(COUNTIF($A$2:$A$389,B2)=0,"missing","")

--
Gary''s Student - gsnu200798


"PAL" wrote:

I am trying to find which items in Column B are missing from A (finding the
reverse would be helpful to; any in column A not in column b)

Column A has data in 389 rows (A2:A389)
Column B has data in 400 rows (B2:B400)

I thought the formula below in Column C will call out the differences

=IF(B2=$A$2:$A$389,"Yes", "") then drag down to 400.

Ideas. Thanks.



All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com