Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default How do I count once, multiple duplicate values?

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%)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I count once, multiple duplicate values?

Try one of these array formulas** :

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

=COUNT(1/FREQUENCY(IF((D2:D5=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((D2:D5=50)*(A2:A5<""),MATCH(A2:A5,A 2: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" wrote in message
...
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
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
Count Duplicate Values Abdul Shakeel Excel Discussion (Misc queries) 2 February 29th 08 04:31 PM
How to count duplicate or repeat values Roshlin Excel Discussion (Misc queries) 12 January 28th 08 10:55 PM
Count duplicate cell values per month Derek Excel Worksheet Functions 7 November 26th 07 06:53 PM
Count on multiple values with duplicate rows Carla Excel Worksheet Functions 1 November 22nd 05 09:25 PM
How do I do count calculations ignoring duplicate values Robin Faulkner Excel Discussion (Misc queries) 1 March 31st 05 03:01 PM


All times are GMT +1. The time now is 04:07 AM.

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"