Unique count is criteria is met

N

Neall

I have a list of customers over the past 4 years, they are differentiated by
customer numbers.

What I would like to do is in one cell per year give me a unique customer
count for that year.

Then in another set of cells per year I would like to get a unique sum of
all purchased parts.

Customer number is A1$1
End date is G1$1
Pricing is H1$1


Any suggestions
 
S

Shane Devenshire

Hi,

To count the number of unique customer numbers per year enter the year in J1
and down, then enter the following array formula:

=COUNT(1/FREQUENCY(IF((YEAR(G$2:G$21)=J1),A$2:A$21),A$2:A$21))

Press Shift+Ctrl+Enter to enter it to make it an array.

The sum by year would be

=SUMPRODUCT(--(YEAR($G$2:$G$21)=J1),$H$2:$H$21)
 

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