COUNTIF - FIRST OCCURRENCE ONLY

cher22

New Member
Joined
May 8, 2005
Messages
5
Hi all,
I've searched help on countif with no luck so far, so I am not sure if I'm on the right track.
I have 714 records with an alpha/numeric reference code in column A. This code may appear several times in that column however I only want to count the first occurrence along with all the unique ones. Ie. The total number of different codes used, whether they appear more than once or not is irrelevent. Hope I have made sense and that someone out there can help. Thanks.
Regards,
Cheryl.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi Paddy,
Thanks for your help. I found a post from someone with the same problem. Formula as follows:

=SUMPRODUCT((A7:A721<>"")/COUNTIF(A7:A721,A7:A721&""))

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,179
Members
448,871
Latest member
hengshankouniuniu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top