Hello Excel Forum.
I am trying to count the unique items on one column, based on criteria from a different column. For example, suppose I have two columns, A and B, as follows:
Column A Column B
A 5
A 5
A 6
A 7
B 8
B 9
B 10
B 11
Suppose I want everything unique in Column B that aligns to specification "A" in Column A. In this case, the function should spit out "3," since the three unique numbers are 5, 6, and 7. Now, I have tried the following two formulas to no avail. Also note, I am using Google Sheets, which hasn't been an issue up to this point, but I think I may be testing Google's limitations now.
Option 1:
={SUMPRODUCT((('Completed Sales File - 8/22 - ROUGH'!$D1:$D1505=$A$2)/COUNTIFS('Completed Sales File - 8/22 - ROUGH'!$D1:$D1505,'Completed Sales File - 8/22 - ROUGH'!$D1:$D1505&"",'Completed Sales File - 8/22 - ROUGH'!$E1:$E1505,'Completed Sales File - 8/22 - ROUGH'!$E1:$E1505&"")))}
The above formula is close, but double counts repeat items. For example, if I ran the above formula for the two columns above, it would say that there are four unique values, and it would double count the 5.
Option 2:
=SUM(FREQUENCY(if('Completed Sales File - 8/22 - ROUGH'!D:D=$A$2,MATCH('Completed Sales File - 8/22 - ROUGH'!E:E,'Completed Sales File - 8/22 - ROUGH'!E:E,0)),ROW('Completed Sales File - 8/22 - ROUGH'!E:E)-ROW('Completed Sales File - 8/22 - ROUGH'!E1)+1)>0)
The above formula is returning 0...
Any idea's as to what is wrong here? Is it just Google Sheets? Is it because I am referencing a column in a different sheet, even though its part of the same workbook? Is my syntax off? Thanks.
Thanks for the support!
Bookmarks