XCOUNT(reference,[count_type],[rows],[columns],[match_criteria],[total_excluding])
reference
Required. Specifies the range or array to be analyzed
count_type
optional, specifies the counting type by determining which precise data type to be counted and takes one of twenty-five arguments: 0 or omitted, for all types; 1, for numbers; 2, for texts; 3, for all blanks; 4, for all logicals; 16, for all errors; 31, for real blanks; 32, for formula blanks; 41, for TRUE logicals; 42, for FALSE logicals; 160, for #EXTERNAL!; 161, for #NULL!; 162, for #DIV/0!; 163, for #VALUE!; 164, for #REF!; 165, for #NAME?; 166, for #NUM!; 167, for #N/A; 168, for #GETTING_DATA; 169, for #SPILL!; 1610, for #CONNECT!; 1611, for #BLOCKED!; 1612, for #UNKNOWN!; 1613, for #FIELD!; and 1614, for #CALC!
rows
Optional. Specifies whether to return the count of rows (rather than cells) that meet the specified parameters and takes one of two arguments: 0 or omitted for "off"; and 1 for "on"
columns
Optional. Specifies whether to return the count of columns (rather than cells) that meet the specified parameters and takes one of two arguments: 0 or omitted for "off"; and 1 for "on"
match_criteria
Optional. can be used to include additional matching criteria to further narrow down the output
total_excluding
Optional. specifies whether the "total count excluding the count obtained through all the specified criteria" will be returned and takes one of two arguments: 0 or omitted, for "off"; and 1, for "on"

XCOUNT is a powerful cell counting solution to count 'cells in a range' or 'array elements' or rows/columns in ranges/arrays that contain the specified data type (high resolution) and/or meet 'matching criteria'

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
528
Office Version
  1. 365
Platform
  1. Windows
XCOUNT is a powerful cell counting solution to count 'cells in a range' or 'array elements' or rows/columns in ranges/arrays that contain the specified data type (high resolution) and/or meet 'matching criteria'

XCOUNT was designed to count cells in ranges or elements of arrays or the number of rows/columns in the range/array that contain the precise specified data type, with high resolution. Additionally, matching criteria can be specified to further narrow down the results. Alternatively, XCOUNT can also return the total count excluding all of the specified conditions. Thus, XTYPE can be considered as an AGGREGATE-style function and a powerful alternative to the built-in counting functions such as COUNT and COUNTA while avoiding their occasionally-encountered idiosyncratic ambiguities.

XCOUNT consists of one required parameter and five optional parameters as follows:

A) The first parameter, required, specifies the reference to be analyzed

B) The second parameter, optional, specifies the counting type by determining which precise data type to be counted and takes one of twenty-five arguments:
0 or omitted, for all types
1, for numbers (dt:NUMBER)
2, for texts (dt:TEXT)
3, for blanks (dt:BLANK)
4, for logicals (dt:LOGICAL)
16, for errors (dt:ERROR)
31, for real blanks (dt:BLANK_REAL)
32, for formula blanks (dt:BLANK_FORMULA)
41, for TRUE logicals (dt:LOGICAL_TRUE)
42, for FALSE logicals (dt:LOGICAL_FALSE)
160, for #EXTERNAL! error (dt:ERROR_EXTERNAL!)
161, for #NULL! error (dt:ERROR_NULL!)
162, for #DIV/0! error (dt:ERROR_DIV/0!)
163, for #VALUE! error (dt:ERROR_VALUE!)
164, for #REF! error (dt:ERROR_REF!)
165, for #NAME? error (dt:ERROR_NAME?)
166, for #NUM! error (dt:ERROR_NUM!)
167, for #N/A error (dt:ERROR_N/A)
168, for #GETTING_DATA error (dt:ERROR_GETTING_DATA)
169, for #SPILL! error (dt:ERROR_SPILL!)
1610, for #CONNECT! error (dt:ERROR_CONNECT!)
1611, for #BLOCKED! error (dt:ERROR_BLOCKED!)
1612, for #UNKNOWN! error (dt:ERROR_UNKNOWN!)
1613, for #FIELD! error (dt:ERROR_FIELD!)
1614, for #CALC! error (dt:ERROR_CALC!)

C) The third parameter, optional, specifies whether to return the count of rows (rather than cells) that meet the specified parameters and takes one of two arguments:
0 or omitted, for "off" (i.e. rows count not considered)
1, for "on" (i.e. rows count rather than cell count will be considered)

D) The fourth parameter, optional, specifies whether to return the count of columns (rather than cells) that meet the specified parameters and takes one of two arguments:
0 or omitted, for "off" (i.e. columns count not considered)
1, for "on" (i.e. columns count rather than cell count will be considered)

Note that both the rows and columns parameters cannot be used simultaneously.

E) The fifth parameter, optional, specifies any additional desired match criteria to be included during counting to further narrow down the output

F) The sixth parameter, optional, specifies whether the "total count excluding the count obtained through all the specified criteria" will be returned and takes one of two arguments:
0 or omitted, for "off" (i.e. the count obtained by the previous parameters will be returned)
1, for "on" (i.e. the total count minus the count obtained by the previous parameters will be returned)

xcount.xlsx
ABCDEFGHIJKLMNOPQRSTU
1
2#CALC!basic types
31dt:NUMBER
446#N/A9476book7082TRUE68 493627542dt:TEXT
5714237475635#DIV/0!90638613866776#CALC!3dt:BLANK
6923283632192313377a57FALSE1641644dt:LOGICAL
716dt:ERROR
8no match criteria
9advanced types
10count type omittedcount type = 0count type = 1count type = 2count type = 31dt:NUMBER
11allallallallall2dt:TEXT
12cells45cells45cells36cells2cells231dt:BLANK_REAL
13rows3rows3rows3rows2rows132dt:BLANK_FORMULA
14columns15columns15columns15columns2columns241dt:LOGICAL_TRUE
15excludingexcludingexcludingexcludingexcluding42dt:LOGICAL_FALSE
16cells0cells0cells9cells43cells43160dt:ERROR_EXTERNAL!
17rows0rows0rows0rows1rows2161dt:ERROR_NULL!
18columns0columns0columns0columns13columns13162dt:ERROR_DIV/0!
19163dt:ERROR_VALUE!
20count type = 4count type = 16count type = 31count type = 32count type = 41164dt:ERROR_REF!
21allallallallall165dt:ERROR_NAME?
22cells2cells3cells1cells1cells1166dt:ERROR_NUM!
23rows2rows2rows1rows1rows1167dt:ERROR_N/A!
24columns2columns3columns1columns1columns1168dt:ERROR_GETTING_DATA!
25excludingexcludingexcludingexcludingexcluding169dt:ERROR_SPILL!
26cells43cells42cells44cells44cells441610dt:ERROR_CONNECT!
27rows1rows1rows2rows2rows21611dt:ERROR_BLOCKED!
28columns13columns12columns14columns14columns141612dt:ERROR_UNKNOWN!
291613dt:ERROR_FIELD!
30count type = 42count type = 160count type = 161count type = 162count type = 1631614dt:ERROR_CALC!
31allallallallall
32cells1cells0cells0cells1cells0
33rows1rows0rows0rows1rows0
34columns1columns0columns0columns1columns0
35excludingexcludingexcludingexcludingexcluding
36cells44cells45cells45cells44cells45
37rows2rows3rows3rows2rows3
38columns14columns15columns15columns14columns15
39
40count type = 164count type = 165count type = 166count type = 167count type = 168
41allallallallall
42cells0cells0cells0cells1cells0
43rows0rows0rows0rows1rows0
44columns0columns0columns0columns1columns0
45excludingexcludingexcludingexcludingexcluding
46cells45cells45cells45cells44cells45
47rows3rows3rows3rows2rows3
48columns15columns15columns15columns14columns15
49
50count type = 169count type = 1610count type = 1611count type = 1612count type = 1613
51allallallallall
52cells0cells0cells0cells0cells0
53rows0rows0rows0rows0rows0
54columns0columns0columns0columns0columns0
55excludingexcludingexcludingexcludingexcluding
56cells45cells45cells45cells45cells45
57rows3rows3rows3rows3rows3
58columns15columns15columns15columns15columns15
59
60count type = 1614
61all
62cells1
63rows1
64columns1
65excluding
66cells44
67rows2
68columns14
69
70
Sheet3
Cell Formulas
RangeFormula
C2C2=LAMBDA(reference,[count_type],[rows],[columns],[match_criteria],[total_excluding],LET(ref,reference,ct,count_type,tet,total_excluding,rs,rows,cs,columns,mtc,IFERROR(match_criteria,0),IF(OR(IF(AND(NIO(count_type),ct<>0),ISERROR(MATCH(ct,AllTypes,0))),IF(NIO(total_excluding),ISERROR(MATCH(tet,{0,1},0))),IF(NIO(rows),ISERROR(MATCH(rs,{0,1},0))),IF(NIO(columns),ISERROR(MATCH(cs,{0,1},0))),AND(rs=1,cs=1),AND(OR(IO(count_type),ct=0),NIO(match_criteria))),XERROR(7),IF(AND(OR(IO(rows),rs=0),OR(IO(columns),cs=0)),LET(t,COLUMNS(ref)*ROWS(ref),exp,IF(OR(IO(count_type),ct=0),t,IF(AND(ct>=1,ct<=16),SUM(ISXTYPE(ref,ct,,mtc,1)),SUM(ISXTYPE(ref,,ct,mtc,1)))),IF(OR(IO(total_excluding),tet=0),exp,t-exp)),IF(AND(OR(IO(columns),cs=0),rs=1),LET(tr,ROWS(ref),IF(OR(IO(count_type),ct=0),IF(OR(IO(total_excluding),tet=0),tr,0),LET(a,IF(ct<=16,ISXTYPE(ref,ct,,mtc,1),ISXTYPE(ref,,ct,mtc,1)),rexp,SUM(IF(MMULT(a,SEQUENCE(COLUMNS(a),,1,0)),1,0)),IF(OR(IO(total_excluding),tet=0),rexp,tr-rexp)))),IF(AND(OR(IO(rows),rs=0),cs=1),IF(OR(IO(count_type),ct=0),IF(OR(IO(total_excluding),tet=0),COLUMNS(ref),0),LET(tref,TRANSPOSE(ref),tr,ROWS(tref),tmtc,TRANSPOSE(mtc),a,IF(ct<=16,IF(IO(match_criteria),ISXTYPE(tref,ct,,,1),ISXTYPE(tref,ct,,tmtc,1)),IF(IO(match_criteria),ISXTYPE(tref,,ct,,1),ISXTYPE(tref,,ct,tmtc,1))),rexp,SUM(IF(MMULT(a,SEQUENCE(COLUMNS(a),,1,0)),1,0)),IF(OR(IO(total_excluding),tet=0),rexp,tr-rexp)))))))))
D4D4=XERROR(7)
L4L4=IF(1,"")
I5I5=1/0
Q5Q5=XERROR(14)
D12D12=XCOUNT($C$4:$Q$6)
D13D13=XCOUNT($C$4:$Q$6,,1)
D14D14=XCOUNT($C$4:$Q$6,,,1)
G12G12=XCOUNT($C$4:$Q$6,0)
G13G13=XCOUNT($C$4:$Q$6,0,1)
G14G14=XCOUNT($C$4:$Q$6,0,,1)
J12J12=XCOUNT($C$4:$Q$6,1)
J13J13=XCOUNT($C$4:$Q$6,1,1)
J14J14=XCOUNT($C$4:$Q$6,1,,1)
M12M12=XCOUNT($C$4:$Q$6,2)
M13M13=XCOUNT($C$4:$Q$6,2,1)
M14M14=XCOUNT($C$4:$Q$6,2,,1)
P12P12=XCOUNT($C$4:$Q$6,3)
P13P13=XCOUNT($C$4:$Q$6,3,1)
P14P14=XCOUNT($C$4:$Q$6,3,,1)
D16D16=XCOUNT($C$4:$Q$6,,,,,1)
D17D17=XCOUNT($C$4:$Q$6,,1,,,1)
D18D18=XCOUNT($C$4:$Q$6,,,1,,1)
G16G16=XCOUNT($C$4:$Q$6,0,,,,1)
G17G17=XCOUNT($C$4:$Q$6,0,1,,,1)
G18G18=XCOUNT($C$4:$Q$6,0,,1,,1)
J16J16=XCOUNT($C$4:$Q$6,1,,,,1)
J17J17=XCOUNT($C$4:$Q$6,1,1,,,1)
J18J18=XCOUNT($C$4:$Q$6,1,,1,,1)
M16M16=XCOUNT($C$4:$Q$6,2,,,,1)
M17M17=XCOUNT($C$4:$Q$6,2,1,,,1)
M18M18=XCOUNT($C$4:$Q$6,2,,1,,1)
P16P16=XCOUNT($C$4:$Q$6,3,,,,1)
P17P17=XCOUNT($C$4:$Q$6,3,1,,,1)
P18P18=XCOUNT($C$4:$Q$6,3,,1,,1)
D22D22=XCOUNT($C$4:$Q$6,4)
D23D23=XCOUNT($C$4:$Q$6,4,1)
D24D24=XCOUNT($C$4:$Q$6,4,,1)
G22G22=XCOUNT($C$4:$Q$6,16)
G23G23=XCOUNT($C$4:$Q$6,16,1)
G24G24=XCOUNT($C$4:$Q$6,16,,1)
J22J22=XCOUNT($C$4:$Q$6,31)
J23J23=XCOUNT($C$4:$Q$6,31,1)
J24J24=XCOUNT($C$4:$Q$6,31,,1)
M22M22=XCOUNT($C$4:$Q$6,32)
M23M23=XCOUNT($C$4:$Q$6,32,1)
M24M24=XCOUNT($C$4:$Q$6,32,,1)
P22P22=XCOUNT($C$4:$Q$6,41)
P23P23=XCOUNT($C$4:$Q$6,41,1)
P24P24=XCOUNT($C$4:$Q$6,41,,1)
D26D26=XCOUNT($C$4:$Q$6,4,,,,1)
D27D27=XCOUNT($C$4:$Q$6,4,1,,,1)
D28D28=XCOUNT($C$4:$Q$6,4,,1,,1)
G26G26=XCOUNT($C$4:$Q$6,16,,,,1)
G27G27=XCOUNT($C$4:$Q$6,16,1,,,1)
G28G28=XCOUNT($C$4:$Q$6,16,,1,,1)
J26J26=XCOUNT($C$4:$Q$6,31,,,,1)
J27J27=XCOUNT($C$4:$Q$6,31,1,,,1)
J28J28=XCOUNT($C$4:$Q$6,31,,1,,1)
M26M26=XCOUNT($C$4:$Q$6,32,,,,1)
M27M27=XCOUNT($C$4:$Q$6,32,1,,,1)
M28M28=XCOUNT($C$4:$Q$6,32,,1,,1)
P26P26=XCOUNT($C$4:$Q$6,41,,,,1)
P27P27=XCOUNT($C$4:$Q$6,41,1,,,1)
P28P28=XCOUNT($C$4:$Q$6,41,,1,,1)
D32D32=XCOUNT($C$4:$Q$6,42)
D33D33=XCOUNT($C$4:$Q$6,42,1)
D34D34=XCOUNT($C$4:$Q$6,42,,1)
G32G32=XCOUNT($C$4:$Q$6,160)
G33G33=XCOUNT($C$4:$Q$6,160,1)
G34G34=XCOUNT($C$4:$Q$6,160,,1)
J32J32=XCOUNT($C$4:$Q$6,161)
J33J33=XCOUNT($C$4:$Q$6,161,1)
J34J34=XCOUNT($C$4:$Q$6,161,,1)
M32M32=XCOUNT($C$4:$Q$6,162)
M33M33=XCOUNT($C$4:$Q$6,162,1)
M34M34=XCOUNT($C$4:$Q$6,162,,1)
P32P32=XCOUNT($C$4:$Q$6,163)
P33P33=XCOUNT($C$4:$Q$6,163,1)
P34P34=XCOUNT($C$4:$Q$6,163,,1)
D36D36=XCOUNT($C$4:$Q$6,42,,,,1)
D37D37=XCOUNT($C$4:$Q$6,42,1,,,1)
D38D38=XCOUNT($C$4:$Q$6,42,,1,,1)
G36G36=XCOUNT($C$4:$Q$6,160,,,,1)
G37G37=XCOUNT($C$4:$Q$6,160,1,,,1)
G38G38=XCOUNT($C$4:$Q$6,160,,1,,1)
J36J36=XCOUNT($C$4:$Q$6,161,,,,1)
J37J37=XCOUNT($C$4:$Q$6,161,1,,,1)
J38J38=XCOUNT($C$4:$Q$6,161,,1,,1)
M36M36=XCOUNT($C$4:$Q$6,162,,,,1)
M37M37=XCOUNT($C$4:$Q$6,162,1,,,1)
M38M38=XCOUNT($C$4:$Q$6,162,,1,,1)
P36P36=XCOUNT($C$4:$Q$6,163,,,,1)
P37P37=XCOUNT($C$4:$Q$6,163,1,,,1)
P38P38=XCOUNT($C$4:$Q$6,163,,1,,1)
D42D42=XCOUNT($C$4:$Q$6,164)
D43D43=XCOUNT($C$4:$Q$6,164,1)
D44D44=XCOUNT($C$4:$Q$6,164,,1)
G42G42=XCOUNT($C$4:$Q$6,165)
G43G43=XCOUNT($C$4:$Q$6,165,1)
G44G44=XCOUNT($C$4:$Q$6,165,,1)
J42J42=XCOUNT($C$4:$Q$6,166)
J43J43=XCOUNT($C$4:$Q$6,166,1)
J44J44=XCOUNT($C$4:$Q$6,166,,1)
M42M42=XCOUNT($C$4:$Q$6,167)
M43M43=XCOUNT($C$4:$Q$6,167,1)
M44M44=XCOUNT($C$4:$Q$6,167,,1)
P42P42=XCOUNT($C$4:$Q$6,168)
P43P43=XCOUNT($C$4:$Q$6,168,1)
P44P44=XCOUNT($C$4:$Q$6,168,,1)
D46D46=XCOUNT($C$4:$Q$6,164,,,,1)
D47D47=XCOUNT($C$4:$Q$6,164,1,,,1)
D48D48=XCOUNT($C$4:$Q$6,164,,1,,1)
G46G46=XCOUNT($C$4:$Q$6,165,,,,1)
G47G47=XCOUNT($C$4:$Q$6,165,1,,,1)
G48G48=XCOUNT($C$4:$Q$6,165,,1,,1)
J46J46=XCOUNT($C$4:$Q$6,166,,,,1)
J47J47=XCOUNT($C$4:$Q$6,166,1,,,1)
J48J48=XCOUNT($C$4:$Q$6,166,,1,,1)
M46M46=XCOUNT($C$4:$Q$6,167,,,,1)
M47M47=XCOUNT($C$4:$Q$6,167,1,,,1)
M48M48=XCOUNT($C$4:$Q$6,167,,1,,1)
P46P46=XCOUNT($C$4:$Q$6,168,,,,1)
P47P47=XCOUNT($C$4:$Q$6,168,1,,,1)
P48P48=XCOUNT($C$4:$Q$6,168,,1,,1)
D52D52=XCOUNT($C$4:$Q$6,169)
D53D53=XCOUNT($C$4:$Q$6,169,1)
D54D54=XCOUNT($C$4:$Q$6,169,,1)
G52G52=XCOUNT($C$4:$Q$6,1610)
G53G53=XCOUNT($C$4:$Q$6,1610,1)
G54G54=XCOUNT($C$4:$Q$6,1610,,1)
J52J52=XCOUNT($C$4:$Q$6,1611)
J53J53=XCOUNT($C$4:$Q$6,1611,1)
J54J54=XCOUNT($C$4:$Q$6,1611,,1)
M52M52=XCOUNT($C$4:$Q$6,1612)
M53M53=XCOUNT($C$4:$Q$6,1612,1)
M54M54=XCOUNT($C$4:$Q$6,1612,,1)
P52P52=XCOUNT($C$4:$Q$6,1613)
P53P53=XCOUNT($C$4:$Q$6,1613,1)
P54P54=XCOUNT($C$4:$Q$6,1613,,1)
D56D56=XCOUNT($C$4:$Q$6,169,,,,1)
D57D57=XCOUNT($C$4:$Q$6,169,1,,,1)
D58D58=XCOUNT($C$4:$Q$6,169,,1,,1)
G56G56=XCOUNT($C$4:$Q$6,1610,,,,1)
G57G57=XCOUNT($C$4:$Q$6,1610,1,,,1)
G58G58=XCOUNT($C$4:$Q$6,1610,,1,,1)
J56J56=XCOUNT($C$4:$Q$6,1611,,,,1)
J57J57=XCOUNT($C$4:$Q$6,1611,1,,,1)
J58J58=XCOUNT($C$4:$Q$6,1611,,1,,1)
M56M56=XCOUNT($C$4:$Q$6,1612,,,,1)
M57M57=XCOUNT($C$4:$Q$6,1612,1,,,1)
M58M58=XCOUNT($C$4:$Q$6,1612,,1,,1)
P56P56=XCOUNT($C$4:$Q$6,1613,,,,1)
P57P57=XCOUNT($C$4:$Q$6,1613,1,,,1)
P58P58=XCOUNT($C$4:$Q$6,1613,,1,,1)
D62D62=XCOUNT($C$4:$Q$6,1614)
D63D63=XCOUNT($C$4:$Q$6,1614,1)
D64D64=XCOUNT($C$4:$Q$6,1614,,1)
D66D66=XCOUNT($C$4:$Q$6,1614,,,,1)
D67D67=XCOUNT($C$4:$Q$6,1614,1,,,1)
D68D68=XCOUNT($C$4:$Q$6,1614,,1,,1)


Please feel free to share any thoughts or suggestions.
 
Upvote 0
Apologies, the code was not included in the original post:

Excel Formula:
=LAMBDA(reference,[count_type],[rows],[columns],[match_criteria],[total_excluding],
   LET(
      ref,reference,
      ct,count_type,
      tet,total_excluding,
      rs,rows,
      cs,columns,
      mtc,IFERROR(match_criteria,0),
         IF(OR(IF(AND(NIO(count_type),ct<>0),ISERROR(MATCH(ct,AllTypes,0))),IF(NIO(total_excluding),ISERROR(MATCH(tet,{0,1},0))),IF(NIO(rows),ISERROR(MATCH(rs,{0,1},0))),IF(NIO(columns),ISERROR(MATCH(cs,{0,1},0))),AND(rs=1,cs=1),AND(OR(IO(count_type),ct=0),NIO(match_criteria))),
         XERROR(7),
            IF(AND(OR(IO(rows),rs=0),OR(IO(columns),cs=0)),
               LET(
                  t,COLUMNS(ref)*ROWS(ref),
                  exp,IF(OR(IO(count_type),ct=0),t,IF(AND(ct>=1,ct<=16),SUM(ISXTYPE(ref,ct,,mtc,1)),SUM(ISXTYPE(ref,,ct,mtc,1)))),
                     IF(OR(IO(total_excluding),tet=0),exp,t-exp)),IF(AND(OR(IO(columns),cs=0),rs=1),
                        LET(
                           tr,ROWS(ref),
                           IF(OR(IO(count_type),ct=0),IF(OR(IO(total_excluding),tet=0),tr,0),LET(a,IF(ct<=16,ISXTYPE(ref,ct,,mtc,1),ISXTYPE(ref,,ct,mtc,1)),rexp,SUM(IF(MMULT(a,SEQUENCE(COLUMNS(a),,1,0)),1,0)),IF(OR(IO(total_excluding),tet=0),rexp,tr-rexp)))),
                              IF(AND(OR(IO(rows),rs=0),cs=1),
                                 IF(OR(IO(count_type),ct=0),
                                    IF(OR(IO(total_excluding),tet=0),COLUMNS(ref),0),
                                       LET(
                                          tref,TRANSPOSE(ref),
                                          tr,ROWS(tref),
                                          tmtc,TRANSPOSE(mtc),
                                          a,IF(ct<=16,IF(IO(match_criteria),ISXTYPE(tref,ct,,,1),ISXTYPE(tref,ct,,tmtc,1)),IF(IO(match_criteria),ISXTYPE(tref,,ct,,1),ISXTYPE(tref,,ct,tmtc,1))),
                                          rexp,SUM(IF(MMULT(a,SEQUENCE(COLUMNS(a),,1,0)),1,0)),
                                             IF(OR(IO(total_excluding),tet=0),
                                                rexp,
                                                tr-rexp)
                                       )
                                    )
                                 )
                              )
            )
         )
   )
)

The following helper LAMBDAs and defined name are used in this code:

ISXTYPE() which is posted

XERROR() which is posted

IO
Excel Formula:
=LAMBDA(parameter,ISOMITTED(parameter))

NIO
Excel Formula:
=LAMBDA(parameter,NOT(ISOMITTED(parameter)))

AllTypes
Excel Formula:
={1,2,3,4,16,31,32,41,42,160,161,162,163,164,165,166,167,168,169,1610,1611,1612,1613,1614}
 
(The following examples didn't fit the original post as the total character count of the post exceeded 100,000)

Here are a few examples for match_criteria included; the first XL2BB for numbers and the second for texts:

xcount.xlsx
ABCDEFGHIJKLMNOPQR
70
71match criteria for numbers
72
73count type omittedcount type = 0count type = 1count type = 2count type = 3
74allallallallall
75cells#N/Acells#N/Acells1cells0cells0
76rows#N/Arows#N/Arows1rows0rows0
77columns#N/Acolumns#N/Acolumns1columns0columns0
78excludingexcludingexcludingexcludingexcluding
79cells#N/Acells#N/Acells44cells45cells45
80rows#N/Arows#N/Arows2rows3rows3
81columns#N/Acolumns#N/Acolumns14columns15columns15
82
83count type = 4count type = 16count type = 31count type = 32count type = 41
84allallallallall
85cells0cells0cells0cells0cells0
86rows0rows0rows0rows0rows0
87columns0columns0columns0columns0columns0
88excludingexcludingexcludingexcludingexcluding
89cells45cells45cells45cells45cells45
90rows3rows3rows3rows3rows3
91columns15columns15columns15columns15columns15
92
93count type = 42count type = 160count type = 161count type = 162count type = 163
94allallallallall
95cells0cells0cells0cells0cells0
96rows0rows0rows0rows0rows0
97columns0columns0columns0columns0columns0
98excludingexcludingexcludingexcludingexcluding
99cells45cells45cells45cells45cells45
100rows3rows3rows3rows3rows3
101columns15columns15columns15columns15columns15
102
103count type = 164count type = 165count type = 166count type = 167count type = 168
104allallallallall
105cells0cells0cells0cells0cells0
106rows0rows0rows0rows0rows0
107columns0columns0columns0columns0columns0
108excludingexcludingexcludingexcludingexcluding
109cells45cells45cells45cells45cells45
110rows3rows3rows3rows3rows3
111columns15columns15columns15columns15columns15
112
113count type = 169count type = 1610count type = 1611count type = 1612count type = 1613
114allallallallall
115cells0cells0cells0cells0cells0
116rows0rows0rows0rows0rows0
117columns0columns0columns0columns0columns0
118excludingexcludingexcludingexcludingexcluding
119cells45cells45cells45cells45cells45
120rows3rows3rows3rows3rows3
121columns15columns15columns15columns15columns15
122
123count type = 1614
124all
125cells0
126rows0
127columns0
128excluding
129cells45
130rows3
131columns15
132
133
Sheet3
Cell Formulas
RangeFormula
D75D75=XCOUNT($C$4:$Q$6,,,,$C$4:$Q$6=90)
D76D76=XCOUNT($C$4:$Q$6,,1,,$C$4:$Q$6=90)
D77D77=XCOUNT($C$4:$Q$6,,,1,$C$4:$Q$6=90)
G75G75=XCOUNT($C$4:$Q$6,0,,,$C$4:$Q$6=90)
G76G76=XCOUNT($C$4:$Q$6,0,1,,$C$4:$Q$6=90)
G77G77=XCOUNT($C$4:$Q$6,0,,1,$C$4:$Q$6=90)
J75J75=XCOUNT($C$4:$Q$6,1,,,$C$4:$Q$6=90)
J76J76=XCOUNT($C$4:$Q$6,1,1,,$C$4:$Q$6=90)
J77J77=XCOUNT($C$4:$Q$6,1,,1,$C$4:$Q$6=90)
M75M75=XCOUNT($C$4:$Q$6,2,,,$C$4:$Q$6=90)
M76M76=XCOUNT($C$4:$Q$6,2,1,,$C$4:$Q$6=90)
M77M77=XCOUNT($C$4:$Q$6,2,,1,$C$4:$Q$6=90)
P75P75=XCOUNT($C$4:$Q$6,3,,,$C$4:$Q$6=90)
P76P76=XCOUNT($C$4:$Q$6,3,1,,$C$4:$Q$6=90)
P77P77=XCOUNT($C$4:$Q$6,3,,1,$C$4:$Q$6=90)
D79D79=XCOUNT($C$4:$Q$6,,,,$C$4:$Q$6=90,1)
D80D80=XCOUNT($C$4:$Q$6,,1,,$C$4:$Q$6=90,1)
D81D81=XCOUNT($C$4:$Q$6,,,1,$C$4:$Q$6=90,1)
G79G79=XCOUNT($C$4:$Q$6,0,,,$C$4:$Q$6=90,1)
G80G80=XCOUNT($C$4:$Q$6,0,1,,$C$4:$Q$6=90,1)
G81G81=XCOUNT($C$4:$Q$6,0,,1,$C$4:$Q$6=90,1)
J79J79=XCOUNT($C$4:$Q$6,1,,,$C$4:$Q$6=90,1)
J80J80=XCOUNT($C$4:$Q$6,1,1,,$C$4:$Q$6=90,1)
J81J81=XCOUNT($C$4:$Q$6,1,,1,$C$4:$Q$6=90,1)
M79M79=XCOUNT($C$4:$Q$6,2,,,$C$4:$Q$6=90,1)
M80M80=XCOUNT($C$4:$Q$6,2,1,,$C$4:$Q$6=90,1)
M81M81=XCOUNT($C$4:$Q$6,2,,1,$C$4:$Q$6=90,1)
P79P79=XCOUNT($C$4:$Q$6,3,,,$C$4:$Q$6=90,1)
P80P80=XCOUNT($C$4:$Q$6,3,1,,$C$4:$Q$6=90,1)
P81P81=XCOUNT($C$4:$Q$6,3,,1,$C$4:$Q$6=90,1)
D85D85=XCOUNT($C$4:$Q$6,4,,,$C$4:$Q$6=90)
D86D86=XCOUNT($C$4:$Q$6,4,1,,$C$4:$Q$6=90)
D87D87=XCOUNT($C$4:$Q$6,4,,1,$C$4:$Q$6=90)
G85G85=XCOUNT($C$4:$Q$6,16,,,$C$4:$Q$6=90)
G86G86=XCOUNT($C$4:$Q$6,16,1,,$C$4:$Q$6=90)
G87G87=XCOUNT($C$4:$Q$6,16,,1,$C$4:$Q$6=90)
J85J85=XCOUNT($C$4:$Q$6,31,,,$C$4:$Q$6=90)
J86J86=XCOUNT($C$4:$Q$6,31,1,,$C$4:$Q$6=90)
J87J87=XCOUNT($C$4:$Q$6,31,,1,$C$4:$Q$6=90)
M85M85=XCOUNT($C$4:$Q$6,32,,,$C$4:$Q$6=90)
M86M86=XCOUNT($C$4:$Q$6,32,1,,$C$4:$Q$6=90)
M87M87=XCOUNT($C$4:$Q$6,32,,1,$C$4:$Q$6=90)
P85P85=XCOUNT($C$4:$Q$6,41,,,$C$4:$Q$6=90)
P86P86=XCOUNT($C$4:$Q$6,41,1,,$C$4:$Q$6=90)
P87P87=XCOUNT($C$4:$Q$6,41,,1,$C$4:$Q$6=90)
D89D89=XCOUNT($C$4:$Q$6,4,,,$C$4:$Q$6=90,1)
D90D90=XCOUNT($C$4:$Q$6,4,1,,$C$4:$Q$6=90,1)
D91D91=XCOUNT($C$4:$Q$6,4,,1,$C$4:$Q$6=90,1)
G89G89=XCOUNT($C$4:$Q$6,16,,,$C$4:$Q$6=90,1)
G90G90=XCOUNT($C$4:$Q$6,16,1,,$C$4:$Q$6=90,1)
G91G91=XCOUNT($C$4:$Q$6,16,,1,$C$4:$Q$6=90,1)
J89J89=XCOUNT($C$4:$Q$6,31,,,$C$4:$Q$6=90,1)
J90J90=XCOUNT($C$4:$Q$6,31,1,,$C$4:$Q$6=90,1)
J91J91=XCOUNT($C$4:$Q$6,31,,1,$C$4:$Q$6=90,1)
M89M89=XCOUNT($C$4:$Q$6,32,,,$C$4:$Q$6=90,1)
M90M90=XCOUNT($C$4:$Q$6,32,1,,$C$4:$Q$6=90,1)
M91M91=XCOUNT($C$4:$Q$6,32,,1,$C$4:$Q$6=90,1)
P89P89=XCOUNT($C$4:$Q$6,41,,,$C$4:$Q$6=90,1)
P90P90=XCOUNT($C$4:$Q$6,41,1,,$C$4:$Q$6=90,1)
P91P91=XCOUNT($C$4:$Q$6,41,,1,$C$4:$Q$6=90,1)
D95D95=XCOUNT($C$4:$Q$6,42,,,$C$4:$Q$6=90)
D96D96=XCOUNT($C$4:$Q$6,42,1,,$C$4:$Q$6=90)
D97D97=XCOUNT($C$4:$Q$6,42,,1,$C$4:$Q$6=90)
G95G95=XCOUNT($C$4:$Q$6,160,,,$C$4:$Q$6=90)
G96G96=XCOUNT($C$4:$Q$6,160,1,,$C$4:$Q$6=90)
G97G97=XCOUNT($C$4:$Q$6,160,,1,$C$4:$Q$6=90)
J95J95=XCOUNT($C$4:$Q$6,161,,,$C$4:$Q$6=90)
J96J96=XCOUNT($C$4:$Q$6,161,1,,$C$4:$Q$6=90)
J97J97=XCOUNT($C$4:$Q$6,161,,1,$C$4:$Q$6=90)
M95M95=XCOUNT($C$4:$Q$6,162,,,$C$4:$Q$6=90)
M96M96=XCOUNT($C$4:$Q$6,162,1,,$C$4:$Q$6=90)
M97M97=XCOUNT($C$4:$Q$6,162,,1,$C$4:$Q$6=90)
P95P95=XCOUNT($C$4:$Q$6,163,,,$C$4:$Q$6=90)
P96P96=XCOUNT($C$4:$Q$6,163,1,,$C$4:$Q$6=90)
P97P97=XCOUNT($C$4:$Q$6,163,,1,$C$4:$Q$6=90)
D99D99=XCOUNT($C$4:$Q$6,42,,,$C$4:$Q$6=90,1)
D100D100=XCOUNT($C$4:$Q$6,42,1,,$C$4:$Q$6=90,1)
D101D101=XCOUNT($C$4:$Q$6,42,,1,$C$4:$Q$6=90,1)
G99G99=XCOUNT($C$4:$Q$6,160,,,$C$4:$Q$6=90,1)
G100G100=XCOUNT($C$4:$Q$6,160,1,,$C$4:$Q$6=90,1)
G101G101=XCOUNT($C$4:$Q$6,160,,1,$C$4:$Q$6=90,1)
J99J99=XCOUNT($C$4:$Q$6,161,,,$C$4:$Q$6=90,1)
J100J100=XCOUNT($C$4:$Q$6,161,1,,$C$4:$Q$6=90,1)
J101J101=XCOUNT($C$4:$Q$6,161,,1,$C$4:$Q$6=90,1)
M99M99=XCOUNT($C$4:$Q$6,162,,,$C$4:$Q$6=90,1)
M100M100=XCOUNT($C$4:$Q$6,162,1,,$C$4:$Q$6=90,1)
M101M101=XCOUNT($C$4:$Q$6,162,,1,$C$4:$Q$6=90,1)
P99P99=XCOUNT($C$4:$Q$6,163,,,$C$4:$Q$6=90,1)
P100P100=XCOUNT($C$4:$Q$6,163,1,,$C$4:$Q$6=90,1)
P101P101=XCOUNT($C$4:$Q$6,163,,1,$C$4:$Q$6=90,1)
D105D105=XCOUNT($C$4:$Q$6,164,,,$C$4:$Q$6=90)
D106D106=XCOUNT($C$4:$Q$6,164,1,,$C$4:$Q$6=90)
D107D107=XCOUNT($C$4:$Q$6,164,,1,$C$4:$Q$6=90)
G105G105=XCOUNT($C$4:$Q$6,165,,,$C$4:$Q$6=90)
G106G106=XCOUNT($C$4:$Q$6,165,1,,$C$4:$Q$6=90)
G107G107=XCOUNT($C$4:$Q$6,165,,1,$C$4:$Q$6=90)
J105J105=XCOUNT($C$4:$Q$6,166,,,$C$4:$Q$6=90)
J106J106=XCOUNT($C$4:$Q$6,166,1,,$C$4:$Q$6=90)
J107J107=XCOUNT($C$4:$Q$6,166,,1,$C$4:$Q$6=90)
M105M105=XCOUNT($C$4:$Q$6,167,,,$C$4:$Q$6=90)
M106M106=XCOUNT($C$4:$Q$6,167,1,,$C$4:$Q$6=90)
M107M107=XCOUNT($C$4:$Q$6,167,,1,$C$4:$Q$6=90)
P105P105=XCOUNT($C$4:$Q$6,168,,,$C$4:$Q$6=90)
P106P106=XCOUNT($C$4:$Q$6,168,1,,$C$4:$Q$6=90)
P107P107=XCOUNT($C$4:$Q$6,168,,1,$C$4:$Q$6=90)
D109D109=XCOUNT($C$4:$Q$6,164,,,$C$4:$Q$6=90,1)
D110D110=XCOUNT($C$4:$Q$6,164,1,,$C$4:$Q$6=90,1)
D111D111=XCOUNT($C$4:$Q$6,164,,1,$C$4:$Q$6=90,1)
G109G109=XCOUNT($C$4:$Q$6,165,,,$C$4:$Q$6=90,1)
G110G110=XCOUNT($C$4:$Q$6,165,1,,$C$4:$Q$6=90,1)
G111G111=XCOUNT($C$4:$Q$6,165,,1,$C$4:$Q$6=90,1)
J109J109=XCOUNT($C$4:$Q$6,166,,,$C$4:$Q$6=90,1)
J110J110=XCOUNT($C$4:$Q$6,166,1,,$C$4:$Q$6=90,1)
J111J111=XCOUNT($C$4:$Q$6,166,,1,$C$4:$Q$6=90,1)
M109M109=XCOUNT($C$4:$Q$6,167,,,$C$4:$Q$6=90,1)
M110M110=XCOUNT($C$4:$Q$6,167,1,,$C$4:$Q$6=90,1)
M111M111=XCOUNT($C$4:$Q$6,167,,1,$C$4:$Q$6=90,1)
P109P109=XCOUNT($C$4:$Q$6,168,,,$C$4:$Q$6=90,1)
P110P110=XCOUNT($C$4:$Q$6,168,1,,$C$4:$Q$6=90,1)
P111P111=XCOUNT($C$4:$Q$6,168,,1,$C$4:$Q$6=90,1)
D115D115=XCOUNT($C$4:$Q$6,169,,,$C$4:$Q$6=90)
D116D116=XCOUNT($C$4:$Q$6,169,1,,$C$4:$Q$6=90)
D117D117=XCOUNT($C$4:$Q$6,169,,1,$C$4:$Q$6=90)
G115G115=XCOUNT($C$4:$Q$6,1610,,,$C$4:$Q$6=90)
G116G116=XCOUNT($C$4:$Q$6,1610,1,,$C$4:$Q$6=90)
G117G117=XCOUNT($C$4:$Q$6,1610,,1,$C$4:$Q$6=90)
J115J115=XCOUNT($C$4:$Q$6,1611,,,$C$4:$Q$6=90)
J116J116=XCOUNT($C$4:$Q$6,1611,1,,$C$4:$Q$6=90)
J117J117=XCOUNT($C$4:$Q$6,1611,,1,$C$4:$Q$6=90)
M115M115=XCOUNT($C$4:$Q$6,1612,,,$C$4:$Q$6=90)
M116M116=XCOUNT($C$4:$Q$6,1612,1,,$C$4:$Q$6=90)
M117M117=XCOUNT($C$4:$Q$6,1612,,1,$C$4:$Q$6=90)
P115P115=XCOUNT($C$4:$Q$6,1613,,,$C$4:$Q$6=90)
P116P116=XCOUNT($C$4:$Q$6,1613,1,,$C$4:$Q$6=90)
P117P117=XCOUNT($C$4:$Q$6,1613,,1,$C$4:$Q$6=90)
D119D119=XCOUNT($C$4:$Q$6,169,,,$C$4:$Q$6=90,1)
D120D120=XCOUNT($C$4:$Q$6,169,1,,$C$4:$Q$6=90,1)
D121D121=XCOUNT($C$4:$Q$6,169,,1,$C$4:$Q$6=90,1)
G119G119=XCOUNT($C$4:$Q$6,1610,,,$C$4:$Q$6=90,1)
G120G120=XCOUNT($C$4:$Q$6,1610,1,,$C$4:$Q$6=90,1)
G121G121=XCOUNT($C$4:$Q$6,1610,,1,$C$4:$Q$6=90,1)
J119J119=XCOUNT($C$4:$Q$6,1611,,,$C$4:$Q$6=90,1)
J120J120=XCOUNT($C$4:$Q$6,1611,1,,$C$4:$Q$6=90,1)
J121J121=XCOUNT($C$4:$Q$6,1611,,1,$C$4:$Q$6=90,1)
M119M119=XCOUNT($C$4:$Q$6,1612,,,$C$4:$Q$6=90,1)
M120M120=XCOUNT($C$4:$Q$6,1612,1,,$C$4:$Q$6=90,1)
M121M121=XCOUNT($C$4:$Q$6,1612,,1,$C$4:$Q$6=90,1)
P119P119=XCOUNT($C$4:$Q$6,1613,,,$C$4:$Q$6=90,1)
P120P120=XCOUNT($C$4:$Q$6,1613,1,,$C$4:$Q$6=90,1)
P121P121=XCOUNT($C$4:$Q$6,1613,,1,$C$4:$Q$6=90,1)
D125D125=XCOUNT($C$4:$Q$6,1614,,,$C$4:$Q$6=90)
D126D126=XCOUNT($C$4:$Q$6,1614,1,,$C$4:$Q$6=90)
D127D127=XCOUNT($C$4:$Q$6,1614,,1,$C$4:$Q$6=90)
D129D129=XCOUNT($C$4:$Q$6,1614,,,$C$4:$Q$6=90,1)
D130D130=XCOUNT($C$4:$Q$6,1614,1,,$C$4:$Q$6=90,1)
D131D131=XCOUNT($C$4:$Q$6,1614,,1,$C$4:$Q$6=90,1)


The following XL2BB provides examples with match criteria for texts:

xcount.xlsx
ABCDEFGHIJKLMNOPQR
133
134match criteria for texts
135
136count type omittedcount type = 0count type = 1count type = 2count type = 3
137allallallallall
138cells#N/Acells#N/Acells0cells1cells0
139rows#N/Arows#N/Arows0rows1rows0
140columns#N/Acolumns#N/Acolumns0columns1columns0
141excludingexcludingexcludingexcludingexcluding
142cells#N/Acells#N/Acells45cells44cells45
143rows#N/Arows#N/Arows3rows2rows3
144columns#N/Acolumns#N/Acolumns15columns14columns15
145
146count type = 4count type = 16count type = 31count type = 32count type = 41
147allallallallall
148cells0cells0cells0cells0cells0
149rows0rows0rows0rows0rows0
150columns0columns0columns0columns0columns0
151excludingexcludingexcludingexcludingexcluding
152cells45cells45cells45cells45cells45
153rows3rows3rows3rows3rows3
154columns15columns15columns15columns15columns15
155
156count type = 42count type = 160count type = 161count type = 162count type = 163
157allallallallall
158cells0cells0cells0cells0cells0
159rows0rows0rows0rows0rows0
160columns0columns0columns0columns0columns0
161excludingexcludingexcludingexcludingexcluding
162cells45cells45cells45cells45cells45
163rows3rows3rows3rows3rows3
164columns15columns15columns15columns15columns15
165
166count type = 164count type = 165count type = 166count type = 167count type = 168
167allallallallall
168cells0cells0cells0cells0cells0
169rows0rows0rows0rows0rows0
170columns0columns0columns0columns0columns0
171excludingexcludingexcludingexcludingexcluding
172cells45cells45cells45cells45cells45
173rows3rows3rows3rows3rows3
174columns15columns15columns15columns15columns15
175
176count type = 169count type = 1610count type = 1611count type = 1612count type = 1613
177allallallallall
178cells0cells0cells0cells0cells0
179rows0rows0rows0rows0rows0
180columns0columns0columns0columns0columns0
181excludingexcludingexcludingexcludingexcluding
182cells45cells45cells45cells45cells45
183rows3rows3rows3rows3rows3
184columns15columns15columns15columns15columns15
185
186count type = 1614
187all
188cells0
189rows0
190columns0
191excluding
192cells45
193rows3
194columns15
195
196
Sheet3
Cell Formulas
RangeFormula
D138D138=XCOUNT($C$4:$Q$6,,,,$C$4:$Q$6="book")
D139D139=XCOUNT($C$4:$Q$6,,1,,$C$4:$Q$6="book")
D140D140=XCOUNT($C$4:$Q$6,,,1,$C$4:$Q$6="book")
G138G138=XCOUNT($C$4:$Q$6,0,,,$C$4:$Q$6="book")
G139G139=XCOUNT($C$4:$Q$6,0,1,,$C$4:$Q$6="book")
G140G140=XCOUNT($C$4:$Q$6,0,,1,$C$4:$Q$6="book")
J138J138=XCOUNT($C$4:$Q$6,1,,,$C$4:$Q$6="book")
J139J139=XCOUNT($C$4:$Q$6,1,1,,$C$4:$Q$6="book")
J140J140=XCOUNT($C$4:$Q$6,1,,1,$C$4:$Q$6="book")
M138M138=XCOUNT($C$4:$Q$6,2,,,$C$4:$Q$6="book")
M139M139=XCOUNT($C$4:$Q$6,2,1,,$C$4:$Q$6="book")
M140M140=XCOUNT($C$4:$Q$6,2,,1,$C$4:$Q$6="book")
P138P138=XCOUNT($C$4:$Q$6,3,,,$C$4:$Q$6="book")
P139P139=XCOUNT($C$4:$Q$6,3,1,,$C$4:$Q$6="book")
P140P140=XCOUNT($C$4:$Q$6,3,,1,$C$4:$Q$6="book")
D142D142=XCOUNT($C$4:$Q$6,,,,$C$4:$Q$6="book",1)
D143D143=XCOUNT($C$4:$Q$6,,1,,$C$4:$Q$6="book",1)
D144D144=XCOUNT($C$4:$Q$6,,,1,$C$4:$Q$6="book",1)
G142G142=XCOUNT($C$4:$Q$6,0,,,$C$4:$Q$6="book",1)
G143G143=XCOUNT($C$4:$Q$6,0,1,,$C$4:$Q$6="book",1)
G144G144=XCOUNT($C$4:$Q$6,0,,1,$C$4:$Q$6="book",1)
J142J142=XCOUNT($C$4:$Q$6,1,,,$C$4:$Q$6="book",1)
J143J143=XCOUNT($C$4:$Q$6,1,1,,$C$4:$Q$6="book",1)
J144J144=XCOUNT($C$4:$Q$6,1,,1,$C$4:$Q$6="book",1)
M142M142=XCOUNT($C$4:$Q$6,2,,,$C$4:$Q$6="book",1)
M143M143=XCOUNT($C$4:$Q$6,2,1,,$C$4:$Q$6="book",1)
M144M144=XCOUNT($C$4:$Q$6,2,,1,$C$4:$Q$6="book",1)
P142P142=XCOUNT($C$4:$Q$6,3,,,$C$4:$Q$6="book",1)
P143P143=XCOUNT($C$4:$Q$6,3,1,,$C$4:$Q$6="book",1)
P144P144=XCOUNT($C$4:$Q$6,3,,1,$C$4:$Q$6="book",1)
D148D148=XCOUNT($C$4:$Q$6,4,,,$C$4:$Q$6="book")
D149D149=XCOUNT($C$4:$Q$6,4,1,,$C$4:$Q$6="book")
D150D150=XCOUNT($C$4:$Q$6,4,,1,$C$4:$Q$6="book")
G148G148=XCOUNT($C$4:$Q$6,16,,,$C$4:$Q$6="book")
G149G149=XCOUNT($C$4:$Q$6,16,1,,$C$4:$Q$6="book")
G150G150=XCOUNT($C$4:$Q$6,16,,1,$C$4:$Q$6="book")
J148J148=XCOUNT($C$4:$Q$6,31,,,$C$4:$Q$6="book")
J149J149=XCOUNT($C$4:$Q$6,31,1,,$C$4:$Q$6="book")
J150J150=XCOUNT($C$4:$Q$6,31,,1,$C$4:$Q$6="book")
M148M148=XCOUNT($C$4:$Q$6,32,,,$C$4:$Q$6="book")
M149M149=XCOUNT($C$4:$Q$6,32,1,,$C$4:$Q$6="book")
M150M150=XCOUNT($C$4:$Q$6,32,,1,$C$4:$Q$6="book")
P148P148=XCOUNT($C$4:$Q$6,41,,,$C$4:$Q$6="book")
P149P149=XCOUNT($C$4:$Q$6,41,1,,$C$4:$Q$6="book")
P150P150=XCOUNT($C$4:$Q$6,41,,1,$C$4:$Q$6="book")
D152D152=XCOUNT($C$4:$Q$6,4,,,$C$4:$Q$6="book",1)
D153D153=XCOUNT($C$4:$Q$6,4,1,,$C$4:$Q$6="book",1)
D154D154=XCOUNT($C$4:$Q$6,4,,1,$C$4:$Q$6="book",1)
G152G152=XCOUNT($C$4:$Q$6,16,,,$C$4:$Q$6="book",1)
G153G153=XCOUNT($C$4:$Q$6,16,1,,$C$4:$Q$6="book",1)
G154G154=XCOUNT($C$4:$Q$6,16,,1,$C$4:$Q$6="book",1)
J152J152=XCOUNT($C$4:$Q$6,31,,,$C$4:$Q$6="book",1)
J153J153=XCOUNT($C$4:$Q$6,31,1,,$C$4:$Q$6="book",1)
J154J154=XCOUNT($C$4:$Q$6,31,,1,$C$4:$Q$6="book",1)
M152M152=XCOUNT($C$4:$Q$6,32,,,$C$4:$Q$6="book",1)
M153M153=XCOUNT($C$4:$Q$6,32,1,,$C$4:$Q$6="book",1)
M154M154=XCOUNT($C$4:$Q$6,32,,1,$C$4:$Q$6="book",1)
P152P152=XCOUNT($C$4:$Q$6,41,,,$C$4:$Q$6="book",1)
P153P153=XCOUNT($C$4:$Q$6,41,1,,$C$4:$Q$6="book",1)
P154P154=XCOUNT($C$4:$Q$6,41,,1,$C$4:$Q$6="book",1)
D158D158=XCOUNT($C$4:$Q$6,42,,,$C$4:$Q$6="book")
D159D159=XCOUNT($C$4:$Q$6,42,1,,$C$4:$Q$6="book")
D160D160=XCOUNT($C$4:$Q$6,42,,1,$C$4:$Q$6="book")
G158G158=XCOUNT($C$4:$Q$6,160,,,$C$4:$Q$6="book")
G159G159=XCOUNT($C$4:$Q$6,160,1,,$C$4:$Q$6="book")
G160G160=XCOUNT($C$4:$Q$6,160,,1,$C$4:$Q$6="book")
J158J158=XCOUNT($C$4:$Q$6,161,,,$C$4:$Q$6="book")
J159J159=XCOUNT($C$4:$Q$6,161,1,,$C$4:$Q$6="book")
J160J160=XCOUNT($C$4:$Q$6,161,,1,$C$4:$Q$6="book")
M158M158=XCOUNT($C$4:$Q$6,162,,,$C$4:$Q$6="book")
M159M159=XCOUNT($C$4:$Q$6,162,1,,$C$4:$Q$6="book")
M160M160=XCOUNT($C$4:$Q$6,162,,1,$C$4:$Q$6="book")
P158P158=XCOUNT($C$4:$Q$6,163,,,$C$4:$Q$6="book")
P159P159=XCOUNT($C$4:$Q$6,163,1,,$C$4:$Q$6="book")
P160P160=XCOUNT($C$4:$Q$6,163,,1,$C$4:$Q$6="book")
D162D162=XCOUNT($C$4:$Q$6,42,,,$C$4:$Q$6="book",1)
D163D163=XCOUNT($C$4:$Q$6,42,1,,$C$4:$Q$6="book",1)
D164D164=XCOUNT($C$4:$Q$6,42,,1,$C$4:$Q$6="book",1)
G162G162=XCOUNT($C$4:$Q$6,160,,,$C$4:$Q$6="book",1)
G163G163=XCOUNT($C$4:$Q$6,160,1,,$C$4:$Q$6="book",1)
G164G164=XCOUNT($C$4:$Q$6,160,,1,$C$4:$Q$6="book",1)
J162J162=XCOUNT($C$4:$Q$6,161,,,$C$4:$Q$6="book",1)
J163J163=XCOUNT($C$4:$Q$6,161,1,,$C$4:$Q$6="book",1)
J164J164=XCOUNT($C$4:$Q$6,161,,1,$C$4:$Q$6="book",1)
M162M162=XCOUNT($C$4:$Q$6,162,,,$C$4:$Q$6="book",1)
M163M163=XCOUNT($C$4:$Q$6,162,1,,$C$4:$Q$6="book",1)
M164M164=XCOUNT($C$4:$Q$6,162,,1,$C$4:$Q$6="book",1)
P162P162=XCOUNT($C$4:$Q$6,163,,,$C$4:$Q$6="book",1)
P163P163=XCOUNT($C$4:$Q$6,163,1,,$C$4:$Q$6="book",1)
P164P164=XCOUNT($C$4:$Q$6,163,,1,$C$4:$Q$6="book",1)
D168D168=XCOUNT($C$4:$Q$6,164,,,$C$4:$Q$6="book")
D169D169=XCOUNT($C$4:$Q$6,164,1,,$C$4:$Q$6="book")
D170D170=XCOUNT($C$4:$Q$6,164,,1,$C$4:$Q$6="book")
G168G168=XCOUNT($C$4:$Q$6,165,,,$C$4:$Q$6="book")
G169G169=XCOUNT($C$4:$Q$6,165,1,,$C$4:$Q$6="book")
G170G170=XCOUNT($C$4:$Q$6,165,,1,$C$4:$Q$6="book")
J168J168=XCOUNT($C$4:$Q$6,166,,,$C$4:$Q$6="book")
J169J169=XCOUNT($C$4:$Q$6,166,1,,$C$4:$Q$6="book")
J170J170=XCOUNT($C$4:$Q$6,166,,1,$C$4:$Q$6="book")
M168M168=XCOUNT($C$4:$Q$6,167,,,$C$4:$Q$6="book")
M169M169=XCOUNT($C$4:$Q$6,167,1,,$C$4:$Q$6="book")
M170M170=XCOUNT($C$4:$Q$6,167,,1,$C$4:$Q$6="book")
P168P168=XCOUNT($C$4:$Q$6,168,,,$C$4:$Q$6="book")
P169P169=XCOUNT($C$4:$Q$6,168,1,,$C$4:$Q$6="book")
P170P170=XCOUNT($C$4:$Q$6,168,,1,$C$4:$Q$6="book")
D172D172=XCOUNT($C$4:$Q$6,164,,,$C$4:$Q$6="book",1)
D173D173=XCOUNT($C$4:$Q$6,164,1,,$C$4:$Q$6="book",1)
D174D174=XCOUNT($C$4:$Q$6,164,,1,$C$4:$Q$6="book",1)
G172G172=XCOUNT($C$4:$Q$6,165,,,$C$4:$Q$6="book",1)
G173G173=XCOUNT($C$4:$Q$6,165,1,,$C$4:$Q$6="book",1)
G174G174=XCOUNT($C$4:$Q$6,165,,1,$C$4:$Q$6="book",1)
J172J172=XCOUNT($C$4:$Q$6,166,,,$C$4:$Q$6="book",1)
J173J173=XCOUNT($C$4:$Q$6,166,1,,$C$4:$Q$6="book",1)
J174J174=XCOUNT($C$4:$Q$6,166,,1,$C$4:$Q$6="book",1)
M172M172=XCOUNT($C$4:$Q$6,167,,,$C$4:$Q$6="book",1)
M173M173=XCOUNT($C$4:$Q$6,167,1,,$C$4:$Q$6="book",1)
M174M174=XCOUNT($C$4:$Q$6,167,,1,$C$4:$Q$6="book",1)
P172P172=XCOUNT($C$4:$Q$6,168,,,$C$4:$Q$6="book",1)
P173P173=XCOUNT($C$4:$Q$6,168,1,,$C$4:$Q$6="book",1)
P174P174=XCOUNT($C$4:$Q$6,168,,1,$C$4:$Q$6="book",1)
D178D178=XCOUNT($C$4:$Q$6,169,,,$C$4:$Q$6="book")
D179D179=XCOUNT($C$4:$Q$6,169,1,,$C$4:$Q$6="book")
D180D180=XCOUNT($C$4:$Q$6,169,,1,$C$4:$Q$6="book")
G178G178=XCOUNT($C$4:$Q$6,1610,,,$C$4:$Q$6="book")
G179G179=XCOUNT($C$4:$Q$6,1610,1,,$C$4:$Q$6="book")
G180G180=XCOUNT($C$4:$Q$6,1610,,1,$C$4:$Q$6="book")
J178J178=XCOUNT($C$4:$Q$6,1611,,,$C$4:$Q$6="book")
J179J179=XCOUNT($C$4:$Q$6,1611,1,,$C$4:$Q$6="book")
J180J180=XCOUNT($C$4:$Q$6,1611,,1,$C$4:$Q$6="book")
M178M178=XCOUNT($C$4:$Q$6,1612,,,$C$4:$Q$6="book")
M179M179=XCOUNT($C$4:$Q$6,1612,1,,$C$4:$Q$6="book")
M180M180=XCOUNT($C$4:$Q$6,1612,,1,$C$4:$Q$6="book")
P178P178=XCOUNT($C$4:$Q$6,1613,,,$C$4:$Q$6="book")
P179P179=XCOUNT($C$4:$Q$6,1613,1,,$C$4:$Q$6="book")
P180P180=XCOUNT($C$4:$Q$6,1613,,1,$C$4:$Q$6="book")
D182D182=XCOUNT($C$4:$Q$6,169,,,$C$4:$Q$6="book",1)
D183D183=XCOUNT($C$4:$Q$6,169,1,,$C$4:$Q$6="book",1)
D184D184=XCOUNT($C$4:$Q$6,169,,1,$C$4:$Q$6="book",1)
G182G182=XCOUNT($C$4:$Q$6,1610,,,$C$4:$Q$6="book",1)
G183G183=XCOUNT($C$4:$Q$6,1610,1,,$C$4:$Q$6="book",1)
G184G184=XCOUNT($C$4:$Q$6,1610,,1,$C$4:$Q$6="book",1)
J182J182=XCOUNT($C$4:$Q$6,1611,,,$C$4:$Q$6="book",1)
J183J183=XCOUNT($C$4:$Q$6,1611,1,,$C$4:$Q$6="book",1)
J184J184=XCOUNT($C$4:$Q$6,1611,,1,$C$4:$Q$6="book",1)
M182M182=XCOUNT($C$4:$Q$6,1612,,,$C$4:$Q$6="book",1)
M183M183=XCOUNT($C$4:$Q$6,1612,1,,$C$4:$Q$6="book",1)
M184M184=XCOUNT($C$4:$Q$6,1612,,1,$C$4:$Q$6="book",1)
P182P182=XCOUNT($C$4:$Q$6,1613,,,$C$4:$Q$6="book",1)
P183P183=XCOUNT($C$4:$Q$6,1613,1,,$C$4:$Q$6="book",1)
P184P184=XCOUNT($C$4:$Q$6,1613,,1,$C$4:$Q$6="book",1)
D188D188=XCOUNT($C$4:$Q$6,1614,,,$C$4:$Q$6="book")
D189D189=XCOUNT($C$4:$Q$6,1614,1,,$C$4:$Q$6="book")
D190D190=XCOUNT($C$4:$Q$6,1614,,1,$C$4:$Q$6="book")
D192D192=XCOUNT($C$4:$Q$6,1614,,,$C$4:$Q$6="book",1)
D193D193=XCOUNT($C$4:$Q$6,1614,1,,$C$4:$Q$6="book",1)
D194D194=XCOUNT($C$4:$Q$6,1614,,1,$C$4:$Q$6="book",1)
 
Updated code:
1) addresses the issue where the function output is affected by incorrect parameters (i.e. function not crashing to a single #N/A)
2) enhanced the "type" parameter to "types" allowing for entering more than one data type (as many as you like). This allows for a remarkable level of flexibility and full resolution for counting the desired data types, as demonstrated through several examples in the attached XL2BB below. (Note that the number of type permutations are huge; I have only shown a few singles and doubles.)
3) the parameters that can be turned on/off, i.e. rows, columns, total_excluding, can now be controlled logically (instead of just 0/1) exactly like the native Excel parameters' style; this means that 0, omitted, or FALSE is off, and any number other than 0, or TRUE is on; this is accomplished through PLSL (see code below)
4) adopts modular coding allowing for conveniently reusing portions of code with specific functionalities (as I have done for all my other functions)

(You can download my template from the link in my signature below, which makes it easier to test the functions compared to pasting the XL2BB and entering the functions manually)

XCOUNT
VBA Code:
=LAMBDA(reference,[types],[rows],[columns],[match_criteria],[total_excluding],
   LET(
      y,PLM(PO0(types),1),
      r,PLSL(rows),
      c,PLSL(columns),
      e,PLSL(total_excluding),
      m,IFERROR(match_criteria,0),
      d,IFS(AND(c=0,r=0),0,AND(c=0,r=1),1,AND(c=1,r=0),2),
      h,ISXTYPE(reference,FILTER(y,y>0),m,1),
      w,ROWS(reference)*COLUMNS(reference),
      i,IF(
         SUM(T1F0(MAP(y,LAMBDA(a,NOT(ISERROR(MATCH(a,{0},0))))))),
         SWITCH(d,
            0,w,
            1,ROWS(reference),
            2,COLUMNS(reference)),
         SWITCH(d,
            0,SUM(h),
            1,SUM(IF(BYROW(h,LAMBDA(a,SUM(a))),1,0)),
            2,SUM(IF(BYCOL(h,LAMBDA(a,SUM(a))),1,0)))
         ),
      SWITCH(d,
         0,LET(l,w,IF(e,l-i,i)),
         1,LET(m,ROWS(reference),IF(e,m-i,i)),
         2,LET(n,COLUMNS(reference),IF(e,n-i,i))
      )
   )
)

ISXTYPE (posted separately)

XERROR.TYPE (posted separately)

XTYPE (posted separately)

IO (shortened form of ISOMITTED)
VBA Code:

JAB (Helper function: returns a number greater than or equal to 1 [i.e. TRUE] if the reference has the specified data type(s) and 0 [i.e. FALSE] otherwise)
VBA Code:
=LAMBDA(types,advanced_types_array,
   LET(
      basic_types_array,SWITCH(advanced_types_array,1,1,2,2,31,3,32,3,41,4,42,4,16),
      MAP(advanced_types_array,LAMBDA(a,OR(a=types)))+MAP(basic_types_array,LAMBDA(a,OR(a=types)))
   )
)

JAN (Helper function: Returns TRUE if the reference is an array [i.e. is not a single element or is not omitted] and FALSE otherwise [simplified form of ISARRAY])
VBA Code:
=LAMBDA([reference],LET(r,IFERROR(IF(reference="","",reference),""),IF(IO(reference),FALSE,IF(ROWS(r)*COLUMNS(r)>1,TRUE,FALSE))))

JAO (Helper function: Returns TRUE if the reference contains at least one error and FALSE otherwise [simplified form of ISERRORS])
VBA Code:
=LAMBDA(reference,IF(IO(reference),FALSE,IF(SUM(IF(ISERROR(reference),1,0)),TRUE,FALSE)))

JAP (Helper function: Returns TRUE if the reference contains at least one blank and FALSE otherwise [simplified form of ISBLANKS])
VBA Code:
=LAMBDA(reference,IF(IO(reference),NA(),IF(SUM(IF(IFERROR(reference,0)="",1,0)),TRUE,FALSE)))

OF (Returns "FALSE" if the reference is TRUE, "0" if the reference is FALSE, and #N/A otherwise)
VBA Code:
=LAMBDA(reference,IF(ISERROR(IF(reference="",NA(),reference)),NA(),IFERROR(IF(reference,0,FALSE),NA())))

OT (Returns "TRUE" if the reference is TRUE, "1" if the reference is FALSE, and #N/A otherwise)
VBA Code:
=LAMBDA(reference,IF(ISERROR(IF(reference="",NA(),reference)),NA(),IFERROR(IF(reference,1,TRUE),NA())))

PLM (stands for "parameter limit, multiple")
(Returns the entered parameter array (not blank or error) and #N/A otherwise)
(causes the function to crash to a single #N/A if the entered parameter array contains at least one error or blank)
VBA Code:
=LAMBDA(parameter,[unique],
   IF(
      IF(OR(IO(parameter),JAO(parameter),JAP(parameter)),TRUE,IF(OR(ROWS(parameter)=1,COLUMNS(parameter)=1),FALSE,TRUE)),
      NA(),
      LET(
         u,PLSL(unique),
         IF(u,UNIQUE(parameter,1),parameter)
      )
   )
)

PLS (stands for "parameter limit, single")
(Returns the parameter if it is a single entry (not blank or error) and #N/A otherwise)
(Causes the function to crash to a single #N/A if the incorrect parameter is entered [either the wrong type or more than a single entry in array brackets "{}"])
VBA Code:
=LAMBDA(parameter,INDEX(IF(OR(JAN(parameter),JAO(parameter),JAP(parameter)),NA(),parameter),1))

PLSL (stands for "parameter limit, single logical)
(Returns 1 if the parameter is a single TRUE entry; 0 if the parameter is a single FALSE entry or is omitted; and #N/A otherwise)
(Causes the function to crash to a single #N/A if incorrect parameters are entered [either anything not logically evaluateble or more than a single entry in array brackets "{}"]))
VBA Code:
=LAMBDA([parameter],IF(IO(parameter),0,IF(JAN(parameter),NA(),LET(p,INDEX(parameter,1),IF(ISERROR(p),NA(),T1F0(p))))))

PO0 (Returns 0 if the parameter is omitted and the parameter itself otherwise)
VBA Code:
=LAMBDA([parameter],IF(IO(parameter),0,parameter))

T1F0 (Returns 1 if the reference is TRUE, 0 if the reference is FALSE, and #N/A otherwise)
VBA Code:
=LAMBDA(expression,IF(ISNUMBER(expression)+ISLOGICAL(expression),IF(expression,1,0),NA()))

Single types:
XCOUNT.xlsx
ABCDEFGHIJKLMNOPQRSTU
1
2#CALC!basic types
31dt:NUMBER
446#N/A9476book7082TRUE68 493627542dt:TEXT
57142notebook475635#DIV/0!90638613866776#CALC!3dt:BLANK
69232836321text313377a57FALSE1641644dt:LOGICAL
716dt:ERROR
8individual types
9advanced types
10count type omittedcount type = 0count type = 1count type = 2count type = 31dt:NUMBER
11allallallallall2dt:TEXT
12cells4545cells4545cells3445cells445cells24531dt:BLANK_REAL
13rows33rows33rows33rows33rows1332dt:BLANK_FORMULA
14columns1515columns1515columns1515columns415columns21541dt:LOGICAL_TRUE
15excludingexcludingexcludingexcludingexcluding42dt:LOGICAL_FALSE
16cells0cells0cells11cells41cells43160dt:ERROR_EXTERNAL!
17rows0rows0rows0rows0rows2161dt:ERROR_NULL!
18columns0columns0columns0columns11columns13162dt:ERROR_DIV/0!
19163dt:ERROR_VALUE!
20count type = 4count type = 16count type = 31count type = 32count type = 41164dt:ERROR_REF!
21allallallallall165dt:ERROR_NAME?
22cells245cells345cells145cells145cells145166dt:ERROR_NUM!
23rows23rows23rows13rows13rows13167dt:ERROR_N/A!
24columns215columns315columns115columns115columns115168dt:ERROR_GETTING_DATA!
25excludingexcludingexcludingexcludingexcluding169dt:ERROR_SPILL!
26cells43cells42cells44cells44cells441610dt:ERROR_CONNECT!
27rows1rows1rows2rows2rows21611dt:ERROR_BLOCKED!
28columns13columns12columns14columns14columns141612dt:ERROR_UNKNOWN!
291613dt:ERROR_FIELD!
30count type = 42count type = 160count type = 161count type = 162count type = 1631614dt:ERROR_CALC!
31allallallallall
32cells145cells045cells045cells145cells045
33rows13rows03rows03rows13rows03
34columns115columns015columns015columns115columns015
35excludingexcludingexcludingexcludingexcluding
36cells44cells45cells45cells44cells45
37rows2rows3rows3rows2rows3
38columns14columns15columns15columns14columns15
39
40count type = 164count type = 165count type = 166count type = 167count type = 168
41allallallallall
42cells045cells045cells045cells145cells045
43rows03rows03rows03rows13rows03
44columns015columns015columns015columns115columns015
45excludingexcludingexcludingexcludingexcluding
46cells45cells45cells45cells44cells45
47rows3rows3rows3rows2rows3
48columns15columns15columns15columns14columns15
49
50count type = 169count type = 1610count type = 1611count type = 1612count type = 1613
51allallallallall
52cells045cells045cells045cells045cells045
53rows03rows03rows03rows03rows03
54columns015columns015columns015columns015columns015
55excludingexcludingexcludingexcludingexcluding
56cells45cells45cells45cells45cells45
57rows3rows3rows3rows3rows3
58columns15columns15columns15columns15columns15
59
60count type = 1614
61all
62cells145
63rows13
64columns115
65excluding
66cells44
67rows2
68columns14
69
70
single
Cell Formulas
RangeFormula
C2C2=LAMBDA(reference,[types],[rows],[columns],[match_criteria],[total_excluding],LET(y,PLM(PO0(types),1),r,PLSL(rows),c,PLSL(columns),e,PLSL(total_excluding),m,IFERROR(match_criteria,0),d,IFS(AND(c=0,r=0),0,AND(c=0,r=1),1,AND(c=1,r=0),2),h,ISXTYPE(reference,FILTER(y,y>0),m,1),w,ROWS(reference)*COLUMNS(reference),i,IF(SUM(T1F0(MAP(y,LAMBDA(a,NOT(ISERROR(MATCH(a,{0},0))))))),SWITCH(d,0,w,1,ROWS(reference),2,COLUMNS(reference)),SWITCH(d,0,SUM(h),1,SUM(IF(BYROW(h,LAMBDA(a,SUM(a))),1,0)),2,SUM(IF(BYCOL(h,LAMBDA(a,SUM(a))),1,0)))),SWITCH(d,0,LET(l,w,IF(e,l-i,i)),1,LET(m,ROWS(reference),IF(e,m-i,i)),2,LET(n,COLUMNS(reference),IF(e,n-i,i)))))
D4D4=NA()
L4L4=IF(1,"")
I5I5=1/0
Q5Q5=LAMBDA("")
D12D12=XCOUNT($C$4:$Q$6)
E12:E14,E62:E64,Q52:Q54,N52:N54,K52:K54,H52:H54,E52:E54,Q42:Q44,N42:N44,K42:K44,H42:H44,E42:E44,Q32:Q34,N32:N34,K32:K34,H32:H34,E32:E34,Q22:Q24,N22:N24,K22:K24,H22:H24,E22:E24,Q12:Q14,N12:N14,K12:K14,H12:H14E12=D12+D16
D13D13=XCOUNT($C$4:$Q$6,,1)
D14,J14D14=XCOUNT($C$4:$Q$6,1,,1)
G12G12=XCOUNT($C$4:$Q$6,0)
G13G13=XCOUNT($C$4:$Q$6,0,1)
G14G14=XCOUNT($C$4:$Q$6,0,,1)
J12J12=XCOUNT($C$4:$Q$6,1)
J13J13=XCOUNT($C$4:$Q$6,1,1)
M12M12=XCOUNT($C$4:$Q$6,2)
M13M13=XCOUNT($C$4:$Q$6,2,1)
M14M14=XCOUNT($C$4:$Q$6,2,,1)
P12P12=XCOUNT($C$4:$Q$6,3)
P13P13=XCOUNT($C$4:$Q$6,3,1)
P14P14=XCOUNT($C$4:$Q$6,3,,1)
D16D16=XCOUNT($C$4:$Q$6,,,,,1)
D17D17=XCOUNT($C$4:$Q$6,,1,,,1)
D18D18=XCOUNT($C$4:$Q$6,,,1,,1)
G16G16=XCOUNT($C$4:$Q$6,0,,,,1)
G17G17=XCOUNT($C$4:$Q$6,0,1,,,1)
G18G18=XCOUNT($C$4:$Q$6,0,,1,,1)
J16J16=XCOUNT($C$4:$Q$6,1,,,,1)
J17J17=XCOUNT($C$4:$Q$6,1,1,,,1)
J18J18=XCOUNT($C$4:$Q$6,1,,1,,1)
M16M16=XCOUNT($C$4:$Q$6,2,,,,1)
M17M17=XCOUNT($C$4:$Q$6,2,1,,,1)
M18M18=XCOUNT($C$4:$Q$6,2,,1,,1)
P16P16=XCOUNT($C$4:$Q$6,3,,,,1)
P17P17=XCOUNT($C$4:$Q$6,3,1,,,1)
P18P18=XCOUNT($C$4:$Q$6,3,,1,,1)
D22D22=XCOUNT($C$4:$Q$6,4)
D23D23=XCOUNT($C$4:$Q$6,4,1)
D24D24=XCOUNT($C$4:$Q$6,4,,1)
G22G22=XCOUNT($C$4:$Q$6,16)
G23G23=XCOUNT($C$4:$Q$6,16,1)
G24G24=XCOUNT($C$4:$Q$6,16,,1)
J22J22=XCOUNT($C$4:$Q$6,31)
J23J23=XCOUNT($C$4:$Q$6,31,1)
J24J24=XCOUNT($C$4:$Q$6,31,,1)
M22M22=XCOUNT($C$4:$Q$6,32)
M23M23=XCOUNT($C$4:$Q$6,32,1)
M24M24=XCOUNT($C$4:$Q$6,32,,1)
P22P22=XCOUNT($C$4:$Q$6,41)
P23P23=XCOUNT($C$4:$Q$6,41,1)
P24P24=XCOUNT($C$4:$Q$6,41,,1)
D26D26=XCOUNT($C$4:$Q$6,4,,,,1)
D27D27=XCOUNT($C$4:$Q$6,4,1,,,1)
D28D28=XCOUNT($C$4:$Q$6,4,,1,,1)
G26G26=XCOUNT($C$4:$Q$6,16,,,,1)
G27G27=XCOUNT($C$4:$Q$6,16,1,,,1)
G28G28=XCOUNT($C$4:$Q$6,16,,1,,1)
J26J26=XCOUNT($C$4:$Q$6,31,,,,1)
J27J27=XCOUNT($C$4:$Q$6,31,1,,,1)
J28J28=XCOUNT($C$4:$Q$6,31,,1,,1)
M26M26=XCOUNT($C$4:$Q$6,32,,,,1)
M27M27=XCOUNT($C$4:$Q$6,32,1,,,1)
M28M28=XCOUNT($C$4:$Q$6,32,,1,,1)
P26P26=XCOUNT($C$4:$Q$6,41,,,,1)
P27P27=XCOUNT($C$4:$Q$6,41,1,,,1)
P28P28=XCOUNT($C$4:$Q$6,41,,1,,1)
D32D32=XCOUNT($C$4:$Q$6,42)
D33D33=XCOUNT($C$4:$Q$6,42,1)
D34D34=XCOUNT($C$4:$Q$6,42,,1)
G32G32=XCOUNT($C$4:$Q$6,160)
G33G33=XCOUNT($C$4:$Q$6,160,1)
G34G34=XCOUNT($C$4:$Q$6,160,,1)
J32J32=XCOUNT($C$4:$Q$6,161)
J33J33=XCOUNT($C$4:$Q$6,161,1)
J34J34=XCOUNT($C$4:$Q$6,161,,1)
M32M32=XCOUNT($C$4:$Q$6,162)
M33M33=XCOUNT($C$4:$Q$6,162,1)
M34M34=XCOUNT($C$4:$Q$6,162,,1)
P32P32=XCOUNT($C$4:$Q$6,163)
P33P33=XCOUNT($C$4:$Q$6,163,1)
P34P34=XCOUNT($C$4:$Q$6,163,,1)
D36D36=XCOUNT($C$4:$Q$6,42,,,,1)
D37D37=XCOUNT($C$4:$Q$6,42,1,,,1)
D38D38=XCOUNT($C$4:$Q$6,42,,1,,1)
G36G36=XCOUNT($C$4:$Q$6,160,,,,1)
G37G37=XCOUNT($C$4:$Q$6,160,1,,,1)
G38G38=XCOUNT($C$4:$Q$6,160,,1,,1)
J36J36=XCOUNT($C$4:$Q$6,161,,,,1)
J37J37=XCOUNT($C$4:$Q$6,161,1,,,1)
J38J38=XCOUNT($C$4:$Q$6,161,,1,,1)
M36M36=XCOUNT($C$4:$Q$6,162,,,,1)
M37M37=XCOUNT($C$4:$Q$6,162,1,,,1)
M38M38=XCOUNT($C$4:$Q$6,162,,1,,1)
P36P36=XCOUNT($C$4:$Q$6,163,,,,1)
P37P37=XCOUNT($C$4:$Q$6,163,1,,,1)
P38P38=XCOUNT($C$4:$Q$6,163,,1,,1)
D42D42=XCOUNT($C$4:$Q$6,164)
D43D43=XCOUNT($C$4:$Q$6,164,1)
D44D44=XCOUNT($C$4:$Q$6,164,,1)
G42G42=XCOUNT($C$4:$Q$6,165)
G43G43=XCOUNT($C$4:$Q$6,165,1)
G44G44=XCOUNT($C$4:$Q$6,165,,1)
J42J42=XCOUNT($C$4:$Q$6,166)
J43J43=XCOUNT($C$4:$Q$6,166,1)
J44J44=XCOUNT($C$4:$Q$6,166,,1)
M42M42=XCOUNT($C$4:$Q$6,167)
M43M43=XCOUNT($C$4:$Q$6,167,1)
M44M44=XCOUNT($C$4:$Q$6,167,,1)
P42P42=XCOUNT($C$4:$Q$6,168)
P43P43=XCOUNT($C$4:$Q$6,168,1)
P44P44=XCOUNT($C$4:$Q$6,168,,1)
D46D46=XCOUNT($C$4:$Q$6,164,,,,1)
D47D47=XCOUNT($C$4:$Q$6,164,1,,,1)
D48D48=XCOUNT($C$4:$Q$6,164,,1,,1)
G46G46=XCOUNT($C$4:$Q$6,165,,,,1)
G47G47=XCOUNT($C$4:$Q$6,165,1,,,1)
G48G48=XCOUNT($C$4:$Q$6,165,,1,,1)
J46J46=XCOUNT($C$4:$Q$6,166,,,,1)
J47J47=XCOUNT($C$4:$Q$6,166,1,,,1)
J48J48=XCOUNT($C$4:$Q$6,166,,1,,1)
M46M46=XCOUNT($C$4:$Q$6,167,,,,1)
M47M47=XCOUNT($C$4:$Q$6,167,1,,,1)
M48M48=XCOUNT($C$4:$Q$6,167,,1,,1)
P46P46=XCOUNT($C$4:$Q$6,168,,,,1)
P47P47=XCOUNT($C$4:$Q$6,168,1,,,1)
P48P48=XCOUNT($C$4:$Q$6,168,,1,,1)
D52D52=XCOUNT($C$4:$Q$6,169)
D53D53=XCOUNT($C$4:$Q$6,169,1)
D54D54=XCOUNT($C$4:$Q$6,169,,1)
G52G52=XCOUNT($C$4:$Q$6,1610)
G53G53=XCOUNT($C$4:$Q$6,1610,1)
G54G54=XCOUNT($C$4:$Q$6,1610,,1)
J52J52=XCOUNT($C$4:$Q$6,1611)
J53J53=XCOUNT($C$4:$Q$6,1611,1)
J54J54=XCOUNT($C$4:$Q$6,1611,,1)
M52M52=XCOUNT($C$4:$Q$6,1612)
M53M53=XCOUNT($C$4:$Q$6,1612,1)
M54M54=XCOUNT($C$4:$Q$6,1612,,1)
P52P52=XCOUNT($C$4:$Q$6,1613)
P53P53=XCOUNT($C$4:$Q$6,1613,1)
P54P54=XCOUNT($C$4:$Q$6,1613,,1)
D56D56=XCOUNT($C$4:$Q$6,169,,,,1)
D57D57=XCOUNT($C$4:$Q$6,169,1,,,1)
D58D58=XCOUNT($C$4:$Q$6,169,,1,,1)
G56G56=XCOUNT($C$4:$Q$6,1610,,,,1)
G57G57=XCOUNT($C$4:$Q$6,1610,1,,,1)
G58G58=XCOUNT($C$4:$Q$6,1610,,1,,1)
J56J56=XCOUNT($C$4:$Q$6,1611,,,,1)
J57J57=XCOUNT($C$4:$Q$6,1611,1,,,1)
J58J58=XCOUNT($C$4:$Q$6,1611,,1,,1)
M56M56=XCOUNT($C$4:$Q$6,1612,,,,1)
M57M57=XCOUNT($C$4:$Q$6,1612,1,,,1)
M58M58=XCOUNT($C$4:$Q$6,1612,,1,,1)
P56P56=XCOUNT($C$4:$Q$6,1613,,,,1)
P57P57=XCOUNT($C$4:$Q$6,1613,1,,,1)
P58P58=XCOUNT($C$4:$Q$6,1613,,1,,1)
D62D62=XCOUNT($C$4:$Q$6,1614)
D63D63=XCOUNT($C$4:$Q$6,1614,1)
D64D64=XCOUNT($C$4:$Q$6,1614,,1)
D66D66=XCOUNT($C$4:$Q$6,1614,,,,1)
D67D67=XCOUNT($C$4:$Q$6,1614,1,,,1)
D68D68=XCOUNT($C$4:$Q$6,1614,,1,,1)
 
Multiple types:
XCOUNT.xlsx
ABCDEFGHIJKLMNOPQRSTU
1
2#CALC!basic types
31dt:NUMBER
446#N/A9476book7082TRUE68 493627542dt:TEXT
57142notebook475635#DIV/0!90638613866776#CALC!3dt:BLANK
69232836321text313377a57FALSE1641644dt:LOGICAL
716dt:ERROR
8multiple types
9advanced types
10count type = {1,2}count type = {1,3}count type = {1,42}count type = {1,16}count type = {1,31}1dt:NUMBER
11allallallallall2dt:TEXT
12cells3845cells3645cells3545cells3745cells354531dt:BLANK_REAL
13rows33rows33rows33rows33rows3332dt:BLANK_FORMULA
14columns1515columns1515columns1515columns1515columns151541dt:LOGICAL_TRUE
15excludingexcludingexcludingexcludingexcluding42dt:LOGICAL_FALSE
16cells7cells9cells10cells8cells10160dt:ERROR_EXTERNAL!
17rows0rows0rows0rows0rows0161dt:ERROR_NULL!
18columns0columns0columns0columns0columns0162dt:ERROR_DIV/0!
19163dt:ERROR_VALUE!
20count type = {1,32}count type = {1,41}count type = {1,42}count type = {1,162}count type = {2,3}164dt:ERROR_REF!
21allallallallall165dt:ERROR_NAME?
22cells3545cells3545cells3545cells3545cells645166dt:ERROR_NUM!
23rows33rows33rows33rows33rows33167dt:ERROR_N/A!
24columns1515columns1515columns1515columns1515columns515168dt:ERROR_GETTING_DATA!
25excludingexcludingexcludingexcludingexcluding169dt:ERROR_SPILL!
26cells10cells10cells10cells10cells391610dt:ERROR_CONNECT!
27rows0rows0rows0rows0rows01611dt:ERROR_BLOCKED!
28columns0columns0columns0columns0columns101612dt:ERROR_UNKNOWN!
291613dt:ERROR_FIELD!
30count type = {2,4}count type = {2,16}count type = {2,31}count type = {2,32}count type = {2,41}1614dt:ERROR_CALC!
31allallallallall
32cells645cells745cells545cells545cells545
33rows33rows33rows33rows33rows33
34columns615columns715columns515columns415columns515
35excludingexcludingexcludingexcludingexcluding
36cells39cells38cells40cells40cells40
37rows0rows0rows0rows0rows0
38columns9columns8columns10columns11columns10
39
40count type = {2,42}count type = {2,167}count type = {3,4}count type = {3,31}count type = {3,32}
41allallallallall
42cells545cells545cells445cells245cells245
43rows33rows33rows23rows13rows13
44columns515columns515columns415columns215columns215
45excludingexcludingexcludingexcludingexcluding
46cells40cells40cells41cells43cells43
47rows0rows0rows1rows2rows2
48columns10columns10columns11columns13columns13
49
50count type = {3,41}count type = {3,42}count type = {3,167}count type = {4,16}count type = {4,31}
51allallallallall
52cells345cells345cells345cells545cells345
53rows13rows23rows13rows33rows23
54columns315columns315columns315columns515columns315
55excludingexcludingexcludingexcludingexcluding
56cells42cells42cells42cells40cells42
57rows2rows1rows2rows0rows1
58columns12columns12columns12columns10columns12
59
60count type = {4,32}count type = {4,41}count type = {4,42}count type = {4,1614}count type = {16,31}
61allallallallall
62cells345cells245cells245cells345cells445
63rows23rows23rows23rows33rows23
64columns315columns215columns215columns315columns415
65excludingexcludingexcludingexcludingexcluding
66cells42cells43cells43cells42cells41
67rows1rows1rows1rows0rows1
68columns12columns13columns13columns12columns11
69
70count type = {16,32}count type = {16,41}count type = {16,42}count type = {16,162}count type = {31,32}
71allallallallall
72cells445cells445cells445cells345cells245
73rows23rows23rows33rows23rows13
74columns415columns415columns415columns315columns215
75excludingexcludingexcludingexcludingexcluding
76cells41cells41cells41cells42cells43
77rows1rows1rows0rows1rows2
78columns11columns11columns11columns12columns13
79
80
multiple
Cell Formulas
RangeFormula
C2C2=LAMBDA(reference,[types],[rows],[columns],[match_criteria],[total_excluding],LET(y,PLM(PO0(types),1),r,PLSL(rows),c,PLSL(columns),e,PLSL(total_excluding),m,IFERROR(match_criteria,0),d,IFS(AND(c=0,r=0),0,AND(c=0,r=1),1,AND(c=1,r=0),2),h,ISXTYPE(reference,FILTER(y,y>0),m,1),w,ROWS(reference)*COLUMNS(reference),i,IF(SUM(T1F0(MAP(y,LAMBDA(a,NOT(ISERROR(MATCH(a,{0},0))))))),SWITCH(d,0,w,1,ROWS(reference),2,COLUMNS(reference)),SWITCH(d,0,SUM(h),1,SUM(IF(BYROW(h,LAMBDA(a,SUM(a))),1,0)),2,SUM(IF(BYCOL(h,LAMBDA(a,SUM(a))),1,0)))),SWITCH(d,0,LET(l,w,IF(e,l-i,i)),1,LET(m,ROWS(reference),IF(e,m-i,i)),2,LET(n,COLUMNS(reference),IF(e,n-i,i)))))
D4D4=NA()
L4L4=IF(1,"")
I5I5=1/0
Q5Q5=LAMBDA("")
D12D12=XCOUNT($C$4:$Q$6,{1,2})
E12:E14,Q72:Q74,N72:N74,K72:K74,H72:H74,E72:E74,Q62:Q64,N62:N64,K62:K64,H62:H64,E62:E64,Q52:Q54,N52:N54,K52:K54,H52:H54,E52:E54,Q42:Q44,N42:N44,K42:K44,H42:H44,E42:E44,Q32:Q34,N32:N34,K32:K34,H32:H34,E32:E34,Q22:Q24,N22:N24,K22:K24,H22:H24,E22:E24,Q12:Q14E12=D12+D16
D13D13=XCOUNT($C$4:$Q$6,{1,2},1)
D14D14=XCOUNT($C$4:$Q$6,{1,2},,1)
G12G12=XCOUNT($C$4:$Q$6,{1,3})
G13G13=XCOUNT($C$4:$Q$6,{1,3},1)
G14G14=XCOUNT($C$4:$Q$6,{1,3},,1)
J12,J22J12=XCOUNT($C$4:$Q$6,{1,42})
J13,J23J13=XCOUNT($C$4:$Q$6,{1,42},1)
J14,J24J14=XCOUNT($C$4:$Q$6,{1,42},,1)
M12M12=XCOUNT($C$4:$Q$6,{1,16})
M13M13=XCOUNT($C$4:$Q$6,{1,16},1)
M14M14=XCOUNT($C$4:$Q$6,{1,16},,1)
P12P12=XCOUNT($C$4:$Q$6,{1,31})
P13P13=XCOUNT($C$4:$Q$6,{1,31},1)
P14P14=XCOUNT($C$4:$Q$6,{1,31},,1)
D16D16=XCOUNT($C$4:$Q$6,{1,2},,,,1)
D17D17=XCOUNT($C$4:$Q$6,{1,2},1,,,1)
D18D18=XCOUNT($C$4:$Q$6,{1,2},,1,,1)
G16G16=XCOUNT($C$4:$Q$6,{1,3},,,,1)
G17G17=XCOUNT($C$4:$Q$6,{1,3},1,,,1)
G18G18=XCOUNT($C$4:$Q$6,{1,3},,1,,1)
J16,J26J16=XCOUNT($C$4:$Q$6,{1,42},,,,1)
J17,J27J17=XCOUNT($C$4:$Q$6,{1,42},1,,,1)
J18,J28J18=XCOUNT($C$4:$Q$6,{1,42},,1,,1)
M16M16=XCOUNT($C$4:$Q$6,{1,16},,,,1)
M17M17=XCOUNT($C$4:$Q$6,{1,16},1,,,1)
M18M18=XCOUNT($C$4:$Q$6,{1,16},,1,,1)
P16P16=XCOUNT($C$4:$Q$6,{1,31},,,,1)
P17P17=XCOUNT($C$4:$Q$6,{1,31},1,,,1)
P18P18=XCOUNT($C$4:$Q$6,{1,31},,1,,1)
D22D22=XCOUNT($C$4:$Q$6,{1,32})
D23D23=XCOUNT($C$4:$Q$6,{1,32},1)
D24D24=XCOUNT($C$4:$Q$6,{1,32},,1)
G22G22=XCOUNT($C$4:$Q$6,{1,41})
G23G23=XCOUNT($C$4:$Q$6,{1,41},1)
G24G24=XCOUNT($C$4:$Q$6,{1,41},,1)
M22M22=XCOUNT($C$4:$Q$6,{1,162})
M23M23=XCOUNT($C$4:$Q$6,{1,162},1)
M24M24=XCOUNT($C$4:$Q$6,{1,162},,1)
P22P22=XCOUNT($C$4:$Q$6,{2,3})
P23P23=XCOUNT($C$4:$Q$6,{2,3},1)
P24P24=XCOUNT($C$4:$Q$6,{2,3},,1)
D26D26=XCOUNT($C$4:$Q$6,{1,32},,,,1)
D27D27=XCOUNT($C$4:$Q$6,{1,32},1,,,1)
D28D28=XCOUNT($C$4:$Q$6,{1,32},,1,,1)
G26G26=XCOUNT($C$4:$Q$6,{1,41},,,,1)
G27G27=XCOUNT($C$4:$Q$6,{1,41},1,,,1)
G28G28=XCOUNT($C$4:$Q$6,{1,41},,1,,1)
M26M26=XCOUNT($C$4:$Q$6,{1,162},,,,1)
M27M27=XCOUNT($C$4:$Q$6,{1,162},1,,,1)
M28M28=XCOUNT($C$4:$Q$6,{1,162},,1,,1)
P26P26=XCOUNT($C$4:$Q$6,{2,3},,,,1)
P27P27=XCOUNT($C$4:$Q$6,{2,3},1,,,1)
P28P28=XCOUNT($C$4:$Q$6,{2,3},,1,,1)
D32D32=XCOUNT($C$4:$Q$6,{2,4})
D33D33=XCOUNT($C$4:$Q$6,{2,4},1)
D34D34=XCOUNT($C$4:$Q$6,{2,4},,1)
G32G32=XCOUNT($C$4:$Q$6,{2,16})
G33G33=XCOUNT($C$4:$Q$6,{2,16},1)
G34G34=XCOUNT($C$4:$Q$6,{2,16},,1)
J32J32=XCOUNT($C$4:$Q$6,{2,31})
J33J33=XCOUNT($C$4:$Q$6,{2,31},1)
J34J34=XCOUNT($C$4:$Q$6,{2,31},,1)
M32M32=XCOUNT($C$4:$Q$6,{2,32})
M33M33=XCOUNT($C$4:$Q$6,{2,32},1)
M34M34=XCOUNT($C$4:$Q$6,{2,32},,1)
P32P32=XCOUNT($C$4:$Q$6,{2,41})
P33P33=XCOUNT($C$4:$Q$6,{2,41},1)
P34P34=XCOUNT($C$4:$Q$6,{2,41},,1)
D36D36=XCOUNT($C$4:$Q$6,{2,4},,,,1)
D37D37=XCOUNT($C$4:$Q$6,{2,4},1,,,1)
D38D38=XCOUNT($C$4:$Q$6,{2,4},,1,,1)
G36G36=XCOUNT($C$4:$Q$6,{2,16},,,,1)
G37G37=XCOUNT($C$4:$Q$6,{2,16},1,,,1)
G38G38=XCOUNT($C$4:$Q$6,{2,16},,1,,1)
J36J36=XCOUNT($C$4:$Q$6,{2,31},,,,1)
J37J37=XCOUNT($C$4:$Q$6,{2,31},1,,,1)
J38J38=XCOUNT($C$4:$Q$6,{2,31},,1,,1)
M36M36=XCOUNT($C$4:$Q$6,{2,32},,,,1)
M37M37=XCOUNT($C$4:$Q$6,{2,32},1,,,1)
M38M38=XCOUNT($C$4:$Q$6,{2,32},,1,,1)
P36P36=XCOUNT($C$4:$Q$6,{2,41},,,,1)
P37P37=XCOUNT($C$4:$Q$6,{2,41},1,,,1)
P38P38=XCOUNT($C$4:$Q$6,{2,41},,1,,1)
D42D42=XCOUNT($C$4:$Q$6,{2,42})
D43D43=XCOUNT($C$4:$Q$6,{2,42},1)
D44D44=XCOUNT($C$4:$Q$6,{2,42},,1)
G42G42=XCOUNT($C$4:$Q$6,{2,167})
G43G43=XCOUNT($C$4:$Q$6,{2,167},1)
G44G44=XCOUNT($C$4:$Q$6,{2,167},,1)
J42J42=XCOUNT($C$4:$Q$6,{3,4})
J43J43=XCOUNT($C$4:$Q$6,{3,4},1)
J44J44=XCOUNT($C$4:$Q$6,{3,4},,1)
M42M42=XCOUNT($C$4:$Q$6,{3,31})
M43M43=XCOUNT($C$4:$Q$6,{3,31},1)
M44M44=XCOUNT($C$4:$Q$6,{3,31},,1)
P42P42=XCOUNT($C$4:$Q$6,{3,32})
P43P43=XCOUNT($C$4:$Q$6,{3,32},1)
P44P44=XCOUNT($C$4:$Q$6,{3,32},,1)
D46D46=XCOUNT($C$4:$Q$6,{2,42},,,,1)
D47D47=XCOUNT($C$4:$Q$6,{2,42},1,,,1)
D48D48=XCOUNT($C$4:$Q$6,{2,42},,1,,1)
G46G46=XCOUNT($C$4:$Q$6,{2,167},,,,1)
G47G47=XCOUNT($C$4:$Q$6,{2,167},1,,,1)
G48G48=XCOUNT($C$4:$Q$6,{2,167},,1,,1)
J46J46=XCOUNT($C$4:$Q$6,{3,4},,,,1)
J47J47=XCOUNT($C$4:$Q$6,{3,4},1,,,1)
J48J48=XCOUNT($C$4:$Q$6,{3,4},,1,,1)
M46M46=XCOUNT($C$4:$Q$6,{3,31},,,,1)
M47M47=XCOUNT($C$4:$Q$6,{3,31},1,,,1)
M48M48=XCOUNT($C$4:$Q$6,{3,31},,1,,1)
P46P46=XCOUNT($C$4:$Q$6,{3,32},,,,1)
P47P47=XCOUNT($C$4:$Q$6,{3,32},1,,,1)
P48P48=XCOUNT($C$4:$Q$6,{3,32},,1,,1)
D52D52=XCOUNT($C$4:$Q$6,{3,41})
D53D53=XCOUNT($C$4:$Q$6,{3,41},1)
D54D54=XCOUNT($C$4:$Q$6,{3,41},,1)
G52G52=XCOUNT($C$4:$Q$6,{3,42})
G53G53=XCOUNT($C$4:$Q$6,{3,42},1)
G54G54=XCOUNT($C$4:$Q$6,{3,42},,1)
J52J52=XCOUNT($C$4:$Q$6,{3,167})
J53J53=XCOUNT($C$4:$Q$6,{3,167},1)
J54J54=XCOUNT($C$4:$Q$6,{3,167},,1)
M52M52=XCOUNT($C$4:$Q$6,{4,16})
M53M53=XCOUNT($C$4:$Q$6,{4,16},1)
M54M54=XCOUNT($C$4:$Q$6,{4,16},,1)
P52P52=XCOUNT($C$4:$Q$6,{4,31})
P53P53=XCOUNT($C$4:$Q$6,{4,31},1)
P54P54=XCOUNT($C$4:$Q$6,{4,31},,1)
D56D56=XCOUNT($C$4:$Q$6,{3,41},,,,1)
D57D57=XCOUNT($C$4:$Q$6,{3,41},1,,,1)
D58D58=XCOUNT($C$4:$Q$6,{3,41},,1,,1)
G56G56=XCOUNT($C$4:$Q$6,{3,42},,,,1)
G57G57=XCOUNT($C$4:$Q$6,{3,42},1,,,1)
G58G58=XCOUNT($C$4:$Q$6,{3,42},,1,,1)
J56J56=XCOUNT($C$4:$Q$6,{3,167},,,,1)
J57J57=XCOUNT($C$4:$Q$6,{3,167},1,,,1)
J58J58=XCOUNT($C$4:$Q$6,{3,167},,1,,1)
M56M56=XCOUNT($C$4:$Q$6,{4,16},,,,1)
M57M57=XCOUNT($C$4:$Q$6,{4,16},1,,,1)
M58M58=XCOUNT($C$4:$Q$6,{4,16},,1,,1)
P56P56=XCOUNT($C$4:$Q$6,{4,31},,,,1)
P57P57=XCOUNT($C$4:$Q$6,{4,31},1,,,1)
P58P58=XCOUNT($C$4:$Q$6,{4,31},,1,,1)
D62D62=XCOUNT($C$4:$Q$6,{4,32})
D63D63=XCOUNT($C$4:$Q$6,{4,32},1)
D64D64=XCOUNT($C$4:$Q$6,{4,32},,1)
G62G62=XCOUNT($C$4:$Q$6,{4,41})
G63G63=XCOUNT($C$4:$Q$6,{4,41},1)
G64G64=XCOUNT($C$4:$Q$6,{4,41},,1)
J62J62=XCOUNT($C$4:$Q$6,{4,42})
J63J63=XCOUNT($C$4:$Q$6,{4,42},1)
J64J64=XCOUNT($C$4:$Q$6,{4,42},,1)
M62M62=XCOUNT($C$4:$Q$6,{4,1614})
M63M63=XCOUNT($C$4:$Q$6,{4,1614},1)
M64M64=XCOUNT($C$4:$Q$6,{4,1614},,1)
P62P62=XCOUNT($C$4:$Q$6,{16,31})
P63P63=XCOUNT($C$4:$Q$6,{16,31},1)
P64P64=XCOUNT($C$4:$Q$6,{16,31},,1)
D66D66=XCOUNT($C$4:$Q$6,{4,32},,,,1)
D67D67=XCOUNT($C$4:$Q$6,{4,32},1,,,1)
D68D68=XCOUNT($C$4:$Q$6,{4,32},,1,,1)
G66G66=XCOUNT($C$4:$Q$6,{4,41},,,,1)
G67G67=XCOUNT($C$4:$Q$6,{4,41},1,,,1)
G68G68=XCOUNT($C$4:$Q$6,{4,41},,1,,1)
J66J66=XCOUNT($C$4:$Q$6,{4,42},,,,1)
J67J67=XCOUNT($C$4:$Q$6,{4,42},1,,,1)
J68J68=XCOUNT($C$4:$Q$6,{4,42},,1,,1)
M66M66=XCOUNT($C$4:$Q$6,{4,1614},,,,1)
M67M67=XCOUNT($C$4:$Q$6,{4,1614},1,,,1)
M68M68=XCOUNT($C$4:$Q$6,{4,1614},,1,,1)
P66P66=XCOUNT($C$4:$Q$6,{16,31},,,,1)
P67P67=XCOUNT($C$4:$Q$6,{16,31},1,,,1)
P68P68=XCOUNT($C$4:$Q$6,{16,31},,1,,1)
D72D72=XCOUNT($C$4:$Q$6,{16,32})
D73D73=XCOUNT($C$4:$Q$6,{16,32},1)
D74D74=XCOUNT($C$4:$Q$6,{16,32},,1)
G72G72=XCOUNT($C$4:$Q$6,{16,41})
G73G73=XCOUNT($C$4:$Q$6,{16,41},1)
G74G74=XCOUNT($C$4:$Q$6,{16,41},,1)
J72J72=XCOUNT($C$4:$Q$6,{16,42})
J73J73=XCOUNT($C$4:$Q$6,{16,42},1)
J74J74=XCOUNT($C$4:$Q$6,{16,42},,1)
M72M72=XCOUNT($C$4:$Q$6,{16,162})
M73M73=XCOUNT($C$4:$Q$6,{16,162},1)
M74M74=XCOUNT($C$4:$Q$6,{16,162},,1)
P72P72=XCOUNT($C$4:$Q$6,{31,32})
P73P73=XCOUNT($C$4:$Q$6,{31,32},1)
P74P74=XCOUNT($C$4:$Q$6,{31,32},,1)
D76D76=XCOUNT($C$4:$Q$6,{16,32},,,,1)
D77D77=XCOUNT($C$4:$Q$6,{16,32},1,,,1)
D78D78=XCOUNT($C$4:$Q$6,{16,32},,1,,1)
G76G76=XCOUNT($C$4:$Q$6,{16,41},,,,1)
G77G77=XCOUNT($C$4:$Q$6,{16,41},1,,,1)
G78G78=XCOUNT($C$4:$Q$6,{16,41},,1,,1)
J76J76=XCOUNT($C$4:$Q$6,{16,42},,,,1)
J77J77=XCOUNT($C$4:$Q$6,{16,42},1,,,1)
J78J78=XCOUNT($C$4:$Q$6,{16,42},,1,,1)
M76M76=XCOUNT($C$4:$Q$6,{16,162},,,,1)
M77M77=XCOUNT($C$4:$Q$6,{16,162},1,,,1)
M78M78=XCOUNT($C$4:$Q$6,{16,162},,1,,1)
P76P76=XCOUNT($C$4:$Q$6,{31,32},,,,1)
P77P77=XCOUNT($C$4:$Q$6,{31,32},1,,,1)
P78P78=XCOUNT($C$4:$Q$6,{31,32},,1,,1)
 

Forum statistics

Threads
1,216,503
Messages
6,131,022
Members
449,616
Latest member
PsychoCube

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