+ Reply to Thread
Results 1 to 11 of 11

highlighting duplicates

  1. #1
    Lynn
    Guest

    highlighting duplicates

    hi,
    i have a spreadsheet which contains a serial number on each row. There
    are 1000+ rows, does anyone has a macro that can check for rows with
    duplicated serial number and highlight them?
    thanks


  2. #2
    Roger Govier
    Guest

    Re: highlighting duplicates

    Hi Lynn

    One way
    Set up a helper column and enter
    =COUNTIF($A$1:A1000,A1)
    Copy down for 1000 rows
    Mark the block of data, Data>Filter>Autofilter and use the dropdown on
    the helper column to select values >1

    Regards

    Roger Govier



    Lynn wrote:

    >hi,
    >i have a spreadsheet which contains a serial number on each row. There
    >are 1000+ rows, does anyone has a macro that can check for rows with
    >duplicated serial number and highlight them?
    >thanks
    >
    >
    >


  3. #3
    Tom Ogilvy
    Guest

    Re: highlighting duplicates



    select the entire column with A1 as the active cell (for example).
    format => Conditional formatting

    change Cell Value is to Formula is in the first dropdown

    put in a formula relative to the active cell

    =Countif($A:$A,A1)>1

    then select the formatting you want to apply when a cell is a duplicate.

    --
    Regards,
    Tom Ogilvy



    "Lynn" <[email protected]> wrote in message
    news:[email protected]...
    > hi,
    > i have a spreadsheet which contains a serial number on each row. There
    > are 1000+ rows, does anyone has a macro that can check for rows with
    > duplicated serial number and highlight them?
    > thanks
    >




  4. #4
    Lynn
    Guest

    Re: highlighting duplicates

    can i put this as a marco so that i do not have to remmember this
    formula?


  5. #5
    Lynn
    Guest

    Re: highlighting duplicates

    thanks Tom,
    but still i need to remmember this formula =Countif($A:$A,A1)>1
    anyway for me to store it in excel and use it ?


  6. #6
    Tom Ogilvy
    Guest

    Re: highlighting duplicates

    http://www.cpearson.com/excel/duplicat.htm

    Will be a ready resource.

    --
    Regards,
    Tom Ogilvy


    "Lynn" <[email protected]> wrote in message
    news:[email protected]...
    > thanks Tom,
    > but still i need to remmember this formula =Countif($A:$A,A1)>1
    > anyway for me to store it in excel and use it ?
    >




  7. #7
    chris
    Guest

    Re: highlighting duplicates

    Highlight the column that contains the serial number, then goto
    data/filter/advanced filter and click the option "unique records only"
    it will HIDE all duplicated numbers. If you now select visible cells
    only and colour them, unhide all rows, you will be able to see
    duplicates


  8. #8
    Lynn
    Guest

    Re: highlighting duplicates

    sorry what do you mean?
    do you mean that storing Countif($A:$A,A1)>1 readily for use is not
    possible?


  9. #9
    Tom Ogilvy
    Guest

    Re: highlighting duplicates

    I guess that would depend on what you mean by storing.

    --
    Regards,
    Tom Ogilvy


    "Lynn" <[email protected]> wrote in message
    news:[email protected]...
    > sorry what do you mean?
    > do you mean that storing Countif($A:$A,A1)>1 readily for use is not
    > possible?
    >




  10. #10
    Lynn
    Guest

    Re: highlighting duplicates

    storing like i am able to click on a button and the formula will
    perform the job.
    can this be done in this case?


  11. #11
    Tom Ogilvy
    Guest

    Re: highlighting duplicates

    Sure. Turn on the macro recorder while you perform the action manually.
    then turn off the macro recorder. Now place a button on the sheet and use
    the recorded code as the action performed by the button.

    I have provided some links to primer material on macros in answer to a
    previous post of yours.

    --
    Regards,
    Tom Ogilvy


    "Lynn" <[email protected]> wrote in message
    news:[email protected]...
    > storing like i am able to click on a button and the formula will
    > perform the job.
    > can this be done in this case?
    >




+ 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