COUNTIFS formula.

Kayslover

Board Regular
Joined
Sep 22, 2020
Messages
176
Office Version
  1. 2013
Platform
  1. Windows
I have a membership spreadsheet (STO Members) that details when members paid their club subscription alongside the statement number that their payment shows on. This data is in columns B and C.

On another sheet called “Supporting Paid Print” the statement number and paid dated is copied by means of a VLOOKUP.

I am trying to count the number of payments received in sheet Supporting Paid Print that have been paid in Jan, Feb, Mar etc. and I have the total in Row 60.

I am using the formula =COUNTIFS(C3:C52,F3:F52,">="&Formula!D2,C3:C52,F3:F52,"<="&Formula!E2) but I keep getting the following error which I cannot work out.

I have tried the above formula but as follows and I get the same error

=COUNTIFS(C3:C52,F3:F52,">="&Formula!&D2,C3:C52,F3:F52,"<="&Formula!&E2)

View attachment 111866

Any assistance given to resolve this error would be appreciated.

Sample data included.
2024 Membership - Copy.xlsm
ABCDEFGH
1Membership NumberPayment Statement numberPayment Received DateSurnameFirst NameAddressTownPost Code
2SM0000144801/01/24Surname 1First Name 1Address 1Town 1Post Code 1
3SM0000244802/01/24Surname 2First Name 2Address 2Town 2Post Code 2
4SM0000344912/01/24Surname 3First Name 3Address 3Town 3Post Code 3
5SM0000445010/02/24Surname 4First Name 4Address 4Town 4Post Code 4
6SM0000544701/04/24Surname 5First Name 5Address 5Town 5Post Code 5
7SM0000644703/04/24Surname 6First Name 6Address 6Town 6Post Code 6
8SM0000721602/11/24Surname 7First Name 7Address 7Town 7Post Code 7
9SM0000845001/05/24Surname 8First Name 8Address 8Town 8Post Code 8
10SM0000945004/05/24Surname 9First Name 9Address 9Town 9Post Code 9
11SM0001044901/06/24Surname 10First Name 10Address 10Town 10Post Code 10
12SM0001144910/06/24Surname 11First Name 11Address 11Town 11Post Code 11
13SM0001244901/07/24Surname 12First Name 12Address 12Town 12Post Code 12
14SM0001344910/07/24Surname 13First Name 13Address 13Town 13Post Code 13
15SM0001450010/08/24Surname 14First Name 14Address 14Town 14Post Code 14
16SM0001550010/08/24Surname 15First Name 15Address 15Town 15Post Code 15
17SM0001652301/09/24Surname 16First Name 16Address 16Town 16Post Code 16
18SM0001756329/09/24Surname 17First Name 17Address 17Town 17Post Code 17
19SM0001860301/10/24Surname 18First Name 18Address 18Town 18Post Code 18
20SM0001964310/10/24Surname 19First Name 19Address 19Town 19Post Code 19
21SM0002068310/10/24Surname 20First Name 20Address 20Town 20Post Code 20
22SM0002172301/11/24Surname 21First Name 21Address 21Town 21Post Code 21
23SM0002276309/11/24Surname 22First Name 22Address 22Town 22Post Code 22
24SM0002380311/11/24Surname 23First Name 23Address 23Town 23Post Code 23
25SM0002484301/12/24Surname 24First Name 24Address 24Town 24Post Code 24
26SM0002588305/12/24Surname 25First Name 25Address 25Town 25Post Code 25
27SM0002692305/12/24Surname 26First Name 26Address 26Town 26Post Code 26
28SM00027Surname 27First Name 27Address 27Town 27Post Code 27
29SM00028Surname 28First Name 28Address 28Town 28Post Code 28
30SM00029Surname 29First Name 29Address 29Town 29Post Code 29
31SM0003062801/01/24Surname 30First Name 30Address 30Town 30Post Code 30
32SM00031Surname 31First Name 31Address 31Town 31Post Code 31
33SM00032Surname 32First Name 32Address 32Town 32Post Code 32
34SM00033Surname 33First Name 33Address 33Town 33Post Code 33
35SM00034Surname 34First Name 34Address 34Town 34Post Code 34
36SM00035Surname 35First Name 35Address 35Town 35Post Code 35
37SM0003662801/01/24Surname 36First Name 36Address 36Town 36Post Code 36
38SM00037Surname 37First Name 37Address 37Town 37Post Code 37
STO Members



2024 Membership - Copy.xlsm
ABCDEFGHI
1Supporting Members Paid Print
2M/Ship NoStatement NoPaid DateM/Ship NoStatement NoPaid DateM/Ship NoStatement NoPaid Date
3SM0000144801/01/24SM00051  SM00101  
4SM0000244802/01/24SM00052  SM00102  
5SM0000344912/01/24SM00053  SM00103  
6SM0000445010/02/24SM00054  SM00104  
7SM0000544701/04/24SM00055  SM00105  
8SM0000644703/04/24SM00056  SM00106  
9SM0000721602/11/24SM00057  SM00107  
10SM0000845001/05/24SM00058  SM00108  
11SM0000945004/05/24SM00059  SM00109  
12SM0001044901/06/24SM00060  SM00110  
13SM0001144910/06/24SM00061  SM00111  
14SM0001244901/07/24SM00062  SM00112  
15SM0001344910/07/24SM00063  SM00113  
16SM0001450010/08/24SM00064  SM00114  
17SM0001550010/08/24SM00065  SM00115  
18SM0001652301/09/24SM00066  SM00116  
19SM0001756329/09/24SM00067  SM00117  
20SM0001860301/10/24SM00068  SM00118  
21SM0001964310/10/24SM00069  SM00119  
22SM0002068310/10/24SM00070  SM00120  
23SM0002172301/11/24SM00071  SM00121  
24SM0002276309/11/24SM00072  SM00122  
25SM0002380311/11/24SM00073  SM00123  
26SM0002484301/12/24SM00074  SM00124  
27SM0002588305/12/24SM00075  SM00125  
28SM0002692305/12/24SM00076  SM00126  
29SM00027  SM00077  SM00127  
30SM00028  SM00078  SM00128  
31SM00029  SM00079  SM00129  
32SM0003062801/01/24SM00080  SM00130  
33SM00031  SM00081  SM00131  
34SM00032  SM00082  SM00132  
35SM00033  SM00083  SM00133  
36SM00034  SM00084  SM00134  
37SM00035  SM00085  SM00135  
38SM0003662801/01/24SM00086  SM00136  
39SM00037  SM00087  SM00137  
40SM00038  SM00088  SM00138  
41SM00039  SM00089  SM00139  
42SM00040  SM00090  SM00140  
43SM00041  SM00091  SM00141  
44SM00042  SM00092  SM00142  
45SM00043  SM00093  SM00143  
46SM00044  SM00094  SM00144  
47SM00045  SM00095  SM00145  
48SM00046  SM00096  SM00146  
49SM00047  SM00097  SM00147  
50SM00048  SM00098  SM00148  
51SM00049  SM00099  SM00149  
52SM00050  SM00100  SM00150  
53
54Column Count28280000
55
56There is 1 person who made a payment on the 13/4/24 which did not have any reference number
57
58Total Number of Paid Members28
59Paid In JanPaid In FebPaid In MarPaid In AprPaid In MayPaid In JunePaid In JulyPaid In AugPaid In Sept
60
Supporting Paid Print
Cell Formulas
RangeFormula
H3:H52,E3:E52,B3:B52B3=IF(VLOOKUP(A3,'STO Members'!$A$2:$C$203,2,FALSE)=0,"",VLOOKUP(A3,'STO Members'!$A$2:$C$203,2,FALSE))
I3:I52,F3:F52,C3:C52C3=IF(VLOOKUP(A3,'STO Members'!$A$2:$C$203,3,FALSE)=0,"",VLOOKUP(A3,'STO Members'!$A$2:$C$203,3,FALSE))
H54:I54,E54:F54,B54:C54B54=COUNTIF(B3:B52,">0")
E58E58=B54+E54+H54+K54


2024 Membership - Copy.xlsm
ABCDE
1Processing Year202424Month Start DateMonth End Date
2Start of Year01/01/24January01/01/2431/01/24
3February02/01/2429/02/24
4March03/01/2431/03/24
5April04/01/2430/04/24
6May05/01/2431/05/24
7June06/01/2430/06/24
8July07/01/2431/07/24
9August08/01/2431/08/24
10September09/01/2430/09/24
11October10/01/2431/10/24
12November11/01/2430/11/24
13December12/01/2431/12/24
Formula
Cell Formulas
RangeFormula
C1C1=RIGHT(B1,2)
B2B2=CONCATENATE("01/","01/",$C$1)
D2D2=$B$2-DAY($B$2)+1
E2E2=EOMONTH($B$2,0)
D3D3=$B$2-DAY($B$2)+2
E3E3=EOMONTH($B$2,1)
D4D4=$B$2-DAY($B$2)+3
E4E4=EOMONTH($B$2,2)
D5D5=$B$2-DAY($B$2)+4
E5E5=EOMONTH($B$2,3)
D6D6=$B$2-DAY($B$2)+5
E6E6=EOMONTH($B$2,4)
D7D7=$B$2-DAY($B$2)+6
E7E7=EOMONTH($B$2,5)
D8D8=$B$2-DAY($B$2)+7
E8E8=EOMONTH($B$2,6)
D9D9=$B$2-DAY($B$2)+8
E9E9=EOMONTH($B$2,7)
D10D10=$B$2-DAY($B$2)+9
E10E10=EOMONTH($B$2,8)
D11D11=$B$2-DAY($B$2)+10
E11E11=EOMONTH($B$2,9)
D12D12=$B$2-DAY($B$2)+11
E12E12=EOMONTH($B$2,10)
D13D13=$B$2-DAY($B$2)+12
E13E13=EOMONTH($B$2,11)
 
RoryA, Arun,

Sorry for delay in responding, a couple of things came up during the weekend and hence the delay.
I have now had an opportunity to have a look at the formula and I am getting errors in the counts per month.

I have therefore created a new sheet called “Data”, and it contains the data that has been extrapolated from sheet “STO Members” that contains data in Columns A to C. It has been sorted so that all Jan, Feb, .. dates are in Column C and manually inserted the count in Column D.

In sheet “Supporting Paid Print” in row 63, I have manually inserted what the counts per month should be.

In row 60, I have inserted the formula
Excel Formula:
=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$2,'STO Members'!$C$2:$C$203,"<="&Formula!$E$2)
and in row 61 I have the formula
Excel Formula:
=COUNTIFS($C$3:$O$53,">="&Formula!$D2,$C$3:$O$53,"<="&Formula!$E2)

Both the formulas are producing the same figures, however they are incorrect.

Formula
Excel Formula:
=SUMPRODUCT((C3:O53>=Formula!D2)*(C3:O53<=Formula!E2)*(C2:O2="Paid Date"))
has been inserted in A66 and I am getting #N/A.

I attach sheet data for assist.

Any further assistance will be appreciated.

Thanks,

Pank

2024 Membership - Copy.xlsm
ABCD
1Membership NumberPayment Statement numberPayment Received DateCount Paid in Month
2SM0000144801/01/24
3SM0003062801/01/24
4SM0003662801/01/247
5SM0005062801/01/24
6SM0005162801/01/24
7SM0000244802/01/24
8SM0000344912/01/24
9
10SM0000445010/02/241
11
12SM0000544701/04/242
13SM0000644703/04/24
14
15SM0000845001/05/242
16SM0000945004/05/24
17
18SM0001044901/06/242
19SM0001144910/06/24
20
21SM0001244901/07/242
22SM0001344910/07/24
23
24SM0001450010/08/242
25SM0001550010/08/24
26
27SM0001652301/09/242
28SM0001756329/09/24
29
30SM0001860301/10/243
31SM0001964310/10/24
32SM0002068310/10/24
33
34SM0002172301/11/244
35SM0000721602/11/24
36SM0002276309/11/24
37SM0002380311/11/24
38
39SM0002484301/12/243
40SM0002588305/12/24
41SM0002692305/12/24
42SM00027
Data


Data from sheet Supporting Paid Print

2024 Membership - Copy.xlsm
ABCDEFGHI
2M/Ship NoStatement NoPaid DateM/Ship NoStatement NoPaid DateM/Ship NoStatement NoPaid Date
3SM0000144801/01/24SM0005162801/01/24SM00101  
4SM0000244802/01/24SM00052  SM00102  
5SM0000344912/01/24SM00053  SM00103  
6SM0000445010/02/24SM00054  SM00104  
7SM0000544701/04/24SM00055  SM00105  
8SM0000644703/04/24SM00056  SM00106  
9SM0000721602/11/24SM00057  SM00107  
10SM0000845001/05/24SM00058  SM00108  
11SM0000945004/05/24SM00059  SM00109  
12SM0001044901/06/24SM00060  SM00110  
13SM0001144910/06/24SM00061  SM00111  
14SM0001244901/07/24SM00062  SM00112  
15SM0001344910/07/24SM00063  SM00113  
16SM0001450010/08/24SM00064  SM00114  
17SM0001550010/08/24SM00065  SM00115  
18SM0001652301/09/24SM00066  SM00116  
19SM0001756329/09/24SM00067  SM00117  
20SM0001860301/10/24SM00068  SM00118  
21SM0001964310/10/24SM00069  SM00119  
22SM0002068310/10/24SM00070  SM00120  
23SM0002172301/11/24SM00071  SM00121  
24SM0002276309/11/24SM00072  SM00122  
25SM0002380311/11/24SM00073  SM00123  
26SM0002484301/12/24SM00074  SM00124  
27SM0002588305/12/24SM00075  SM00125  
28SM0002692305/12/24SM00076  SM00126  
29SM00027  SM00077  SM00127  
30SM00028  SM00078  SM00128  
31SM00029  SM00079  SM00129  
32SM0003062801/01/24SM00080  SM00130  
33SM00031  SM00081  SM00131  
34SM00032  SM00082  SM00132  
35SM00033  SM00083  SM00133  
36SM00034  SM00084  SM00134  
37SM00035  SM00085  SM00135  
38SM0003662801/01/24SM00086  SM00136  
39SM00037  SM00087  SM00137  
40SM00038  SM00088  SM00138  
41SM00039  SM00089  SM00139  
42SM00040  SM00090  SM00140  
43SM00041  SM00091  SM00141  
44SM00042  SM00092  SM00142  
45SM00043  SM00093  SM00143  
46SM00044  SM00094  SM00144  
47SM00045  SM00095  SM00145  
48SM00046  SM00096  SM00146  
49SM00047  SM00097  SM00147  
50SM00048  SM00098  SM00148  
51SM00049  SM00099  SM00149  
52SM0005062801/01/24SM00100  SM00150  
53
58Total Number of Paid Members30
Supporting Paid Print
Cell Formulas
RangeFormula
H3:H52,E3:E52,B3:B52B3=IF(VLOOKUP(A3,'STO Members'!$A$2:$C$203,2,FALSE)=0,"",VLOOKUP(A3,'STO Members'!$A$2:$C$203,2,FALSE))
I3:I52,F3:F52,C3:C52C3=IF(VLOOKUP(A3,'STO Members'!$A$2:$C$203,3,FALSE)=0,"",VLOOKUP(A3,'STO Members'!$A$2:$C$203,3,FALSE))
E58E58=B54+E54+H54+K54


I have had to show the formulas separately as selecting the mini sheet capture said I had too much data.

2024 Membership - Copy.xlsm
ABCDEFGHIJKLMN
59Paid In JanPaid In FebPaid In MarPaid In AprPaid In MayPaid In JunePaid In JulyPaid In AugPaid In SeptPaid In OctPaid In NovPaid In Dec
60732468101214172124
61732468101214172124
62
63710222222343Manual Count
64
65
66#N/A
Supporting Paid Print
Cell Formulas
RangeFormula
A60A60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$2,'STO Members'!$C$2:$C$203,"<="&Formula!$E$2)
B60B60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$3,'STO Members'!$C$2:$C$203,"<="&Formula!$E$3)
C60C60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$4,'STO Members'!$C$2:$C$203,"<="&Formula!$E$4)
D60D60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$5,'STO Members'!$C$2:$C$203,"<="&Formula!$E$5)
E60E60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$6,'STO Members'!$C$2:$C$203,"<="&Formula!$E$6)
F60F60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$7,'STO Members'!$C$2:$C$203,"<="&Formula!$E$7)
G60G60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$8,'STO Members'!$C$2:$C$203,"<="&Formula!$E$8)
H60H60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$9,'STO Members'!$C$2:$C$203,"<="&Formula!$E$9)
I60I60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$10,'STO Members'!$C$2:$C$203,"<="&Formula!$E$10)
J60J60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$11,'STO Members'!$C$2:$C$203,"<="&Formula!$E$11)
K60K60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$12,'STO Members'!$C$2:$C$203,"<="&Formula!$E$12)
L60L60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$13,'STO Members'!$C$2:$C$203,"<="&Formula!$E$13)
A61A61=COUNTIFS($C$3:$O$53,">="&Formula!$D2,$C$3:$O$53,"<="&Formula!$E2)
B61B61=COUNTIFS($C$3:$O$53,">="&Formula!$D3,$C$3:$O$53,"<="&Formula!$E3)
C61C61=COUNTIFS($C$3:$O$53,">="&Formula!$D4,$C$3:$O$53,"<="&Formula!$E4)
D61D61=COUNTIFS($C$3:$O$53,">="&Formula!$D5,$C$3:$O$53,"<="&Formula!$E5)
E61E61=COUNTIFS($C$3:$O$53,">="&Formula!$D6,$C$3:$O$53,"<="&Formula!$E6)
F61F61=COUNTIFS($C$3:$O$53,">="&Formula!$D7,$C$3:$O$53,"<="&Formula!$E7)
G61G61=COUNTIFS($C$3:$O$53,">="&Formula!$D8,$C$3:$O$53,"<="&Formula!$E8)
H61H61=COUNTIFS($C$3:$O$53,">="&Formula!$D9,$C$3:$O$53,"<="&Formula!$E9)
I61I61=COUNTIFS($C$3:$O$53,">="&Formula!$D10,$C$3:$O$53,"<="&Formula!$E10)
J61J61=COUNTIFS($C$3:$O$53,">="&Formula!$D11,$C$3:$O$53,"<="&Formula!$E11)
K61K61=COUNTIFS($C$3:$O$53,">="&Formula!$D12,$C$3:$O$53,"<="&Formula!$E12)
L61L61=COUNTIFS($C$3:$O$53,">="&Formula!$D13,$C$3:$O$53,"<="&Formula!$E13)
A66A66=SUMPRODUCT((C2:O52>=Formula!D2)*(C2:O52<=Formula!E2)*(C2:O2="Paid Date"))
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi

It looks like that the issue is with the 'formula' sheet

While you want 02-01-2024 to be Feb 1st, what the system takes it to be is Jan 2nd
Same is the case with 03-01-2024 and so on

You may use

Start of year- 01/01/24 (without any formula), or you may use date(2000+c1,1,1)- this would yield date(2024,1,1) which is Jan 1st, 2024

For the individual months, pls use
d2=edate(b2,0)
d3=edate(b2,1)
d4=edate(b2,2) and so on

Please check and let know

Thanks
 
Upvote 0
Arun,

Thank you for your time so far.

I spotted the problem with the Formula sheet late name night and have now changed the formulas for month start (Column F) as =DATE($B$1,1,1) for Jan, =DATE($B$1,2,1) for Feb .. The value of $B$1 is set to 2024.

I looked at your suggestion to use dates within the formulas rather than pointing to cells in sheet Formula. Therefore the formulas in sheet “Supporting Paid Print” for Jan became
VBA Code:
=COUNTIFS($C$3:$O$52,">=01/01/24",$C$3:$O$52,"<=31/01/24")
. Used the same formula for Feb – Dec, changed the dates and I got the desired results. These formulas are in cells A68 to L68

I therefore applied formatting cells in columns D and E in sheet Formula to read
Excel Formula:
=TEXT($F2,"dd/mm/yy") and E2 to be =TEXT($G2,"dd/mm/yy")
.

Looked at the results in sheet “Supporting Paid Print” the total were as expected. Cells A60 to L60 and A61 to L61

I don’t know why, but it appears that search range for the dates have to be converted to TEXT.

If by doing the above is a fluke, and incorrect, then please let me know.

I will have some proper data within a month and will check to ensure the results are correct.

Regards and many thanks for your help.

2024 Membership - Copy.xlsm
ABCDEFGHI
1Supporting Members Paid Print
2M/Ship NoStatement NoPaid DateM/Ship NoStatement NoPaid DateM/Ship NoStatement NoPaid Date
3SM0000144801/01/24SM0005162801/01/24SM00101  
4SM0000244802/01/24SM00052  SM00102  
5SM0000344912/01/24SM00053  SM00103  
6SM0000445010/02/24SM00054  SM00104  
7SM0000544701/04/24SM00055  SM00105  
8SM0000644703/04/24SM00056  SM00106  
9SM0000721602/11/24SM00057  SM00107  
10SM0000845001/05/24SM00058  SM00108  
11SM0000945004/05/24SM00059  SM00109  
12SM0001044901/06/24SM00060  SM00110  
13SM0001144910/06/24SM00061  SM00111  
14SM0001244901/07/24SM00062  SM00112  
15SM0001344910/07/24SM00063  SM00113  
16SM0001450010/08/24SM00064  SM00114  
17SM0001550010/08/24SM00065  SM00115  
18SM0001652301/09/24SM00066  SM00116  
19SM0001756329/09/24SM00067  SM00117  
20SM0001860301/10/24SM00068  SM00118  
21SM0001964310/10/24SM00069  SM00119  
22SM0002068310/10/24SM00070  SM00120  
23SM0002172301/11/24SM00071  SM00121  
24SM0002276309/11/24SM00072  SM00122  
25SM0002380311/11/24SM00073  SM00123  
26SM0002484301/12/24SM00074  SM00124  
27SM0002588305/12/24SM00075  SM00125  
28SM0002692305/12/24SM00076  SM00126  
29SM00027  SM00077  SM00127  
30SM00028  SM00078  SM00128  
31SM00029  SM00079  SM00129  
32SM0003062801/01/24SM00080  SM00130  
33SM00031  SM00081  SM00131  
34SM00032  SM00082  SM00132  
35SM00033  SM00083  SM00133  
36SM00034  SM00084  SM00134  
37SM00035  SM00085  SM00135  
38SM0003662801/01/24SM00086  SM00136  
39SM00037  SM00087  SM00137  
40SM00038  SM00088  SM00138  
41SM00039  SM00089  SM00139  
42SM00040  SM00090  SM00140  
43SM00041  SM00091  SM00141  
44SM00042  SM00092  SM00142  
45SM00043  SM00093  SM00143  
46SM00044  SM00094  SM00144  
47SM00045  SM00095  SM00145  
48SM00046  SM00096  SM00146  
49SM00047  SM00097  SM00147  
50SM00048  SM00098  SM00148  
51SM00049  SM00099  SM00149  
52SM0005062801/01/24SM00100  SM00150  
Supporting Paid Print
Cell Formulas
RangeFormula
H3:H52,E3:E52,B3:B52B3=IF(VLOOKUP(A3,'STO Members'!$A$2:$C$203,2,FALSE)=0,"",VLOOKUP(A3,'STO Members'!$A$2:$C$203,2,FALSE))
I3:I52,F3:F52,C3:C52C3=IF(VLOOKUP(A3,'STO Members'!$A$2:$C$203,3,FALSE)=0,"",VLOOKUP(A3,'STO Members'!$A$2:$C$203,3,FALSE))


Formulas in Sheet called "Supporting Paid Print" to get required results:-
2024 Membership - Copy.xlsm
ABCDEFGHIJKLMN
58Total Number of Paid Members30
59Paid In JanPaid In FebPaid In MarPaid In AprPaid In MayPaid In JunePaid In JulyPaid In AugPaid In SeptPaid In OctPaid In NovPaid In Dec
6071022222234330
6171022222234330
62
63710222222343Manual Count
64
65
6671022222234330Recommended
6771022222234330New
Supporting Paid Print
Cell Formulas
RangeFormula
E58E58=B54+E54+H54+K54
A60A60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$2,'STO Members'!$C$2:$C$203,"<="&Formula!$E$2)
B60B60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$3,'STO Members'!$C$2:$C$203,"<="&Formula!$E$3)
C60C60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$4,'STO Members'!$C$2:$C$203,"<="&Formula!$E$4)
D60D60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$5,'STO Members'!$C$2:$C$203,"<="&Formula!$E$5)
E60E60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$6,'STO Members'!$C$2:$C$203,"<="&Formula!$E$6)
F60F60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$7,'STO Members'!$C$2:$C$203,"<="&Formula!$E$7)
G60G60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$8,'STO Members'!$C$2:$C$203,"<="&Formula!$E$8)
H60H60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$9,'STO Members'!$C$2:$C$203,"<="&Formula!$E$9)
I60I60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$10,'STO Members'!$C$2:$C$203,"<="&Formula!$E$10)
J60J60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$11,'STO Members'!$C$2:$C$203,"<="&Formula!$E$11)
K60K60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$12,'STO Members'!$C$2:$C$203,"<="&Formula!$E$12)
L60L60=COUNTIFS('STO Members'!$C$2:$C$203,">="&Formula!$D$13,'STO Members'!$C$2:$C$203,"<="&Formula!$E$13)
M66:M67,M60:M61M60=SUM(A60:L60)
A61A61=COUNTIFS($C$3:$O$53,">="&Formula!$D2,$C$3:$O$53,"<="&Formula!$E2)
B61B61=COUNTIFS($C$3:$O$53,">="&Formula!$D3,$C$3:$O$53,"<="&Formula!$E3)
C61C61=COUNTIFS($C$3:$O$53,">="&Formula!$D4,$C$3:$O$53,"<="&Formula!$E4)
D61D61=COUNTIFS($C$3:$O$53,">="&Formula!$D5,$C$3:$O$53,"<="&Formula!$E5)
E61E61=COUNTIFS($C$3:$O$53,">="&Formula!$D6,$C$3:$O$53,"<="&Formula!$E6)
F61F61=COUNTIFS($C$3:$O$53,">="&Formula!$D7,$C$3:$O$53,"<="&Formula!$E7)
G61G61=COUNTIFS($C$3:$O$53,">="&Formula!$D8,$C$3:$O$53,"<="&Formula!$E8)
H61H61=COUNTIFS($C$3:$O$53,">="&Formula!$D9,$C$3:$O$53,"<="&Formula!$E9)
I61I61=COUNTIFS($C$3:$O$53,">="&Formula!$D10,$C$3:$O$53,"<="&Formula!$E10)
J61J61=COUNTIFS($C$3:$O$53,">="&Formula!$D11,$C$3:$O$53,"<="&Formula!$E11)
K61K61=COUNTIFS($C$3:$O$53,">="&Formula!$D12,$C$3:$O$53,"<="&Formula!$E12)
L61L61=COUNTIFS($C$3:$O$53,">="&Formula!$D13,$C$3:$O$53,"<="&Formula!$E13)
A66A66=COUNTIFS($C$3:$O$52,">=01/01/24",$C$3:$O$52,"<=31/01/24")
B66B66=COUNTIFS($C$3:$O$52,">=01/02/24",$C$3:$O$52,"<=29/02/24")
C66C66=COUNTIFS($C$3:$O$52,">=01/03/24",$C$3:$O$52,"<=31/03/24")
D66D66=COUNTIFS($C$3:$O$52,">=01/04/24",$C$3:$O$52,"<=30/04/24")
E66E66=COUNTIFS($C$3:$O$52,">=01/05/24",$C$3:$O$52,"<=31/05/24")
F66F66=COUNTIFS($C$3:$O$52,">=01/06/24",$C$3:$O$52,"<=30/06/24")
G66G66=COUNTIFS($C$3:$O$52,">=01/07/24",$C$3:$O$52,"<=31/07/24")
H66H66=COUNTIFS($C$3:$O$52,">=01/08/24",$C$3:$O$52,"<=31/08/24")
I66I66=COUNTIFS($C$3:$O$52,">=01/09/24",$C$3:$O$52,"<=30/09/24")
J66J66=COUNTIFS($C$3:$O$52,">=01/10/24",$C$3:$O$52,"<=31/10/24")
K66K66=COUNTIFS($C$3:$O$52,">=01/11/24",$C$3:$O$52,"<=30/11/24")
L66L66=COUNTIFS($C$3:$O$52,">=01/12/24",$C$3:$O$52,"<=31/12/24")
A67A67=COUNTIFS($C$3:$O$52,">="&Formula!$D$2,$C$3:$O$52,"<="&Formula!$E$2)
B67B67=COUNTIFS($C$3:$O$52,">="&Formula!$D$3,$C$3:$O$52,"<="&Formula!$E$3)
C67C67=COUNTIFS($C$3:$O$52,">="&Formula!$D$4,$C$3:$O$52,"<="&Formula!$E$4)
D67D67=COUNTIFS($C$3:$O$52,">="&Formula!$D$5,$C$3:$O$52,"<="&Formula!$E$5)
E67E67=COUNTIFS($C$3:$O$52,">="&Formula!$D$6,$C$3:$O$52,"<="&Formula!$E$6)
F67F67=COUNTIFS($C$3:$O$52,">="&Formula!$D$7,$C$3:$O$52,"<="&Formula!$E$7)
G67G67=COUNTIFS($C$3:$O$52,">="&Formula!$D$8,$C$3:$O$52,"<="&Formula!$E$8)
H67H67=COUNTIFS($C$3:$O$52,">="&Formula!$D$9,$C$3:$O$52,"<="&Formula!$E$9)
I67I67=COUNTIFS($C$3:$O$52,">="&Formula!$D$10,$C$3:$O$52,"<="&Formula!$E$10)
J67J67=COUNTIFS($C$3:$O$52,">="&Formula!$D$11,$C$3:$O$52,"<="&Formula!$E$11)
K67K67=COUNTIFS($C$3:$O$52,">="&Formula!$D$12,$C$3:$O$52,"<="&Formula!$E$12)
L67L67=COUNTIFS($C$3:$O$52,">="&Formula!$D$13,$C$3:$O$52,"<="&Formula!$E$13)



Cell Formulas
RangeFormula
C1C1=RIGHT(B1,2)
B2B2=CONCATENATE("01/","01/",$C$1)
D2:D13D2=TEXT($F2,"dd/mm/yy")
E2:E13E2=TEXT($G2,"dd/mm/yy")
F2F2=DATE($B$1,1,1)
G2G2=EOMONTH($B$2,0)
F3F3=DATE($B$1,2,1)
G3G3=EOMONTH($B$2,1)
F4F4=DATE($B$1,3,1)
G4G4=EOMONTH($B$2,2)
F5F5=DATE($B$1,4,1)
G5G5=EOMONTH($B$2,3)
F6F6=DATE($B$1,5,1)
G6G6=EOMONTH($B$2,4)
F7F7=DATE($B$1,6,1)
G7G7=EOMONTH($B$2,5)
F8F8=DATE($B$1,7,1)
G8G8=EOMONTH($B$2,6)
F9F9=DATE($B$1,8,1)
G9G9=EOMONTH($B$2,7)
F10F10=DATE($B$1,9,1)
G10G10=EOMONTH($B$2,8)
F11F11=DATE($B$1,10,1)
G11G11=EOMONTH($B$2,9)
F12F12=DATE($B$1,11,1)
G12G12=EOMONTH($B$2,10)
F13F13=DATE($B$1,12,1)
G13G13=EOMONTH($B$2,11)
 
Upvote 0
Hi

I don’t know why, but it appears that search range for the dates have to be converted to TEXT.

I feel this is because the formulae have TEXT in them

You need not convert the dates into text, ie, the columns D&E in the sheet 'Formula' are not required

The countifs formula
=COUNTIFS($C$3:$O$52,">=01/01/24",$C$3:$O$52,"<=31/01/24")
could rather be
=COUNTIFS($C$3:$C$52,">="&Formula!$F$2,"<="&Formula!$G$2) for Jan

Thanks
 
Upvote 0
Solution
Arun,

Thanks for your time so far.

Have used columns F and G as you have recommended.

Changed to your recommendations and "all is well".

Regards

Kayslover

P.S. Would also like to thank RoryA for his assistance.
 
Upvote 0

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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