Excel - Compare data (2 columns) from 2 worksheets within a workbook

Asked By MO on 13-Oct-09 08:52 AM
Hello,
I am trying to compare data (2 columns) from 2 worksheets within 1 workbook.
If the data is an exact duplicate (which it can be in several circumstances),
on the worksheet where I placing the formula, I want the duplicate data to
appear in two columns.

I intend to write the formula near the end of the worksheet in the workbook.

Can you help?

--
Thank you for your help
MO
Albany, NY




Jacob Skaria replied on 13-Oct-09 09:01 AM
Suppose you are comparing column A of Sheet1 with ColumnA of sheet2 try the
below formula in Sheet2 cell B1

=IF(COUNTIF(Sheet1!A:A,A1),A1,"")

=IF(COUNTIF(Sheet1!A:A,A1),"duplicate","not a duplicate")

If this post helps click Yes
---------------
Jacob Skaria
MO replied on 13-Oct-09 09:39 AM
Jacob,
Your formula did not work.  It kept bringing me to my saved files even
though I changed the formula to "look" at the tab on the worksheet.
--
Thank you for your help
MO
Albany, NY