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
 
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))

Mr peter how are you again :)

i want to add two more criteria to the formula but im having difficulties,

i want to count the the orders that are >= 60 but not equal to #ERROR in the month


BGRPS STATISTICS.xlsm
ABGJMNOPQR
1No.OrdersCRA Receive Date TimeWorkbench received to Result
21BGRPS14-02-23 16:4731
32BGRPS14-02-23 13:54302023
43BGRPS14-02-23 4:3537
54BGRP14-02-23 18:5415JANFEBMAR
65BGRPS14-02-23 20:1933BGRPS1
76BGRPS14-02-23 16:0531XM%2
87BGRPS14-02-23 14:01#ERROR
98BGRPS14-02-23 14:1031
109%XM14-02-23 6:0761
1110%XM14-02-23 16:5762
1211BGRP14-02-23 1:4553
1312BGRPS14-02-23 10:32110
1413%XM14-02-23 12:5730
raw daily
Cell Formulas
RangeFormula
A2A2=IF(ISBLANK(C2),"",1)
A3:A14A3=IF(C3="","",ROWS(A$2:A3))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J2:J304,J306:J3453Cell Value="#ERROR"textYES
J2:J304,J306:J3453Cellcontains a blank value textYES
J2:J304,J306:J3453Cell Value>60textYES
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
i dont want the formula to count for me the #ERROR , in the previous formula it was counting.

thank you
 
Upvote 0
i want to add two more criteria
.. but you only described one. ;)
I assume that the second one is that we have to take account of the values in column B matching the values in column O.
Speaking of column O, I also assume that your value in O7 was a typo and that value should be what I have in my O7 below?

23 03 05.xlsm
BGJOPQR
1OrdersCRA Receive Date TimeWorkbench received to Result
2BGRPS14-02-23 16:4731
3BGRPS14-02-23 13:54302023
4BGRPS14-02-23 04:3537
5BGRP14-02-23 18:5415JANFEBMAR
6BGRPS14-02-23 20:1933BGRPS10
7BGRPS14-02-23 16:0531%XM20
8BGRPS14-02-23 14:01#ERROR
9BGRPS14-02-23 14:1031
10%XM14-02-23 06:0761
11%XM14-02-23 16:5762
12BGRP14-02-23 01:4553
13BGRPS14-02-23 10:32110
14%XM14-02-23 12:5730
1514-02-23 14:1864
Count >=60 (2)
Cell Formulas
RangeFormula
Q6:R7Q6=SUMPRODUCT(--($B$2:$B$15=$O6),--(TEXT($G$2:$G$15,"mmmyyyy")=Q$5&$R$3),--($J$2:$J$15>=60),--(ISNUMBER($J$2:$J$15)))
 
Upvote 1
yes there was a typo in O7 is should be %XM instead XM% 🥲
 
Upvote 0
So, did the new formula do what you want?
 
Upvote 0
OK, thanks for the confirmation. (y)
mr peter how are you
hope you are doing well

i would like to request your help again regarding how many counts i have in a month.

this time i would like to count (how many duplicate pt number I have in a day based on orders)

thank you again.

Book2.xlsx
ABCDEFGHIJKLM
1OrdersPT NumberResult Date TimeHOW MANY DUPLICATE PT NUMBER I HAVE IN A DAY BASED ON ORDERS
2BGRPS113/1/2023 22:562023
3BGRPS123/1/2023 13:04
4BGRP123333/1/2023 20:24ROLEJANFEBMARAPRMAYJUN
5BGRPS1233/1/2023 19:21BGRPS WITH BGRPS
6%XM1233/1/2023 21:53BGRPS WITH %XM
7BGRPS34553/1/2023 16:24
8BGRPS55563/1/2023 21:22
9BGRP66773/1/2023 20:49
10BGRPS7773/9/2023 16:57
11BGRPS2343/9/2023 3:04
12%XM2343/9/2023 20:54
13BGRPS6663/10/2023 20:32
14BGRPS66553/10/2023 10:22
15BGRPS5433/10/2023 6:36
16BGRPS2453/10/2023 7:40
17BGRPS2453/10/2023 6:43
18BGRP34453/10/2023 23:03
19%XM45563/10/2023 8:51
20%XM55543/1/2023 13:50
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B:BCell ValueduplicatestextNO
 
Upvote 0

Forum statistics

Threads
1,215,345
Messages
6,124,408
Members
449,157
Latest member
mytux

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