HOW TO COUNT HOW MANY BLANKS and NON BLANKS I HAVE IN MONTH

AYSHANA

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

im trying to count how many blanks and non blanks i have per month

Book1
ABCDEFG
1UNIT ALLOCATED IN SYSTEMUNIT ISSUED IN SYSTEM2023
215-02-23 9:50WITHOUT BLANKWITH BLANK01-01-2301-02-23
315-02-23 14:440031-01-23 23:5928-02-23 23:59
415-02-23 14:4415-02-23 15:41
514-02-23 17:3814-02-23 18:16
616-02-23 10:5616-02-23 11:00
715-02-23 23:5116-02-23 0:02
817-02-23 8:5817-02-23 9:06
919-02-23 9:4019-02-23 13:24
1019-02-23 9:40
1119-02-23 5:56
1218-02-23 19:44
Sheet1
Cell Formulas
RangeFormula
F2F2=DATE($E$1,ROWS($F$2:$F$2),ROWS($F$2:$F$2))
G2G2=DATE($E$1,ROWS($F$2:$F3),ROWS($F$2:$F$2))
F3:G3F3=EOMONTH(F2,0)+"23:59"
C3:D3C3=IF($F$2<=TODAY(),COUNTIFS(B2:B12,">="&$U$2,B2:B12,"<"&$F$3,B2:B12,""),"")
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
try this:

mr excel questions 12.xlsm
ABCDE
1UNIT ALLOCATED IN SYSTEMUNIT ISSUED IN SYSTEMTarget Date:
2Sun 2023-01-15 09:50WITHOUT BLANKWITH BLANK2023-02-01
3Wed 2023-02-15 14:4463
4Wed 2023-02-15 14:44Wed 2023-02-15 15:41
5Tue 2023-02-14 17:38Tue 2023-02-14 18:16
6Thu 2023-02-16 10:56Thu 2023-02-16 11:00
7Wed 2023-02-15 23:51Thu 2023-02-16 00:02
8Fri 2023-02-17 08:58Fri 2023-02-17 09:06
9Sun 2023-02-19 09:40Sun 2023-02-19 13:24
10Sun 2023-02-19 09:40
11Sun 2023-02-19 05:56
12Sat 2023-03-18 19:44
Sheet24
Cell Formulas
RangeFormula
C3C3=SUM((--($A$2:$A$12>=$E$2))*(--($A$2:$A$12<(1+EOMONTH($E$2,0))))*(--(B2:B12>0)))
D3D3=SUM((--($A$2:$A$12>=$E$2))*(--($A$2:$A$12<(1+EOMONTH($E$2,0))))*(B2:B12=""))
 
Upvote 0
its not working

Book1
ABCDEF
1UNIT ALLOCATED IN SYSTEMUNIT ISSUED IN SYSTEM
215-02-23 9:50WITHOUT BLANKWITH BLANK
315-02-23 14:4400
415-02-23 14:4415-02-23 15:41
514-02-23 17:3814-02-23 18:1601-02-23
616-02-23 10:5616-02-23 11:00
715-02-23 23:5116-02-23 0:02
817-02-23 8:5817-02-23 9:06
919-02-23 9:4019-02-23 13:24
1019-02-23 9:40
1119-02-23 5:56
1218-02-23 19:44
Sheet1
Cell Formulas
RangeFormula
C3C3=SUM((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(--(B2:B12>0)))
D3D3=SUM((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(B2:B12=""))
 
Upvote 0
Maybe it is your excel version....
When Entering the formula, instead of using then [Enter] key, use [Cntl][SHFT][Enter], or use the SUMPRODUCT Function instead of SUM.

Excel Formula:
=SUMPRODUCT((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(--(B2:B12>0)))
Excel Formula:
=SUMPRODUCT((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(B2:B12=""))
 
Upvote 0
it works ,
but for (with blanks) its not counting still 0 , even i did ctrl shift enter
 
Upvote 0
why the counting for the blank showing 3 instead of 5
 
Upvote 0
you'll need to show me what you have?
 
Upvote 0
I did notice one thing. The cells in the last expression are not absolute referenced. This is updated:

mr excel questions 12.xlsm
ABCDEF
1UNIT ALLOCATED IN SYSTEMUNIT ISSUED IN SYSTEM
2Wed 2023-02-15 09:50WITHOUT BLANKWITH BLANK
3Wed 2023-02-15 14:4465
4Wed 2023-02-15 14:44Wed 2023-02-15 15:41
5Tue 2023-02-14 17:38Tue 2023-02-14 18:16Wed 2023-02-01 00:00
6Thu 2023-02-16 10:56Thu 2023-02-16 11:00
7Wed 2023-02-15 23:51Thu 2023-02-16 00:02
8Fri 2023-02-17 08:58Fri 2023-02-17 09:06
9Sun 2023-02-19 09:40Sun 2023-02-19 13:24
10Sun 2023-02-19 09:40
11Sun 2023-02-19 05:56
12Sat 2023-02-18 19:44
Sheet25
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(--($B$2:$B$12>0)))
D3D3=SUMPRODUCT((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(B2:$B$12=""))
 
Upvote 0
Solution
still, maybe because my excel is 2013 version?

Book1.xlsx
ABCDEF
1UNIT ALLOCATED IN SYSTEMUNIT ISSUED IN SYSTEM
215-02-23 9:50WITHOUT BLANKWITH BLANK
315-02-23 14:4463
415-02-23 14:4415-02-23 15:41
514-02-23 17:3814-02-23 18:1601-02-23 0:00
616-02-23 10:5616-02-23 11:00
715-02-23 23:5116-02-23 0:02
817-02-23 8:5817-02-23 9:06
919-02-23 9:4019-02-23 13:24
1019-02-23 9:40
1119-02-23 5:56
1218-02-23 19:44
Sheet1
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(--(B2:B12>0)))
D3D3=SUMPRODUCT((--($A$2:$A$12>=$F$5))*(--($A$2:$A$12<(1+EOMONTH($F$5,0))))*(B2:$B$12=""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
i think you have non printing values in cells B11 and B12. When I hover over them on this webpage a zero pops up.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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