Counting Unique Donors in a Given Year

mtaylor50

New Member
Joined
Oct 4, 2004
Messages
28
I know there are bundles of board postings regarding counting with multiple criteris, and I'm sorry about my inability to find the one that will work for me (after 3 hours of trial and error).

My formula needs to count unique individuals who donated $ to a charity in 2005 (column B lists donors' names; column c shows the year of their gift, after being extracted from a date field elsewhere).

Here's the formula that counts the unique donors regardless of date:

=SUMPRODUCT(($B$2:B$3001<>"")/COUNTIF(B$2:B$3001,B$2:B$3001&""))

I just can't seem to amend it to so it counts only 2005 donors, but only once, i.e., if donor gave in 2004 and 2005, the formula needs to count this donor as a 2005 donor; 2004 is irrelevant for the 2005 count. Also if same donor gave twice in 2005, donor is counted only once in the 2005 count.

Many thanks!
Mark
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
If you download and install the latest version of the morefunc.xll add-in:

=COUNTDIFF(IF($C$2:$C$3001=2005,$B$2:$B$3001,"#"),FALSE,"#")

which must be confirmed with control+shift+enter.
 

mtaylor50

New Member
Joined
Oct 4, 2004
Messages
28
Works great (the many attempts I tried weren't even close)!
Thank you very much, Aladin.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,834
Messages
5,855,905
Members
431,772
Latest member
dannyboi1

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
Top