Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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, DataFilterAutofilter 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default highlighting duplicates

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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" wrote in message
oups.com...
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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default highlighting duplicates

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

Will be a ready resource.

--
Regards,
Tom Ogilvy


"Lynn" wrote in message
oups.com...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default highlighting duplicates

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

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default highlighting duplicates

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

--
Regards,
Tom Ogilvy


"Lynn" wrote in message
oups.com...
sorry what do you mean?
do you mean that storing Countif($A:$A,A1)1 readily for use is not
possible?



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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

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
Highlighting duplicates across many sheets jpeevy Excel Worksheet Functions 3 January 20th 12 06:20 AM
highlighting duplicates...except it doesn't boombox Excel Discussion (Misc queries) 2 September 17th 09 11:33 PM
highlighting duplicates alex Excel Worksheet Functions 2 February 1st 06 05:41 PM
Help with Highlighting all duplicates in a row Jimv Excel Discussion (Misc queries) 4 April 21st 05 07:12 PM
Highlighting Duplicates Sam New Users to Excel 6 March 18th 05 07:27 PM


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