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(FREQUENCY(MATCH(A4:A9216,A4:A9216,0)|MATCH(A4:A9216,A4:A9216,0))>0,1)))
--
Cher
Hope that makes sense
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" <Ch...@discussions.microsoft.com> wrote in message
news:856A6FFC-E0A0-484D...@microsoft.com...
--
Biff
Microsoft Excel MVP
"Cher" <Ch...@discussions.microsoft.com> wrote in message
news:C901DBB0-0146-46BC...@microsoft.com...