0% found this document useful (0 votes)
186 views4 pages

On Countif, Countifs, Sumif, Sumifs

The COUNTIF function counts the number of cells that meet criteria specified by the user. It can count cells containing numbers, text, logical values, or that meet certain conditions. Wildcard characters like ? and * can be used in criteria to match partial text. Criteria can be a number, cell reference, formula, or text and allow for counting cells based on comparisons, beginning text, or containing a certain value.

Uploaded by

Ranjeet Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
186 views4 pages

On Countif, Countifs, Sumif, Sumifs

The COUNTIF function counts the number of cells that meet criteria specified by the user. It can count cells containing numbers, text, logical values, or that meet certain conditions. Wildcard characters like ? and * can be used in criteria to match partial text. Criteria can be a number, cell reference, formula, or text and allow for counting cells based on comparisons, beginning text, or containing a certain value.

Uploaded by

Ranjeet Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

1

range Required
• One or more cells to count, including numbers or names, arrays, or
references that contain numbers. Blank and text values are ignored.

criteria Required
• A number, expression, cell reference, or text string that defines which
cells will be counted.
– For example, criteria can be expressed as 32, ">32", B4, "apples", or "32".

Wildcard characters, the question mark (?) and the asterisk (*),
can be used in criteria
• A question mark matches any single character, and
• An asterisk matches any sequence of characters
– If needed to find an actual question mark or asterisk, type a tilde (~) before
the character
• Criteria are case insensitive;
– for example, the string "apples" and the string "APPLES" will match the
same cells

2
=COUNTIF(A1:C12,"?????")
• Counts the number of cells containing exactly five characters of text.

=COUNTIF(A1:C12,100)
• Counts the number of cells containing the value 100.

=COUNTIF(A1:C12,"L*")
• Counts the number of cells containing text entries that begin with the
letter L

=COUNTIF(A1:C12,">0")
• Counts the number of cells containing numeric values greater than zero

=COUNTIF(A1:C12,"<"&B2)
• Counts the number of cells containing numeric values less than the
numeric value in cell B2.
• The comparison operator (<) must be in quotation marks, but the cell
reference can't be.
• The concatenation operator (&) is used to join them
3

=COUNTIF(A1:C12,">="&MIN(A1:C12))
• Counts the number of cells containing a numeric value
greater than or equal to the minimum value in the range

=COUNTIF(A1:C12,TRUE)
• Counts the number of cells containing the logical value
TRUE (This is not the same as the text "TRUE")

=COUNTIF(A1:C12,"TRUE")
• Counts the number of cells containing the word "TRUE" as
a text entry

=COUNTIF(A1:C12,"<1")+COUNTIF(A1:C12,">10")
• Counts the number of cells containing a numeric value less
than 1 and the number of cells containing a numeric value
4
greater than 10, and then adds the two counts
Using the following as/ in criteria
• Text
=COUNTIF(C3:C13,"A")
• Numeric value
=COUNTIF(B3:B13,167)
• Boolean value
=COUNTIF(I3:I13,TRUE)
• Cell reference, containing text or a numeric or Boolean
value
=COUNTIF(B3:B13,F18)
• Relational operator (>, <, >=, <=, <>)
=COUNTIF(B3:B13,”>100”)
• BOTH Relational operator and a Cell Reference
=COUNTIF(B3:B13,”>” &F18)
• Wildcard character (? or *)
=COUNTIF(H3:H13,"a*")
5

6
7

You might also like