Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Find Duplicate Entries

I have a list in column A and a list in column B. I would
like to have a macro that compares the two lists and then
records duplicate entries in column C and unique entries
in column D. Would anyone have a macro / macros that
would do this?

P.S. I know that this can be done with array formulas.
However, the data set is so large that the arrays did not
properly calculate. I would prefer code if possible.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Find Duplicate Entries

Hi,

This will find the duplicate entries . . .

Sub Find_Duplicates()

Dim CompareRange As Variant
Dim Selection As Variant
Dim x As Variant
Dim y As Variant

Set Selection = Range("B2:B6")
Set CompareRange = Range("C2:C6")

For Each x In Selection
For Each y In CompareRange
If x = y Then x.Offset(0, 2) = x
Next y
Next x

End Sub

John Mansfield
pdbook.com

-----Original Message-----
I have a list in column A and a list in column B. I

would
like to have a macro that compares the two lists and then
records duplicate entries in column C and unique entries
in column D. Would anyone have a macro / macros that
would do this?

P.S. I know that this can be done with array formulas.
However, the data set is so large that the arrays did not
properly calculate. I would prefer code if possible.
.

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
Find and Delete Duplicate entries Barry Walker Excel Discussion (Misc queries) 10 July 9th 07 06:02 PM
I need a formula to find duplicate entries between 2 files. ammoman Excel Discussion (Misc queries) 1 December 2nd 05 09:11 PM
How do I find duplicate entries in Excel cher Excel Discussion (Misc queries) 2 June 23rd 05 06:29 PM
find duplicate entries and delete them? Agnitoood Excel Worksheet Functions 1 February 28th 05 10:53 AM
Find duplicate entries kharrison Excel Discussion (Misc queries) 3 February 24th 05 11:19 PM


All times are GMT +1. The time now is 10:27 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"