TEXTCOUNT
counts occurrences of substring in text · a deepcalc original · no excel equivalent · no sheets equivalent
signature
TEXTCOUNT(text, substring, [case_sensitive])
returns: text
| argument | required |
|---|---|
| text | required |
| substring | required |
| case_sensitive | optional |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=TEXTCOUNT("hello hello world", "hello") 2 | A | |
|---|---|
| 1 | 10 |
fx
=TEXTCOUNT(A1, "test", FALSE) 0