Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Enhance sumproduct to return unique employee code count | Excel Worksheet Functions | |||
unique count with conditions | Excel Worksheet Functions | |||
Count if 3 different conditions exist | Excel Discussion (Misc queries) | |||
Advanced unique cell count with multiple conditions ... help! | Excel Worksheet Functions | |||
count unique with conditions | Excel Worksheet Functions |