ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Comparing columns from 2 different worksheets. (https://www.excelbanter.com/excel-worksheet-functions/92783-comparing-columns-2-different-worksheets.html)

Alant

Comparing columns from 2 different worksheets.
 
I have 2 worksheets. I need to compare the cells in column1/worksheet1 to
the cells in column1/worksheet2. If a cell in column1/worksheet1 is nowhere
in column1/worksheet2, then I want to display the missing cells in
column1/worksheet3 along with the corresponding column2 cells from
worksheet1. Note: worksheet 2 has many more rows than worksheet1.
Thanks

Miguel Zapico

Comparing columns from 2 different worksheets.
 
One way of doing it is using this function on sheet 3, column A:
=IF(ISNA(MATCH(Sheet1!A1,Sheet2!$A$1:$A$1000,0)),S heet1!A1,"")
And on column B:
=IF(A1="","",VLOOKUP(A1,Sheet1!$A$1:$B$500,2,FALSE ))
It will create a lot of blank rows, you can then sort the column and delete
the blanks.

Hope this helps,
Miguel.

"Alant" wrote:

I have 2 worksheets. I need to compare the cells in column1/worksheet1 to
the cells in column1/worksheet2. If a cell in column1/worksheet1 is nowhere
in column1/worksheet2, then I want to display the missing cells in
column1/worksheet3 along with the corresponding column2 cells from
worksheet1. Note: worksheet 2 has many more rows than worksheet1.
Thanks



All times are GMT +1. The time now is 12:49 AM.

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