Excel Function in UDF

A

alex_k

Hello,

I use a following function to count the string occurence, at it first
appearance in a range:

=IF(COUNTIF(A$1:A1,A1)>1,"",COUNTIF(A$1:A$7,A1))

I want to make an UDF from this function, where I could select the the
fixed range <A$1,A$7>, and copy the function into the column B to get the
count.

Example: Column A contains the string array, Column B contains the count

----------------------------------
Row
Column A B
----------------------------------
1 1 2
2 1
3 3 2
4 4 1
5 7 2
6 7
7 3
 

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