Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Conditional Format Formula for finding duplicates in a row

I have a huge sheets of text strings that I need to find duplicates when they are in a single row. I *can* have duplicates in the sheet, but cannot have the duplicates reside in a row.

How would I write the formula to identify duplicates in a row?

Example:
Code:
	A	B	C	D	E	F
1	Jane	Jim	John	Link	Trey	Mike
2	John	Jim	Link	Trey	Mike	Jane
3	Jim	John	Trey	Mike	Link	Jane
4	John	Jim	Mike	Link	Trey	Jane
5	Mike	John	Trey	Jim	Jane	Link
6	John	Jim	Mike	Trey	Link	Jane
7	Mike	Link	John	Jim	Jim	Jim
8	Jane	John	Mike	Link	Trey	Jim
Row 7 has duplicates (7d, 7e,7f) that should get highlighted but the other columns and rows should be fine (Unless I goofed). How do I do that?
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Gryf View Post
I have a huge sheets of text strings that I need to find duplicates when they are in a single row. I *can* have duplicates in the sheet, but cannot have the duplicates reside in a row.

How would I write the formula to identify duplicates in a row?

Example:
Code:
	A	B	C	D	E	F
1	Jane	Jim	John	Link	Trey	Mike
2	John	Jim	Link	Trey	Mike	Jane
3	Jim	John	Trey	Mike	Link	Jane
4	John	Jim	Mike	Link	Trey	Jane
5	Mike	John	Trey	Jim	Jane	Link
6	John	Jim	Mike	Trey	Link	Jane
7	Mike	Link	John	Jim	Jim	Jim
8	Jane	John	Mike	Link	Trey	Jim
Row 7 has duplicates (7d, 7e,7f) that should get highlighted but the other columns and rows should be fine (Unless I goofed). How do I do that?
=COUNTIF(A:A,A1)1

Highlight the rows you have data in, starting at row 1.
Enter the above formula into conditional formatting and select the colour you want the cells highlighted.

Does that work for you?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Conditional Format Formula for finding duplicates in a row

On Tue, 23 Oct 2012 04:04:42 +0000, Gryf wrote:


I have a huge sheets of text strings that I need to find duplicates when
they are in a single row. I *can* have duplicates in the sheet, but
cannot have the duplicates reside in a row.

How would I write the formula to identify duplicates in a row?

Example:

Code:
--------------------

A B C D E F
1 Jane Jim John Link Trey Mike
2 John Jim Link Trey Mike Jane
3 Jim John Trey Mike Link Jane
4 John Jim Mike Link Trey Jane
5 Mike John Trey Jim Jane Link
6 John Jim Mike Trey Link Jane
7 Mike Link John Jim Jim Jim
8 Jane John Mike Link Trey Jim
--------------------


Row 7 has duplicates (7d, 7e,7f) that should get highlighted but the
other columns and rows should be fine (Unless I goofed). How do I do
that?


Select the region to be formatted (e.g. A1:F8), then use this:

=COUNTIF($A1:$F1,A1)1

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
I've borrowed this formula for finding duplicates Steved Excel Worksheet Functions 5 November 20th 08 09:26 AM
* causing problems with finding duplicates with conditional format Michele - DARCC Excel Discussion (Misc queries) 1 March 26th 08 02:49 PM
help...finding duplicates mj Excel Worksheet Functions 3 March 9th 06 06:41 PM
conditional format for duplicates PamHR Excel Worksheet Functions 2 October 23rd 05 12:14 AM
finding duplicates?... Dan B Excel Programming 1 August 3rd 04 03:51 PM


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

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

About Us

"It's about Microsoft Excel"