I have this formula which I am trying to count the number of workers who work in a month. I have a spreadsheet set up to record workers hours each week. This formula, I am sure could be made easier, but I can't figure out how, so this is where I am at. It counts how many people worked in Week 1, then counts how many people worked Week 2, plus Week 3, plus Week 4. What is doesn't reconize is duplicates. If someone worked all 4 weeks they count as 4, and I only want them to count once.
=SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$K$19:$K$400>1))+SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$L$19:$L$400>1))+SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$M$19:$M$400>1))+SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$N$19:$N$400>1))
Any Ideas?
=SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$K$19:$K$400>1))+SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$L$19:$L$400>1))+SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$M$19:$M$400>1))+SUMPRODUCT(--('Resident Worker Hour Report'!$B$19:$B$400="Independence Excavating"),--('Resident Worker Hour Report'!$A$19:$A$400="O"),--('Resident Worker Hour Report'!$N$19:$N$400>1))
Any Ideas?