Formula:
=SUMPRODUCT((RIGHT(B1:B10,5)="(a4) ")*((A1:A10<>"")/COUNTIF(A1:A10,A1:A10&"")))
![]()
Please Login or Register to view this content.
I want to get the number of unique values in column A, based on the RIGHT text of column B. In this particular example it should be 4, however that formula is returning 4.5. I believe this is because "c" is in column A twice, but should only be counted once for RIGHT, 5 = "(a4) ". Any help is appreciated!
Bookmarks