SUMPRODUCT or COUNTIFS

nmss18

Active Member
Joined
Jun 28, 2011
Messages
312
Hello,
In the table below, in D2 what formula can I use to count the number of blank cells between L2 and S2 (which is when the user signed on as noted in columns B and C)?
and in D3 the formula should count the number of blank cells between F3 and M3.
So for User001, I would like to see 1 (as 2014 october is blank) and User002, there are 3 blank cells in F:M

I am using the countif formula =COUNTIF(E2:S2,"") but it is counting the entire range E:S and that is not what I want.

(I posted a similar posting earlier but I suspect it was too wordy and complex).

Any help would be appreciated.
nmss


Excel 2012
ABCDEFGHIJKLMNOPQRS
1UserLive DateCancel DateDormancy2014 January2014 February2014 March2014 April2014 May2014 June2014 July2014 August2014 September2014 October2014 November2014 December2015 January2015 February2015 March
2User0012014 August2015 March81111111
3user0022014 February2014 September1011111
Sheet3
Cell Formulas
RangeFormula
D2=COUNTIF(E2:S2,"")
D3=COUNTIF(E3:S3,"")
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try
For this to work your dates are going to have to be formatted as dates and not text (which they seem to be now).

You also shoukd stay with just the one post in the forum and add to it.
Excel Workbook
ABCDEFGHIJKLMNO
1UserLive DateCancel DateDormancyJanuary-2014February-2014March-2014April-2014May-2014June-2014July-2014August-2014September-2014October-2014November-2014
2User001August-2014March-20151111
3user002February-2014September-2014311111
Sheet
 
Upvote 0
AhoyNC,
One more thing. I am trying to look at this from the monthly perspective as well. For each month how many users who were live had a dormant activity month.. I tried to modify your formula as follows in column H, but I am doing something wrong here:
=COUNTIFS($H$10,"<="&$B$11:$B$17,$H$10,"<="&$C$11:$C$17,H11:H17,"")

Could you assist?
Very much appreciated.
nmss



Excel 2012
ABCDEFGHIJKLMNOP
1Dormant by Month
2Institutional#VALUE!
3Content#VALUE!
4Retail#VALUE!
5Unknown#VALUE!
6#VALUE!
7Fiscal Date Hierarchy
8
9Volume ExecutedFiscal Month
10ClassificationFC_DatevalueLC_DatevalueConnection StatusTrading DormancyTrading BrokerEnd UserJul-14Aug-14Sep-14Oct-14Nov-14Dec-14Jan-15Feb-15Mar-15
11InstitutionalJul-14Oct-14Active4DBuser001420,00032,215
12InstitutionalSep-14Mar-15Active1AKJuser00155,854,352602,00724,0004,3004,600215
13RetailJul-14Mar-15Active0AKJuser0016461,248454,908461,884275,461720,921252,061120,03233,01687,298
14RetailJan-13Aug-14Cancelled0AKJuser0017165,38660,813
15RetailJan-13Feb-15Cancelled0GSuser0018248,113262,980491,90694,236115,610104,676177,609191,438
16UnknownJan-13Mar-15Active5AKJuser00196,9605,8883,0001,323
17UnknownSep-13Mar-15Active9AKJuser0020
18
Sheet1
Cell Formulas
RangeFormula
H2=COUNTIFS($G$2:$G$5,G2,$H$10,"<="&$B$11:$B$17,$H$10,"<="&$C$11:$C$17,H7:H13,"""")
H3=COUNTIFS($G$2:$G$5,G3,$H$10,"<="&$B$11:$B$17,$H$10,"<="&$C$11:$C$17,H8:H14,"""")
H4=COUNTIFS($G$2:$G$5,G4,$H$10,"<="&$B$11:$B$17,$H$10,"<="&$C$11:$C$17,H9:H15,"""")
H5=COUNTIFS($G$2:$G$5,G5,$H$10,"<="&$B$11:$B$17,$H$10,"<="&$C$11:$C$17,H10:H16,"""")
H6=COUNTIFS($H$10,"<="&$B$11:$B$17,$H$10,"<="&$C$11:$C$17,H11:H17,"")
B12=J10
E11=COUNTIFS($H$10:$P$10,">="&B11,$H$10:$P$10,"<="&C11,H11:P11,"")
E12=COUNTIFS($H$10:$P$10,">="&B12,$H$10:$P$10,"<="&C12,H12:P12,"")
E13=COUNTIFS($H$10:$P$10,">="&B13,$H$10:$P$10,"<="&C13,H13:P13,"")
E14=COUNTIFS($H$10:$P$10,">="&B14,$H$10:$P$10,"<="&C14,H14:P14,"")
E15=COUNTIFS($H$10:$P$10,">="&B15,$H$10:$P$10,"<="&C15,H15:P15,"")
E16=COUNTIFS($H$10:$P$10,">="&B16,$H$10:$P$10,"<="&C16,H16:P16,"")
E17=COUNTIFS($H$10:$P$10,">="&B17,$H$10:$P$10,"<="&C17,H17:P17,"")
 
Upvote 0
Like this?
Excel Workbook
ABCDEFGHIJKLMNO
1Dormant by Month
2Institutional11111000
3Content00000000
4Retail00000000
5Unknown11122222
6
7Fiscal Date Hierarchy
8
9Volume ExecutedFiscal Month
10ClassificationFC_DatevalueLC_DatevalueConnection StatusTrading DormancyTrading BrokerEnd UserJul-2014Aug-2014Sep-2014Oct-2014Nov-2014Dec-2014Jan-2015Feb-2015
11InstitutionalJul-2014Oct-2014Active4DBuser001420,000
12InstitutionalSep-2014Mar-2015Active1AKJuser00155,854,352602,00724,0004,3004,600
13RetailJul-2014Mar-2015Active0AKJuser0016461,248454,908461,884275,461720,921252,061120,03233,016
14RetailJan-2013Aug-2014Cancelled0AKJuser0017165,38660,813
15RetailJan-2013Feb-2015Cancelled0GSuser0018248,113262,980491,90694,236115,610104,676177,609191,438
16UnknownJan-2013Mar-2015Active5AKJuser00196,9605,8883,000
17UnknownJan-2013Mar-2015Active9AKJuser0020
Sheet
 
Upvote 0
Bizarre. In my test sheet this works but in my live data all I get is a 0 value.
I know the date formats are correct because I modified your original formula to fit my live sheet and it works.

Thsi is the formula I am using in the live data
=COUNTIFS($F$13:$F$8707,">="&L$10,$G$13:$G$8707,"<="&L$10,L13:L8707,"")

Its your formula modified. I took out 2 criteria ranges as they are not crucial. Do you see anything amiss?
 
Upvote 0
I will provide a portion of the live data and hide the 3 sensitive data columns

(Sorry for bombarding you with all the formulas. Not too sure why its doing that)


Excel 2012
CDEFGHILMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKAL
3
4
5
6
7
80
9
10January-13February-13March-13April-13May-13June-13July-13August-13September-13October-13November-13December-13January-14February-14March-14April-14May-14June-14July-14August-14September-14October-14November-14December-14January-15February-15March-15
11Fiscal Month
12ClassificationFirst Connection DateLast Connection DateFC_DatevalueLC_DatevalueConnection StatusTrading Dormancy2013 January2013 February2013 March2013 April2013 May2013 June2013 July2013 August2013 September2013 October2013 November2013 December2014 January2014 February2014 March2014 April2014 May2014 June2014 July2014 August2014 September2014 October2014 November2014 December2015 January2015 February2015 March
13Institutional2013 January2015 MarchJan-13Mar-15Active5724,824528,145256,422136,900277,424159,031228,300266,517230,000380,856309,907326,150631,843172,11092,200201,160142,730436,355459,000488,005390,933498,346
14Institutional2014 February2015 MarchFeb-14Mar-15Active437,541173,20215,53420,0008,00335,87937,74616,00075,120
15Institutional2013 January2015 MarchJan-13Mar-15Active21244,50040,00082,00018,000100,000
16Institutional2014 February2015 MarchFeb-14Mar-15Active037,04837,810319,7103,120,013564,818331,117293,173392,221306,690439,50082,5007,541248,647364,898
17Institutional2013 January2015 MarchJan-13Mar-15Active2650,000
18Institutional2013 January2015 MarchJan-13Mar-15Active162,431724699478002,1816,0001,7112,58910,000128,699
19Institutional2013 January2015 MarchJan-13Mar-15Active2654,827
20Institutional2014 June2015 MarchJun-14Mar-15Active21,167,228630,7473,155,0002,187,3354,735,60545,000150,00090,271
21Institutional2013 January2015 MarchJan-13Mar-15Active162,211425,982406,0443,0714,0006,300632,44655,3252,560,735202,482
22Institutional2013 January2015 MarchJan-13Mar-15Active3672,146918,86752,9184,479,5652,276,932540,9631,929,4181,971,944689,611858,5052,086,8671,179,120520,4972,130,112811,0544,712,9193,547,176464,980740,451253,604293,82422,20064,230255,200
23Institutional2014 July2015 MarchJul-14Mar-15Active463,023318,00611,67933,676264,729
24Institutional2013 October2015 MarchOct-13Mar-15Active1749,000
25Institutional2013 January2015 MarchJan-13Mar-15Active03,886,674140,069287,9223,025,71010,213,652311,785646,740703,1244,088,5841,143,1111,547,6172,142,17910,019,3606,177,5053,428,619962,5761,498,2306,307,54865,4093,153,6122,829,254264,0259,672,2966,296,797946,788230,231121,707
264,616,1401,821,2411,463,7203,467,01915,024,5122,793,929881,040977,6524,862,1363,535,3853,839,4683,157,94011,509,7088,473,5304,775,2902,195,1456,906,6197,812,1196,733,0288,091,7117,577,3624,877,63215,156,3306,673,1214,108,2891,004,3861,096,805
Trading Activity (2)
Cell Formulas
RangeFormula
C13=VLOOKUP(J13,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C14=VLOOKUP(J14,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C15=VLOOKUP(J15,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C16=VLOOKUP(J16,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C17=VLOOKUP(J17,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C18=VLOOKUP(J18,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C19=VLOOKUP(J19,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C20=VLOOKUP(J20,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C21=VLOOKUP(J21,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C22=VLOOKUP(J22,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C23=VLOOKUP(J23,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C24=VLOOKUP(J24,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
C25=VLOOKUP(J25,'Broker Tier Classification'!$H$1:$J$304,3,FALSE)
D13=IFERROR(VLOOKUP($B13,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D14=IFERROR(VLOOKUP($B14,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D15=IFERROR(VLOOKUP($B15,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D16=IFERROR(VLOOKUP($B16,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D17=IFERROR(VLOOKUP($B17,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D18=IFERROR(VLOOKUP($B18,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D19=IFERROR(VLOOKUP($B19,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D20=IFERROR(VLOOKUP($B20,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D21=IFERROR(VLOOKUP($B21,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D22=IFERROR(VLOOKUP($B22,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D23=IFERROR(VLOOKUP($B23,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D24=IFERROR(VLOOKUP($B24,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
D25=IFERROR(VLOOKUP($B25,'First-Last Terminal Date'!$B$7:$D$13277,3,FALSE),"")
E13=IFERROR(VLOOKUP($B13,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E14=IFERROR(VLOOKUP($B14,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E15=IFERROR(VLOOKUP($B15,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E16=IFERROR(VLOOKUP($B16,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E17=IFERROR(VLOOKUP($B17,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E18=IFERROR(VLOOKUP($B18,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E19=IFERROR(VLOOKUP($B19,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E20=IFERROR(VLOOKUP($B20,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E21=IFERROR(VLOOKUP($B21,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E22=IFERROR(VLOOKUP($B22,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E23=IFERROR(VLOOKUP($B23,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E24=IFERROR(VLOOKUP($B24,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
E25=IFERROR(VLOOKUP($B25,'First-Last Terminal Date'!$B$7:$E$13277,4,FALSE),"")
F13=IFERROR(DATEVALUE(CONCATENATE(MID(D13,6,10),LEFT(D13,4))),"")
F14=IFERROR(DATEVALUE(CONCATENATE(MID(D14,6,10),LEFT(D14,4))),"")
F15=IFERROR(DATEVALUE(CONCATENATE(MID(D15,6,10),LEFT(D15,4))),"")
F16=IFERROR(DATEVALUE(CONCATENATE(MID(D16,6,10),LEFT(D16,4))),"")
F17=IFERROR(DATEVALUE(CONCATENATE(MID(D17,6,10),LEFT(D17,4))),"")
F18=IFERROR(DATEVALUE(CONCATENATE(MID(D18,6,10),LEFT(D18,4))),"")
F19=IFERROR(DATEVALUE(CONCATENATE(MID(D19,6,10),LEFT(D19,4))),"")
F20=IFERROR(DATEVALUE(CONCATENATE(MID(D20,6,10),LEFT(D20,4))),"")
F21=IFERROR(DATEVALUE(CONCATENATE(MID(D21,6,10),LEFT(D21,4))),"")
F22=IFERROR(DATEVALUE(CONCATENATE(MID(D22,6,10),LEFT(D22,4))),"")
F23=IFERROR(DATEVALUE(CONCATENATE(MID(D23,6,10),LEFT(D23,4))),"")
F24=IFERROR(DATEVALUE(CONCATENATE(MID(D24,6,10),LEFT(D24,4))),"")
F25=IFERROR(DATEVALUE(CONCATENATE(MID(D25,6,10),LEFT(D25,4))),"")
G13=IFERROR(DATEVALUE(CONCATENATE(MID(E13,6,10),LEFT(E13,4))),"")
G14=IFERROR(DATEVALUE(CONCATENATE(MID(E14,6,10),LEFT(E14,4))),"")
G15=IFERROR(DATEVALUE(CONCATENATE(MID(E15,6,10),LEFT(E15,4))),"")
G16=IFERROR(DATEVALUE(CONCATENATE(MID(E16,6,10),LEFT(E16,4))),"")
G17=IFERROR(DATEVALUE(CONCATENATE(MID(E17,6,10),LEFT(E17,4))),"")
G18=IFERROR(DATEVALUE(CONCATENATE(MID(E18,6,10),LEFT(E18,4))),"")
G19=IFERROR(DATEVALUE(CONCATENATE(MID(E19,6,10),LEFT(E19,4))),"")
G20=IFERROR(DATEVALUE(CONCATENATE(MID(E20,6,10),LEFT(E20,4))),"")
G21=IFERROR(DATEVALUE(CONCATENATE(MID(E21,6,10),LEFT(E21,4))),"")
G22=IFERROR(DATEVALUE(CONCATENATE(MID(E22,6,10),LEFT(E22,4))),"")
G23=IFERROR(DATEVALUE(CONCATENATE(MID(E23,6,10),LEFT(E23,4))),"")
G24=IFERROR(DATEVALUE(CONCATENATE(MID(E24,6,10),LEFT(E24,4))),"")
G25=IFERROR(DATEVALUE(CONCATENATE(MID(E25,6,10),LEFT(E25,4))),"")
H13=IFERROR(VLOOKUP('Trading Activity (2)'!B13,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H14=IFERROR(VLOOKUP('Trading Activity (2)'!B14,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H15=IFERROR(VLOOKUP('Trading Activity (2)'!B15,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H16=IFERROR(VLOOKUP('Trading Activity (2)'!B16,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H17=IFERROR(VLOOKUP('Trading Activity (2)'!B17,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H18=IFERROR(VLOOKUP('Trading Activity (2)'!B18,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H19=IFERROR(VLOOKUP('Trading Activity (2)'!B19,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H20=IFERROR(VLOOKUP('Trading Activity (2)'!B20,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H21=IFERROR(VLOOKUP('Trading Activity (2)'!B21,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H22=IFERROR(VLOOKUP('Trading Activity (2)'!B22,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H23=IFERROR(VLOOKUP('Trading Activity (2)'!B23,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H24=IFERROR(VLOOKUP('Trading Activity (2)'!B24,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
H25=IFERROR(VLOOKUP('Trading Activity (2)'!B25,'First-Last Terminal Date'!$B$7:$H$13277,7,FALSE),"")
I13=COUNTIFS($L$10:$AL$10,">="&F13,$L$10:$AL$10,"<="&G13,L13:AL13,"")
I14=COUNTIFS($L$10:$AL$10,">="&F14,$L$10:$AL$10,"<="&G14,L14:AL14,"")
I15=COUNTIFS($L$10:$AL$10,">="&F15,$L$10:$AL$10,"<="&G15,L15:AL15,"")
I16=COUNTIFS($L$10:$AL$10,">="&F16,$L$10:$AL$10,"<="&G16,L16:AL16,"")
I17=COUNTIFS($L$10:$AL$10,">="&F17,$L$10:$AL$10,"<="&G17,L17:AL17,"")
I18=COUNTIFS($L$10:$AL$10,">="&F18,$L$10:$AL$10,"<="&G18,L18:AL18,"")
I19=COUNTIFS($L$10:$AL$10,">="&F19,$L$10:$AL$10,"<="&G19,L19:AL19,"")
I20=COUNTIFS($L$10:$AL$10,">="&F20,$L$10:$AL$10,"<="&G20,L20:AL20,"")
I21=COUNTIFS($L$10:$AL$10,">="&F21,$L$10:$AL$10,"<="&G21,L21:AL21,"")
I22=COUNTIFS($L$10:$AL$10,">="&F22,$L$10:$AL$10,"<="&G22,L22:AL22,"")
I23=COUNTIFS($L$10:$AL$10,">="&F23,$L$10:$AL$10,"<="&G23,L23:AL23,"")
I24=COUNTIFS($L$10:$AL$10,">="&F24,$L$10:$AL$10,"<="&G24,L24:AL24,"")
I25=COUNTIFS($L$10:$AL$10,">="&F25,$L$10:$AL$10,"<="&G25,L25:AL25,"")
L8=COUNTIFS($F$13:$F$25,">="&L$10,$G$13:$G$25,"<="&L$10,L13:L25,"")
L10=DATEVALUE(CONCATENATE(MID(L$12,6,10),"-",LEFT(L$12,4)))
M10=DATEVALUE(CONCATENATE(MID(M$12,6,10),"-",LEFT(M$12,4)))
N10=DATEVALUE(CONCATENATE(MID(N$12,6,10),"-",LEFT(N$12,4)))
O10=DATEVALUE(CONCATENATE(MID(O$12,6,10),"-",LEFT(O$12,4)))
P10=DATEVALUE(CONCATENATE(MID(P$12,6,10),"-",LEFT(P$12,4)))
Q10=DATEVALUE(CONCATENATE(MID(Q$12,6,10),"-",LEFT(Q$12,4)))
R10=DATEVALUE(CONCATENATE(MID(R$12,6,10),"-",LEFT(R$12,4)))
S10=DATEVALUE(CONCATENATE(MID(S$12,6,10),"-",LEFT(S$12,4)))
T10=DATEVALUE(CONCATENATE(MID(T$12,6,10),"-",LEFT(T$12,4)))
U10=DATEVALUE(CONCATENATE(MID(U$12,6,10),"-",LEFT(U$12,4)))
V10=DATEVALUE(CONCATENATE(MID(V$12,6,10),"-",LEFT(V$12,4)))
W10=DATEVALUE(CONCATENATE(MID(W$12,6,10),"-",LEFT(W$12,4)))
X10=DATEVALUE(CONCATENATE(MID(X$12,6,10),"-",LEFT(X$12,4)))
Y10=DATEVALUE(CONCATENATE(MID(Y$12,6,10),"-",LEFT(Y$12,4)))
Z10=DATEVALUE(CONCATENATE(MID(Z$12,6,10),"-",LEFT(Z$12,4)))
AA10=DATEVALUE(CONCATENATE(MID(AA$12,6,10),"-",LEFT(AA$12,4)))
AB10=DATEVALUE(CONCATENATE(MID(AB$12,6,10),"-",LEFT(AB$12,4)))
AC10=DATEVALUE(CONCATENATE(MID(AC$12,6,10),"-",LEFT(AC$12,4)))
AD10=DATEVALUE(CONCATENATE(MID(AD$12,6,10),"-",LEFT(AD$12,4)))
AE10=DATEVALUE(CONCATENATE(MID(AE$12,6,10),"-",LEFT(AE$12,4)))
AF10=DATEVALUE(CONCATENATE(MID(AF$12,6,10),"-",LEFT(AF$12,4)))
AG10=DATEVALUE(CONCATENATE(MID(AG$12,6,10),"-",LEFT(AG$12,4)))
AH10=DATEVALUE(CONCATENATE(MID(AH$12,6,10),"-",LEFT(AH$12,4)))
AI10=DATEVALUE(CONCATENATE(MID(AI$12,6,10),"-",LEFT(AI$12,4)))
AJ10=DATEVALUE(CONCATENATE(MID(AJ$12,6,10),"-",LEFT(AJ$12,4)))
AK10=DATEVALUE(CONCATENATE(MID(AK$12,6,10),"-",LEFT(AK$12,4)))
AL10=DATEVALUE(CONCATENATE(MID(AL$12,6,10),"-",LEFT(AL$12,4)))
 
Last edited:
Upvote 0
I think you just need to reverse your greater than & less than in your formula.

Code:
=COUNTIFS($F$13:$F$8707,"[COLOR=#ff0000]<=[/COLOR]"&L$10,$G$13:$G$8707,"[COLOR=#ff0000]>=[/COLOR]"&L$10,L13:L8707,"")

If that doesn't work, format your dates to show m/d/y to make sure they are correct (Excel sometimes tries to out guess you on what it thinks you want).
Excel Workbook
CDEFGHILMNO
84
9
10Jan-2013Feb-2013Mar-2013Apr-2013
11Fiscal Month
12ClassificationFirst Connection DateLast Connection DateFC_DatevalueLC_DatevalueConnection StatusTrading Dormancy2013 January2013 February2013 March2013 April
13Institutional2013 January2015 MarchJan-2013Mar-2015Active5724,824528,145256,422136,900
14Institutional2014 February2015 MarchFeb-2014Mar-2015Active4
15Institutional2013 January2015 MarchJan-2013Mar-2015Active21244,500
16Institutional2014 February2015 MarchFeb-2014Mar-2015Active0
17Institutional2013 January2015 MarchJan-2013Mar-2015Active26
18Institutional2013 January2015 MarchJan-2013Mar-2015Active162,43172469947
19Institutional2013 January2015 MarchJan-2013Mar-2015Active2654,827
20Institutional2014 June2015 MarchJun-2014Mar-2015Active2
21Institutional2013 January2015 MarchJan-2013Mar-2015Active162,211425,982406,044
22Institutional2013 January2015 MarchJan-2013Mar-2015Active3672,146918,86752,918
23Institutional2014 July2015 MarchJul-2014Mar-2015Active4
24Institutional2013 October2015 MarchOct-2013Mar-2015Active17
25Institutional2013 January2015 MarchJan-2013Mar-2015Active03,886,674140,069287,9223,025,710
Sheet
 
Upvote 0
That loks like it works but on the surface its counterintuitive to me.
I would think in order to determine whether a date like February 2013 falls between January 2013 and March 2015, I have to measure whether February 2013 is 'higher' than January 2013 and 'lower' than March 2015.
The formula is measuring this from the inverse.
Why does it work?
Thanks a gazillion for your help
nmss
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,792
Members
449,048
Latest member
greyangel23

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