K
Keithlearn
I have been racking my brain trying to count unique records within a table
with two other conditions. An example of the table is as follows:
EE ID Week # Location
100417 16 BRY
100417 16 BRY
100213 16 BRY
100427 16 BRY
100428 16 BRY
100415 16 BRY
100015 16 BRY
100015 16 BRY
100015 16 BRY
100151 16 BRY
100151 16 BRY
If I was counting unique EE ID's, that match week 16 and location BRY, the
answer would be 7. The table I am using is huge as I have approx 1000 lines
per week with multiple locations.
I have tried the following formula, but get a n/a result (week # is in
column D, Location is in column G and EE ID is in column A)
=SUM(IF(Data!$G$2:$G$60000="BRY",IF(Data!$D$2:$D$60000=16,FREQUENCY(MATCH(Data!$A$2:$A$60000,Data!$A$2:$A$60000,0),MATCH(Data!$A$2:$A$60000,Data!$A$2:$A$60000,0)>0),1),0))
Any help would be greatly appreciated.
Keith
with two other conditions. An example of the table is as follows:
EE ID Week # Location
100417 16 BRY
100417 16 BRY
100213 16 BRY
100427 16 BRY
100428 16 BRY
100415 16 BRY
100015 16 BRY
100015 16 BRY
100015 16 BRY
100151 16 BRY
100151 16 BRY
If I was counting unique EE ID's, that match week 16 and location BRY, the
answer would be 7. The table I am using is huge as I have approx 1000 lines
per week with multiple locations.
I have tried the following formula, but get a n/a result (week # is in
column D, Location is in column G and EE ID is in column A)
=SUM(IF(Data!$G$2:$G$60000="BRY",IF(Data!$D$2:$D$60000=16,FREQUENCY(MATCH(Data!$A$2:$A$60000,Data!$A$2:$A$60000,0),MATCH(Data!$A$2:$A$60000,Data!$A$2:$A$60000,0)>0),1),0))
Any help would be greatly appreciated.
Keith