I have three columns: A, B, C
I want to tally a unique record in column C as it relates to A and B.
example: Number of times Boat appears in column C if A is blue and B is fast.
Any thoughts?
Looks like an error in your formula.Aladin Akyurek said:Vidar appears to assume a 2007 system or later. If thta is correct, we can also add a COUNTIFS formula to the arsenal next to Sumproduct and a pivot table:
=SOUNTIFS(A:A,"blue",B:B,"fast",C:C,"Boat")
Try this array formula**:I didn't explain correctly the first time. I agree about the pivot table, but it won't work for this purpose.
So if A is Blue and B is Fast, I need to know how many uniques are C
I didn't explain correctly the first time. I agree about the pivot table, but it won't work for this purpose.
So if A is Blue and B is Fast, I need to know how many uniques are C
=SUM(IF(FREQUENCY(IF(C2:C400<>"",
IF(A2:A400="Blue",IF(B2:B400="Fast",
MATCH("~"&C2:C400,C2:C400&"",0)))),ROW(C2:C400)-ROW(C2)+1),1))
If the data in column C is numbers then we can use this shorter version:Try this array formula**:
=SUM(IF(FREQUENCY(IF(A2:A10="Blue",IF(B2:B10="Fast",MATCH(C2:C10,C2:C10,0))),ROW(C2:C10)-ROW(C2)+1),1))
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.