Hi All
Bit stuck on a formula. Normally to count unique items in a range (say A1:A10) i would use the array formula =SUM(1/COUNTIF(A1:A10,A1:A10)
This works great, but now I have a criteria to use. I would like it so that it only takes account of cells where B1:B10 = 1
GROUP1.......0
GROUP1.......0
GROUP1.......1
GROUP2.......0
GROUP2.......0
.............1
GROUP4.......1
GROUP5.......1
GROUP7.......1
GROUP7.......1
So in this instance the desired answer would be 4 (counted GROUP1, GROUP4, GROUP5, GROUP7)
The blank group without a name was ignored (as it normally is using the SUM(1/COUNTIF method)
Any ideas please ?
Bit stuck on a formula. Normally to count unique items in a range (say A1:A10) i would use the array formula =SUM(1/COUNTIF(A1:A10,A1:A10)
This works great, but now I have a criteria to use. I would like it so that it only takes account of cells where B1:B10 = 1
GROUP1.......0
GROUP1.......0
GROUP1.......1
GROUP2.......0
GROUP2.......0
.............1
GROUP4.......1
GROUP5.......1
GROUP7.......1
GROUP7.......1
So in this instance the desired answer would be 4 (counted GROUP1, GROUP4, GROUP5, GROUP7)
The blank group without a name was ignored (as it normally is using the SUM(1/COUNTIF method)
Any ideas please ?
Last edited: