I need to be able to count how many distinct ProjectID are in my table with the following criteria:
PorjectID should be counted if it appears
[list type=decimal]
[*]in the given quarter,
[*]for a given region,
but not if it was already existing in previous quarters.
The following array formula satisfies conditions 1 and 2, but not condition 3.
(Region, Qtr and ProjectID are named ranges)
Any hints on how I can solve this one is welcome![/list type=decimal]
PorjectID should be counted if it appears
[list type=decimal]
[*]in the given quarter,
[*]for a given region,
but not if it was already existing in previous quarters.
The following array formula satisfies conditions 1 and 2, but not condition 3.
(Region, Qtr and ProjectID are named ranges)
Code:
SUM(IF(FREQUENCY(IF(Region=D$10,IF(Qtr=$A$11,IF(LEN(ProjectID)>0,MATCH(ProjectID,ProjectID,0),""),""),""), IF(Region=D$10,IF(Qtr=$A$11,IF(LEN(ProjectID)>0,MATCH(ProjectID,ProjectID,0),""),""),""))>0,1))
Any hints on how I can solve this one is welcome![/list type=decimal]