A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Highlight exact match in column and count



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 01:36 PM posted to microsoft.public.excel.misc
mgbcab
external usenet poster
 
Posts: 5
Default Highlight exact match in column and count

I am using this CF to find my duplicates =COUNTIF(A1:A$10000,A1)1. The next
part I need is to count the number of duplicates (gray shaded &
strikethough). I have tried a few VBA but I read they don't work with formula
based CF's.
I could also sort the gray shaded then count them with a helper column but
ideally would be have one cell at the bottom of my 8000 rows that total my
duplicates.

  #2  
Old June 2nd, 2010, 01:43 PM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Highlight exact match in column and count

'to display the distinct items in the range
=SUMPRODUCT((A1:A20"")/COUNTIF(A1:A20,A1:A20&""))

'duplicate items in the range..
=COUNTA(A1:A20)-SUMPRODUCT((A1:A20"")/COUNTIF(A1:A20,A1:A20&""))


--
Jacob (MVP - Excel)


"mgbcab" wrote:

I am using this CF to find my duplicates =COUNTIF(A1:A$10000,A1)1. The next
part I need is to count the number of duplicates (gray shaded &
strikethough). I have tried a few VBA but I read they don't work with formula
based CF's.
I could also sort the gray shaded then count them with a helper column but
ideally would be have one cell at the bottom of my 8000 rows that total my
duplicates.

  #3  
Old June 2nd, 2010, 02:29 PM posted to microsoft.public.excel.misc
mgbcab
external usenet poster
 
Posts: 5
Default Highlight exact match in column and count

Thanks, your 2nd formula did exactly what I needed.

"Jacob Skaria" wrote:

'to display the distinct items in the range
=SUMPRODUCT((A1:A20"")/COUNTIF(A1:A20,A1:A20&""))

'duplicate items in the range..
=COUNTA(A1:A20)-SUMPRODUCT((A1:A20"")/COUNTIF(A1:A20,A1:A20&""))


--
Jacob (MVP - Excel)


"mgbcab" wrote:

I am using this CF to find my duplicates =COUNTIF(A1:A$10000,A1)1. The next
part I need is to count the number of duplicates (gray shaded &
strikethough). I have tried a few VBA but I read they don't work with formula
based CF's.
I could also sort the gray shaded then count them with a helper column but
ideally would be have one cell at the bottom of my 8000 rows that total my
duplicates.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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