LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Finding duplicates

Hi,

If by flag you mean, color for identification, then try this. Assume that
your data is in range A11:B17. Click on cell A12 and got to:

Excel 2003: Format Conditional formatting Formula is
Excel 2007: Home Styles Conditional formatting new Rule Use a
formula to determine which cells to format

Enter the following formula
=SUMPRODUCT(($A$11:$A11=$A12)*($B$11:$B11=$B12))= 1. Select the font or
background color and come out of the conditional formatting dialog box. Now
copy and paste the conditional formatting (Copy Paste special format)
till B17.

Please note that the above formula will highlight only the occurrences after
the first one. For highlighting all occurrences, try this formula

=SUMPRODUCT(($D$11:$D$17=$D11)*($E$11:$E$17=$E11)) 1



--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Louja" wrote in message
...
How do I write a formula that looks at two columns and looks for
duplicate values in both, and flags the row if it finds them in?

See below example I would want to look at columns A and B and look for
duplicate values in both columns

A B
123 abc
124 def
125 ghi
126 jkl
126 mno
126 mno
127 pqr


 
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 needitquick Excel Discussion (Misc queries) 3 June 11th 09 10:17 PM
Finding duplicates milkbonemom Excel Discussion (Misc queries) 2 June 4th 08 10:08 PM
Finding Non-Duplicates calibansfolly Excel Worksheet Functions 2 July 16th 07 04:40 PM
help...finding duplicates mj Excel Worksheet Functions 3 March 9th 06 06:41 PM
Finding Duplicates nospaminlich Excel Worksheet Functions 4 February 5th 05 11:57 PM


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