Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mj
 
Posts: n/a
Default help...finding duplicates

hello all,

i just want to know what formula will i use that will highlight the
duplicated entry in a column, or shall i say, highlight the second
record that appeared in the column. I did use the conditional formating
with this formula: =countif(A:A, A1)1 but it highlights the original
and the duplicate entry. What i want is a formula that would highlight
or mark the duplicate record in the column...please help.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default help...finding duplicates

Hi!

Try this:

Assume the range in question is A1:A10

Select the range A1:A10
Goto FormatConditional Formatting
Formula is: =COUNTIF(A$1:A1,A1)1
Click the Format button
Select the style(s) desired
OK out

Biff

"mj" wrote in message
oups.com...
hello all,

i just want to know what formula will i use that will highlight the
duplicated entry in a column, or shall i say, highlight the second
record that appeared in the column. I did use the conditional formating
with this formula: =countif(A:A, A1)1 but it highlights the original
and the duplicate entry. What i want is a formula that would highlight
or mark the duplicate record in the column...please help.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mj
 
Posts: n/a
Default help...finding duplicates

thanks sir but i have a follow-up question. what if i want my formula
to return the number of duplicates found in a certain column. how will
i do that? i manage to create a formula that would return "0" if the
range contains 1 "hit", how will i twist it so as i will get the no. of
duplicates in a column.

my formula is: {=if(countif('Sheet1'!$A$1:$EG$300, A3)=1, "0")}

EG: column 1 contains 1,2,2,3,4,5,5,5; since 1, 3, and 4 appeared once
in the series, i will get '0' in the target column where i paste my
formula. As for 2 and 5, notice that there are duplicates. what i want
now is add a formula from the original so i could get the values 2 and
3, since the nos. 2 and 5 appeared twice and thrice in the column
respectively.

I hope someone could help me nest my formula. thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default help...finding duplicates

Hi!

Try this:

# of duplicates = total entries - unique entries

Based on the sample you posted:

1,2,2,3,4,5,5,5

With that data in the range A1:A8:

=COUNT(A1:A8)-SUMPRODUCT((A1:A8<"")/COUNTIF(A1:A8,A1:A8&""))

Returns 3

I used the COUNT function since the data was all numeric. If the data is
text or both use the COUNTA function.

This assumes that there are no formula blanks within the range.

Biff

"mj" wrote in message
ups.com...
thanks sir but i have a follow-up question. what if i want my formula
to return the number of duplicates found in a certain column. how will
i do that? i manage to create a formula that would return "0" if the
range contains 1 "hit", how will i twist it so as i will get the no. of
duplicates in a column.

my formula is: {=if(countif('Sheet1'!$A$1:$EG$300, A3)=1, "0")}

EG: column 1 contains 1,2,2,3,4,5,5,5; since 1, 3, and 4 appeared once
in the series, i will get '0' in the target column where i paste my
formula. As for 2 and 5, notice that there are duplicates. what i want
now is add a formula from the original so i could get the values 2 and
3, since the nos. 2 and 5 appeared twice and thrice in the column
respectively.

I hope someone could help me nest my formula. thanks in advance



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
Finding Duplicates TLT Excel Worksheet Functions 2 February 23rd 06 04:06 PM
Finding duplicates Ted Metro Excel Worksheet Functions 2 November 21st 05 07:09 PM
Finding Duplicates nospaminlich Excel Worksheet Functions 4 February 5th 05 11:57 PM
Finding and Deleting duplicates in a column Brian Excel Worksheet Functions 3 February 5th 05 02:19 PM
Finding Duplicates and somehow flagging them in another column KenRamoska Excel Discussion (Misc queries) 1 January 31st 05 06:20 PM


All times are GMT +1. The time now is 04:51 PM.

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

About Us

"It's about Microsoft Excel"