PC Review


Reply
Thread Tools Rate Thread

How do I count once, multiple duplicate values?

 
 
Rolf
Guest
Posts: n/a
 
      19th Feb 2009
I have the following sheet

Container sub-Container Volume %used
Name1 Sub1 100 60
Name1 Sub1 100 80
Name2 Sub2 100 30
Name3 Sub3 100 40

I want to count the Container column that exceeds 50%, but NOT duplicate
values (so in the above example I should get 1 as the answer (Name1 is only
counted ONCE even though there are two occurences of it exceeding 50%)?
 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      19th Feb 2009
Try one of these array formulas** :

Assuming there won't be any empty cells in the Container range:

=COUNT(1/FREQUENCY(IF((D25>=50,MATCH(A2:A5,A2:A5,0)),ROW(A2:A5)-ROW(A2)+1))

If there might be empty cells in the container range:

=COUNT(1/FREQUENCY(IF((D25>=50)*(A2:A5<>""),MATCH(A2:A5,A2:A5,0)),ROW(A2:A5)-ROW(A2)+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Rolf" <(E-Mail Removed)> wrote in message
news:68546660-F3D4-4E1A-AEB9-(E-Mail Removed)...
>I have the following sheet
>
> Container sub-Container Volume %used
> Name1 Sub1 100 60
> Name1 Sub1 100 80
> Name2 Sub2 100 30
> Name3 Sub3 100 40
>
> I want to count the Container column that exceeds 50%, but NOT duplicate
> values (so in the above example I should get 1 as the answer (Name1 is
> only
> counted ONCE even though there are two occurences of it exceeding 50%)?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Duplicate Values Abdul Shakeel Microsoft Excel Misc 2 29th Feb 2008 04:31 PM
How to count duplicate or repeat values Roshlin Microsoft Excel Misc 12 28th Jan 2008 10:55 PM
Help -- Is my there any way to not count duplicate values here? ShadesOfGrey Microsoft Access Queries 5 31st Dec 2006 06:55 AM
Count on multiple values with duplicate rows =?Utf-8?B?Q2FybGE=?= Microsoft Excel Worksheet Functions 1 22nd Nov 2005 09:25 PM
Count duplicate values in worksheet =?Utf-8?B?UXVlayBIUw==?= Microsoft Excel Programming 2 18th May 2005 04:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 AM.