Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mo Mo is offline
external usenet poster
 
Posts: 69
Default Compare data (2 columns) from 2 worksheets within a workbook

Hello,
I'm 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Compare data (2 columns) from 2 worksheets within a workbook

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" wrote:

Hello,
I'm 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mo Mo is offline
external usenet poster
 
Posts: 69
Default Compare data (2 columns) from 2 worksheets within a workbook

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


"Jacob Skaria" wrote:

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" wrote:

Hello,
I'm 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 columns of data in 2 worksheets to compare and then SUMIF ACFO 57 Excel Discussion (Misc queries) 1 April 21st 09 05:32 PM
how to compare 2 worksheets in 1 workbook Treasur2 New Users to Excel 2 May 30th 06 12:40 PM
Compare 2 columns - new worksheets DTTODGG Excel Worksheet Functions 1 November 29th 05 03:36 PM
how to compare columns in 4 worksheets Ellen Excel Discussion (Misc queries) 0 September 26th 05 07:01 PM
How can I compare worksheets in the same workbook? Malcolm M Excel Discussion (Misc queries) 2 May 16th 05 04:36 PM


All times are GMT +1. The time now is 06:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"