+ Reply to Thread
Results 1 to 4 of 4

help...finding duplicates

  1. #1
    mj
    Guest

    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. #2
    Biff
    Guest

    Re: help...finding duplicates

    Hi!

    Try this:

    Assume the range in question is A1:A10

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

    Biff

    "mj" <mj_bernabe@hotmail.com> wrote in message
    news:1141884356.083096.261130@p10g2000cwp.googlegroups.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. #3
    mj
    Guest

    Re: 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. #4
    Biff
    Guest

    Re: 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" <mj_bernabe@hotmail.com> wrote in message
    news:1141916881.234245.96010@v46g2000cwv.googlegroups.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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1