how to count how many unique acc i have in a month

AYSHANA

Board Regular
Joined
Oct 16, 2021
Messages
90
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
good day

i want to count how many unique ACC i have in month

Book2
BCDEFGHIJKLMNOPQ
1ACC no.UNIT ALLOCATED IN SYSTEM2023
2T78891215-02-23 9:50FEBMARAPRMAYJUNJULAUGSEPOCTNOVDECTOTAL
3W47627215-02-23 14:44
4W47627215-02-23 14:44
5T78771614-02-23 17:38
6T78268916-02-23 10:56
7W47502315-02-23 23:51
8H43947217-02-23 8:58
9S46105419-02-23 9:40
10S46105419-02-23 9:40
11S46105401-04-23 8:00
12S46011318-02-23 19:44
13S46011318-02-23 19:44
14S46011318-02-23 19:44
15S46011301-0-2023 02:35
Sheet2
 
For your Excel versions, try this

23 03 05.xlsm
BCDEFGHI
1ACC no.UNIT ALLOCATED IN SYSTEM
2T78891215-02-23 09:50FEBMARAPRMAYJUN
3W47627215-02-23 14:4481100
4W47627215-02-23 14:44
5T78771614-02-23 17:38
6T78268916-02-23 10:56
7W47502315-02-23 23:51
8H43947217-02-23 08:58
9S46105419-02-23 09:40
10S46105419-02-23 09:40
11S46105401-04-23 08:00
12S46011318-02-23 19:44
13S46011318-02-23 19:44
14S46011318-02-23 19:44
15S46011301-03-23 02:35
16
Count Unique
Cell Formulas
RangeFormula
E3:I3E3=SUMPRODUCT(--(TEXT($C2:$C15,"mmm")=E2),--(MATCH($B2:$B15&"|"&TEXT($C2:$C15,"mmm"),$B2:$B15&"|"&TEXT($C2:$C15,"mmm"),0)=ROW($B2:$B15)-ROW($B2)+1))
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Sorry, I had missed Q1 and that apparently there needs to be a year check as well as a month check. :oops:

23 03 05.xlsm
BCDEFGHIPQ
1ACC no.UNIT ALLOCATED IN SYSTEM2023
2T78891215-02-23 09:50FEBMARAPRMAYJUNTOTAL
3W47627215-02-23 14:4481100
4W47627215-02-23 14:44
5T78771614-02-23 17:38
6T78268916-02-23 10:56
7W47502315-02-23 23:51
8H43947217-02-23 08:58
9S46105419-02-23 09:40
10S46105419-02-23 09:40
11S46105401-04-23 08:00
12S46011318-02-23 19:44
13S46011318-02-23 19:44
14S46011318-02-23 19:44
15S46011301-03-23 02:35
16
Count Unique
Cell Formulas
RangeFormula
E3:I3E3=SUMPRODUCT(--(TEXT($C2:$C15,"mmmyyyy")=E2&$Q1),--(MATCH($B2:$B15&TEXT($C2:$C15,"|mmyy"),$B2:$B15&TEXT($C2:$C15,"|mmyy"),0)=ROW($B2:$B15)-ROW($B2)+1))
 
Upvote 0
Solution
Sorry, I had missed Q1 and that apparently there needs to be a year check as well as a month check. :oops:

23 03 05.xlsm
BCDEFGHIPQ
1ACC no.UNIT ALLOCATED IN SYSTEM2023
2T78891215-02-23 09:50FEBMARAPRMAYJUNTOTAL
3W47627215-02-23 14:4481100
4W47627215-02-23 14:44
5T78771614-02-23 17:38
6T78268916-02-23 10:56
7W47502315-02-23 23:51
8H43947217-02-23 08:58
9S46105419-02-23 09:40
10S46105419-02-23 09:40
11S46105401-04-23 08:00
12S46011318-02-23 19:44
13S46011318-02-23 19:44
14S46011318-02-23 19:44
15S46011301-03-23 02:35
16
Count Unique
Cell Formulas
RangeFormula
E3:I3E3=SUMPRODUCT(--(TEXT($C2:$C15,"mmmyyyy")=E2&$Q1),--(MATCH($B2:$B15&TEXT($C2:$C15,"|mmyy"),$B2:$B15&TEXT($C2:$C15,"|mmyy"),0)=ROW($B2:$B15)-ROW($B2)+1))

thank you
 
Last edited by a moderator:
Upvote 0
You're welcome. :)


I have another question, suppose I have the same (mmmyyy) column and i want to count if its >=60
i can use the same function or it will be different

thanks again

CRA Receive
Date Time
Workbench received to Result
14/02/2023 16:4731
14/02/2023 13:5430
14/02/2023 04:3537
14/02/2023 20:1933
14/02/2023 16:0531
14/02/2023 14:0136
14/02/2023 14:1031
14/02/2023 10:32110
14/02/2023 02:3438
14/02/2023 12:3930
14/02/2023 16:3639
14/02/2023 20:4439
14/02/2023 05:1942
14/02/2023 14:1864
14/02/2023 14:1534
14/02/2023 16:4340
14/02/2023 14:1077
14/02/2023 14:0731
 
Upvote 0
Not enough detail to be sure I am understanding your requirement. What about sample data and expected results with XL2BB and explain again in relation to that?
 
Upvote 0
i want to count how many times i got a result that is >=60 in month

COMBINE vba .xlsm
GJQRS
1CRA Receive Date TimeWorkbench received to Result
214/02/2023 16:4731
314/02/2023 13:54302023
414/02/2023 04:3537
514/02/2023 20:1933FEBMARAPR
614/02/2023 16:05312
714/02/2023 14:0136
814/02/2023 14:1031
914/02/2023 10:32110
1014/02/2023 02:3438
1114/02/2023 12:3930
1214/02/2023 16:3639
1314/02/2023 20:4439
1414/02/2023 05:1942
1514/02/2023 14:1864
raw daily
 
Upvote 0
Thanks, that is much clearer. :)

Yes, it is a reasonably similar formula but a bit simpler since it doesn't have to do any 'unique' assessment.
Note that I have changed the data in row 5 so that there is at least a count for March.

23 03 05.xlsm
GJQRS
1CRA Receive Date TimeWorkbench received to Result
214-02-23 16:4731
314-02-23 13:54302023
414-02-23 04:3537
514-03-23 20:19233FEBMARAPR
614-02-23 16:0531210
714-02-23 14:0136
814-02-23 14:1031
914-02-23 10:32110
1014-02-23 02:3438
1114-02-23 12:3930
1214-02-23 16:3639
1314-02-23 20:4439
1414-02-23 05:1942
1514-02-23 14:1864
Count >=60
Cell Formulas
RangeFormula
Q6:S6Q6=SUMPRODUCT(--(TEXT($G2:$G15,"mmmyyyy")=Q5&$R3),--($J2:$J15>=60))
 
Upvote 1

Forum statistics

Threads
1,215,373
Messages
6,124,548
Members
449,170
Latest member
Gkiller

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