Loading…
Loading…
Wildcards let a criteria match patterns instead of exact text. * stands for any number of characters, ? for exactly one character, and ~ lets you search for a real * or ?. They work in SUMIF, COUNTIF and the other "IF" functions, but only with text criteria.
Syntax
"*" any characters · "?" one character · "~*" a literal asterisk
Example: =COUNTIF(A2:A10,"*on*") counts products that contain "on" anywhere. =SUMIF(A2:A10,"T*",C2:C10) adds sales for products that start with T.
Common mistakes
Read the lesson, then try it yourself in a live spreadsheet.