Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
killertofu
 
Posts: n/a
Default function for finding repeats in a column...


Trying to find all repeat data in a column with about 200 rows...

There are two ways I think this could be done, and I need your help.
First, if the data was in A, then in B, it would check to see if the
corresponding A row has already been used in the whole column.

ex. A B
_data_ _repeat?__
0 yes
0 yes
2 no
0 yes

The second way I was thinking, and might not be possible, would be if I
build in the function straight to A, so that if the data repeats
somewhere already in A, then it would bold it or () it or something.

ex. A
data *(repeat data)*
*(0)*
*(0)*
2
*(0)*

I don't know, this is very confusing I know, but any help would be
greatly appreciated.


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=515016

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default function for finding repeats in a column...

I would suggest the use of Conditional Formatting.

Select Column A.
Select Conditional Formatting from the Format Menu
Change "Cell Value Is" to "Formula Is"
Enter the formula: =COUNTIF(A:A,A1)1
Set your format
Click OK

HTH,
Elkar

"killertofu" wrote:


Trying to find all repeat data in a column with about 200 rows...

There are two ways I think this could be done, and I need your help.
First, if the data was in A, then in B, it would check to see if the
corresponding A row has already been used in the whole column.

ex. A B
_data_ _repeat?__
0 yes
0 yes
2 no
0 yes

The second way I was thinking, and might not be possible, would be if I
build in the function straight to A, so that if the data repeats
somewhere already in A, then it would bold it or () it or something.

ex. A
data *(repeat data)*
*(0)*
*(0)*
2
*(0)*

I don't know, this is very confusing I know, but any help would be
greatly appreciated.


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=515016


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
killertofu
 
Posts: n/a
Default function for finding repeats in a column...


thanks, but that didn't work...

I came up with this, see if you guys can work off of this and make
something better...

In column b, the cells have the following format, (starting in row 2)

=IF(COUNTIF(A:A,A2)1,MATCH(A2,A:A,0),"")

This returns nothing if A doesnt repeat, but if it does, it returns the
position of the first matching one.


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=515016

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
Need a function to fill column from other columns G Miller Excel Worksheet Functions 5 December 2nd 05 07:35 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Performing a function on a column of variable length BeenThereGotLost Excel Worksheet Functions 3 July 1st 05 02:50 PM
Lookup Table Dilemma Karen Excel Worksheet Functions 2 June 10th 05 08:22 PM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


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