Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SPURLING
 
Posts: n/a
Default HOW DO I IDENTIFY DATA THAT IS DUPLICATED IN TWO SEPERATE WORKSHEE

I have two diferent lists of part numbers. I wish to identify the numbers
that are duplicated within both.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Marcelo
 
Posts: n/a
Default HOW DO I IDENTIFY DATA THAT IS DUPLICATED IN TWO SEPERATE WORKSHEE

Hi,

The first list is in A2:B19, and this range is named OldList. The second
list is in D2:E19, and the range is named NewList. The ranges were named
using the Insert - Name - Define command. Naming the ranges is not necessary,
but it makes them easier to work with.

As you can see, items in OldList that do not appear in NewList are
highlighted with a yellow background. Items in NewList that do not appear in
OldList are highlighted with a green background. These colors are the result
of Conditional Formatting.

How to do it
Start by selecting the OldList range.
Choose Format - Conditional Formatting
In the Conditional Formatting dialog box, use the drop-down list to choose
Formula is.
Enter this formula:

=COUNTIF(NewList,A2)=0
Click the Format button and specify the formatting to apply when the
condition is true (a yellow background in this example).
Click OK

The cells in the NewList range will use a similar conditional formatting
formula.

Select the NewList range.
Choose Format - Conditional Formatting
In the Conditional Formatting dialog box, use the drop-down list to choose
Formula is.
Enter this formula:

=COUNTIF(OldList,D2)=0
Click the Format button and specify the formatting to apply when the
condition is true (a green background in this example).
Click OK
Both of these conditional formatting formulas use the COUNTIF function. This
function counts the number of times a particular value appears in a range. If
the formula returns 0, it means that the item does not appear in the range.
Therefore, the conditional formatting kicks in and the cell's background
color is changed.

The cell reference in the COUNTIF function should always be the upper left
cell of the selected range.

hth
regards from Brazil
Marcelo

"SPURLING" escreveu:

I have two diferent lists of part numbers. I wish to identify the numbers
that are duplicated within both.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Vito
 
Posts: n/a
Default HOW DO I IDENTIFY DATA THAT IS DUPLICATED IN TWO SEPERATE WORKSHEE


Try using Countif.

This will count any occurances of items in current sheet within Sheet2
column A. If anything other than 0 appears, then you have duplicates.

You can change sheetnames and ranges/references to suit.

=Countif(Sheet2!$A$1:$A$100,A1) copied down


--
Vito
------------------------------------------------------------------------
Vito's Profile: http://www.excelforum.com/member.php...o&userid=29182
View this thread: http://www.excelforum.com/showthread...hreadid=555994

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
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Matching data from seperate excel files Stephen H Excel Worksheet Functions 1 November 11th 05 06:12 AM
Print data in each row on a seperate sheet template Chris Excel Discussion (Misc queries) 3 July 29th 05 01:51 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
need funct to match data in 3 seperate spreadsheets column 1 to v. lucky Excel Discussion (Misc queries) 2 February 8th 05 07:33 PM


All times are GMT +1. The time now is 04:26 AM.

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"