Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default How do I return a unique count where conditions exist?

How do I return a unique count where conditions exist? This works until I
try to add conditions. HELP!!!

This works:
=SUM(IF(FREQUENCY(MATCH(A4:A9216,A4:A9216,0)|MATCH (A4:A9216,A4:A9216,0))0,1))

When I add conditions it doesn't:
(IF(B4:B9216,"HO")+IF(C4:C9216,"P")SUM(IF(FREQUENC Y(MATCH(A4:A9216,A4:A9216,0)|MATCH(A4:A9216,A4:A92 16,0))0,1)))

--
Cher
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default How do I return a unique count where conditions exist?

Is the error not in your if statement. If(first condition,answer,if(2nd
condition,answer),sum etc,default

Hope that makes sense

"Cher" wrote:

How do I return a unique count where conditions exist? This works until I
try to add conditions. HELP!!!

This works:
=SUM(IF(FREQUENCY(MATCH(A4:A9216,A4:A9216,0)|MATCH (A4:A9216,A4:A9216,0))0,1))

When I add conditions it doesn't:
(IF(B4:B9216,"HO")+IF(C4:C9216,"P")SUM(IF(FREQUENC Y(MATCH(A4:A9216,A4:A9216,0)|MATCH(A4:A9216,A4:A92 16,0))0,1)))

--
Cher

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I return a unique count where conditions exist?

So, you want to count unique entries in col A where B = HO and C = P ?

Try this array formula** :

=COUNT(1/FREQUENCY(IF((B4:B9216="HO")*(C4:C9216="P"),MATCH( A4:A9216,A4:A9216,0)),ROW(A4:A9216)-MIN(ROW(A4:A9216))+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Cher" wrote in message
...
How do I return a unique count where conditions exist? This works until I
try to add conditions. HELP!!!

This works:
=SUM(IF(FREQUENCY(MATCH(A4:A9216,A4:A9216,0)|MATCH (A4:A9216,A4:A9216,0))0,1))

When I add conditions it doesn't:
(IF(B4:B9216,"HO")+IF(C4:C9216,"P")SUM(IF(FREQUENC Y(MATCH(A4:A9216,A4:A9216,0)|MATCH(A4:A9216,A4:A92 16,0))0,1)))

--
Cher



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default How do I return a unique count where conditions exist?

Thank you very much; it worked
--
Cher


"T. Valko" wrote:

So, you want to count unique entries in col A where B = HO and C = P ?

Try this array formula** :

=COUNT(1/FREQUENCY(IF((B4:B9216="HO")*(C4:C9216="P"),MATCH( A4:A9216,A4:A9216,0)),ROW(A4:A9216)-MIN(ROW(A4:A9216))+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Cher" wrote in message
...
How do I return a unique count where conditions exist? This works until I
try to add conditions. HELP!!!

This works:
=SUM(IF(FREQUENCY(MATCH(A4:A9216,A4:A9216,0)|MATCH (A4:A9216,A4:A9216,0))0,1))

When I add conditions it doesn't:
(IF(B4:B9216,"HO")+IF(C4:C9216,"P")SUM(IF(FREQUENC Y(MATCH(A4:A9216,A4:A9216,0)|MATCH(A4:A9216,A4:A92 16,0))0,1)))

--
Cher




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do I return a unique count where conditions exist?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Cher" wrote in message
...
Thank you very much; it worked
--
Cher


"T. Valko" wrote:

So, you want to count unique entries in col A where B = HO and C = P ?

Try this array formula** :

=COUNT(1/FREQUENCY(IF((B4:B9216="HO")*(C4:C9216="P"),MATCH( A4:A9216,A4:A9216,0)),ROW(A4:A9216)-MIN(ROW(A4:A9216))+1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Cher" wrote in message
...
How do I return a unique count where conditions exist? This works
until I
try to add conditions. HELP!!!

This works:
=SUM(IF(FREQUENCY(MATCH(A4:A9216,A4:A9216,0)|MATCH (A4:A9216,A4:A9216,0))0,1))

When I add conditions it doesn't:
(IF(B4:B9216,"HO")+IF(C4:C9216,"P")SUM(IF(FREQUENC Y(MATCH(A4:A9216,A4:A9216,0)|MATCH(A4:A9216,A4:A92 16,0))0,1)))

--
Cher






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
Enhance sumproduct to return unique employee code count Max Excel Worksheet Functions 5 December 4th 07 05:54 PM
unique count with conditions jogre Excel Worksheet Functions 5 February 13th 07 10:58 PM
Count if 3 different conditions exist AnnaV Excel Discussion (Misc queries) 4 December 30th 05 06:57 PM
Advanced unique cell count with multiple conditions ... help! Flystar Excel Worksheet Functions 3 September 25th 05 03:50 AM
count unique with conditions \ditzman via OfficeKB.com\ Excel Worksheet Functions 8 July 8th 05 12:41 PM


All times are GMT +1. The time now is 10:52 AM.

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"