Getting the number of customer in year 2011

ShirLowMingHan

New Member
Joined
Jun 17, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hey guys! I am looking a way out to get the number of unique customer that have bought product in year 2011. And the table contains full date from 2011 to 2013. I have been using =SUM(COUNTIFS(Table1[Date],">="&DATE(2011,1,1),Table1[Date],"<="&DATE(2011,12,31))) to get the number of rows that date between 2011 and =COUNTA(UNIQUE(Table1[Customer Name])) to get the number of unique customer. But when I tried to combine the I failed to get the correct outcome... Appreciate your help, also if there is any method that is easier than mine please do let me know!

1686977596335.png
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
See if one of these works for you.

Book1
ABCDEF
1Unique Cust7Unique Cust7
2Year2011From1/01/2011
3To31/12/2011
28
29
30DateProductIDCust IDQuantityProduct Name
311/01/2011Cust00001
321/01/2011Cust00057
331/01/2011Cust00015
341/01/2011Cust00035
351/01/2011Cust00031
361/01/2011Cust00017
371/01/2011Cust00046
381/01/2011Cust00001
391/01/2011Cust00057
401/01/2011Cust00015
411/01/2011Cust00035
421/01/2012Cust00001
431/01/2012Cust00057
441/01/2012Cust00015
451/01/2012Cust00035
461/01/2012Cust00031
471/01/2012Cust00017
481/01/2012Cust00046
491/01/2012Cust00035
501/01/2012Cust00031
511/01/2012Cust00017
521/01/2012Cust00046
Data
Cell Formulas
RangeFormula
B1B1=COUNTA(UNIQUE(FILTER(Table1[Cust ID],YEAR(Table1[Date])=$B$2)))
E1E1=COUNTA(UNIQUE(FILTER(Table1[Cust ID],(Table1[Date]>=$E$2)*(Table1[Date]<=$E$3))))
 
Upvote 0

Forum statistics

Threads
1,224,272
Messages
6,177,632
Members
452,786
Latest member
k3calloway

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