I have been trying to use the following formula to count unique values in column 1 of my defined range, based on several criteria.
=SUMPRODUCT(--(INDEX(Consolidated,0,16)="SR")--(INDEX(Consolidated,0,16)="CR")--(INDEX(Consolidated,0,16)="TR"),--((LEFT(INDEX(Consolidated,0,15),2)="PR")*(MONTH(INDEX(Consolidated,0,24))=MONTH($B$1))*(INDEX(Consolidated,0,4)="C")),1/COUNTIF(INDEX(Consolidated,0,1),INDEX(Consolidated,0,1)))
The result appear to be unreliable i.e. it gives the correct result at time but gives the wrong result or fractions at other other times.
This is an adaptation of a formula which mikerickson posted about 2 years ago. Can anyone help me get this right please.
Thanks in advance
=SUMPRODUCT(--(INDEX(Consolidated,0,16)="SR")--(INDEX(Consolidated,0,16)="CR")--(INDEX(Consolidated,0,16)="TR"),--((LEFT(INDEX(Consolidated,0,15),2)="PR")*(MONTH(INDEX(Consolidated,0,24))=MONTH($B$1))*(INDEX(Consolidated,0,4)="C")),1/COUNTIF(INDEX(Consolidated,0,1),INDEX(Consolidated,0,1)))
The result appear to be unreliable i.e. it gives the correct result at time but gives the wrong result or fractions at other other times.
This is an adaptation of a formula which mikerickson posted about 2 years ago. Can anyone help me get this right please.
Thanks in advance