Count of Month

anneb_87

Board Regular
Joined
Jun 13, 2018
Messages
84
Hi Experts!

May I know what formula in excel if I need to get the count of the data that comes in early and late for a month
File NameMay
A04-May-19
B04-May-19
C05-Jun-19
E05-Jun-19
F03-Jun-19
G02-May-19
H25-Apr-19
I25-Apr-19
J02-May-19
K02-May-19
L11-Jun-19
M11-Jun-19
N11-Jun-19
O11-Jun-19
Normal???
Early???
Late???
 
how should I update the formula?
These are array formulas so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}

Book1
ABCDE
1File NameMayNormal4
2A4/05/2019Early2
3B4/05/2019Late5
4C5/06/2019
5E5/06/2019
6F3/06/2019
7G2/05/2019
8H25/04/2019
9I25/04/2019
10J
11K2/05/2019
12L#N/A
13M#N/A
14N11/06/2019
15O11/06/2019
Count (2)
Cell Formulas
RangeFormula
E1E1{=COUNT(1/((MONTH(B2:B15)=MONTH(1&B1))*(B2:B15<>"")))}
E2E2{=COUNT(1/((MONTH(B2:B15)<MONTH(1&B1))*(B2:B15<>"")))}
E3E3{=COUNT(1/((MONTH(B2:B15)>MONTH(1&B1))*(B2:B15<>"")))}
B12:B13B12=NA()
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
These are array formulas so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}

Book1
ABCDE
1File NameMayNormal4
2A4/05/2019Early2
3B4/05/2019Late5
4C5/06/2019
5E5/06/2019
6F3/06/2019
7G2/05/2019
8H25/04/2019
9I25/04/2019
10J
11K2/05/2019
12L#N/A
13M#N/A
14N11/06/2019
15O11/06/2019
Count (2)
Cell Formulas
RangeFormula
E1E1{=COUNT(1/((MONTH(B2:B15)=MONTH(1&B1))*(B2:B15<>"")))}
E2E2{=COUNT(1/((MONTH(B2:B15)<MONTH(1&B1))*(B2:B15<>"")))}
E3E3{=COUNT(1/((MONTH(B2:B15)>MONTH(1&B1))*(B2:B15<>"")))}
B12:B13B12=NA()
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
It works. Thanks!!
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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