Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
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   Report Post  
Posted to microsoft.public.excel.misc
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.

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
Highlight exact match in column mgbcab Excel Discussion (Misc queries) 2 June 2nd 10 01:22 PM
Add column only if row header is an exact match. ADL Excel Discussion (Misc queries) 1 October 22nd 09 11:06 AM
look up and match exact data is adjacent column Craig New Users to Excel 1 October 15th 09 08:41 PM
Find an exact match and go to that match Heath Excel Discussion (Misc queries) 0 February 12th 09 02:28 AM
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM


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