ACOUNTIFS

=ACOUNTIFS(f,w)

f
"find", criteria array
w
"within" array

countifs alternative, that can handle array calculations as its arguments, reports friendly

Xlambda

Well-known Member
Joined
Mar 8, 2021
Messages
832
Office Version
  1. 365
Platform
  1. Windows
ACOUNTIFS array countifs alternative, that can handle array calculations as its arguments . calls T_IFS
Other functions on minisheet: ADATE , ACOMBINE
Excel Formula:
=LAMBDA(f,w,MMULT(T_IFS(f,w,),SEQUENCE(ROWS(w))^0))
LAMBDA 7.0.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1quarterly amd monthly report (count)=ACOUNTIFS(ACOMBINE(ADATE(A3:C32,"q",),),ADATE(A3:C32,"q",))
2sample "within array"=ADATE(A3:C32,"q",)=ACOMBINE(E3#,)=ACOUNTIFS(I3#,E3#)quarterly report, single cell
311-02-21Ax2021-Q1Ax2021-Q1Ax33=ACOUNTIFS(ACOMBINE(ADATE(A3:C32,"m",),{1,3}),ASELECT(ADATE(A3:C32,"m",),,,,,{1,3}))
405-07-21By2021-Q3By2021-Q1Ay00=ACOMBINE(ADATE(A3:C32,"m",),{1,3})monthly report, single cell
528-12-21Cy2021-Q4Cy2021-Q1Bx222021-01-Janx3
617-01-21Cx2021-Q1Cx2021-Q1By002021-01-Jany1
722-02-21Cx2021-Q1Cx2021-Q1Cx442021-02-Febx3
802-10-21By2021-Q4By2021-Q1Cy112021-02-Feby0
928-09-21Ay2021-Q3Ay2021-Q2Ax002021-03-Marx3
1006-09-21Ay2021-Q3Ay2021-Q2Ay112021-03-Mary0
1125-11-21Cy2021-Q4Cy2021-Q2Bx002021-04-Aprx0
1203-03-21Bx2021-Q1Bx2021-Q2By112021-04-Apry2
1323-07-21Bx2021-Q3Bx2021-Q2Cx112021-05-Mayx1
1418-09-21Ay2021-Q3Ay2021-Q2Cy112021-05-Mayy1
1531-03-21Cx2021-Q1Cx2021-Q3Ax222021-07-Julx3
1627-01-21Ax2021-Q1Ax2021-Q3Ay332021-07-July2
1721-10-21Bx2021-Q4Bx2021-Q3Bx332021-08-Augx1
1820-07-21Bx2021-Q3Bx2021-Q3By222021-08-Augy1
1916-07-21By2021-Q3By2021-Q3Cx002021-09-Sepx1
2025-12-21Cy2021-Q4Cy2021-Q3Cy112021-09-Sepy3
2117-05-21Cx2021-Q2Cx2021-Q4Ax002021-10-Octx1
2205-07-21Ax2021-Q3Ax2021-Q4Ay002021-10-Octy1
2329-04-21By2021-Q2By2021-Q4Bx112021-11-Novx0
2424-01-21Ax2021-Q1Ax2021-Q4By112021-11-Novy1
2525-08-21Ax2021-Q3Ax2021-Q4Cx002021-12-Decx0
2607-05-21Cy2021-Q2Cy2021-Q4Cy332021-12-Decy2
2712-02-21Bx2021-Q1Bx
2817-04-21Ay2021-Q2Ay
2921-01-21Cy2021-Q1Cycheck:=COUNTIFS(E3:E32,I3:I26,F3:F32,J3:J26,G3:G32,K3:K26)
3006-03-21Cx2021-Q1Cx3
3127-09-21Bx2021-Q3Bx0
3202-08-21Cy2021-Q3Cy2
330
344other functions on minisheet
35sample=ACOMBINE(A36:C50,)1ADATE
36BcxAax10ACOMBINE
37AaxAay31
38BbxAbx10
39AcyAby01
40BbyAcx01
41BbxAcy31
42AayBax12
43AcyBay03
44BbyBbx33
45AbxBby22
46BaxBcx10
47AcyBcy01
48Bbx0
49Aay=ACOUNTIFS(ACOMBINE(A36:C50,),A36:C50)0
50AayI36 single cell form.1
511
520
533
54
ACOUNTIFS post
Cell Formulas
RangeFormula
O1O1=FORMULATEXT(O3)
E2,I2,E35,M29,M2E2=FORMULATEXT(E3)
E3:G32E3=ADATE(A3:C32,"q",)
I3:K26I3=ACOMBINE(E3#,)
M3:M26M3=ACOUNTIFS(I3#,E3#)
O3:O26O3=ACOUNTIFS(ACOMBINE(ADATE(A3:C32,"q",),),ADATE(A3:C32,"q",))
S3S3=FORMULATEXT(T5)
P4P4=FORMULATEXT(Q5)
Q5:R26Q5=ACOMBINE(ADATE(A3:C32,"m",),{1,3})
T5:T26T5=ACOUNTIFS(ACOMBINE(ADATE(A3:C32,"m",),{1,3}),ASELECT(ADATE(A3:C32,"m",),,,,,{1,3}))
M30:M53M30=COUNTIFS(E3:E32,I3:I26,F3:F32,J3:J26,G3:G32,K3:K26)
E36:G47E36=ACOMBINE(A36:C50,)
I36:I47I36=ACOUNTIFS(ACOMBINE(A36:C50,),A36:C50)
G49G49=FORMULATEXT(I36)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,173
Members
449,296
Latest member
tinneytwin

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