Count number of textual values in a row

C

c99sg1

Hi everyone,

I am getting a little confused...infact...I am really struggling....

What I am trying to do is count the number of textual values in a ro
(omitting any duplicates and counting them as one value)?

For example.

ABCD-1234
<<Blank Row>>
ABCD-1234
ABCD-1234
<<Blank Row>>
<<Blank Row>>
ABCD-1235
CB1234567
ABCD-1236
ABCD-1236

In the above example, I would expect the result to be 4.

Any help would be most appreciate, genuinely.

Thanks,
Steve (confused
 
B

Bob Phillips

=SUMPRODUCT((A2:A200<>"")/COUNTIF(A2:A200,A2:A200&""))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top