Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=(LEN(A2)-LEN(SUBSTITUTE(LOWER(A2),LOWER(B2),"")))/LEN(B2)Computed by a real spreadsheet engine on the sample data below.
| Text | Word | Count |
| the cat sat on the mat | the | |
| apple banana apple | apple | |
| hello world | world | |
| one one one one | one |
=(LEN(A2)-LEN(SUBSTITUTE(LOWER(A2),LOWER(B2),"")))/LEN(B2)→2
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Yes. SUBSTITUTE replaces all occurrences including partial matches. To count whole-word matches only, pad the search word with spaces or use more advanced pattern matching.
Use COUNTIF for whole-cell matches, or sum the per-cell formula over a range: =SUMPRODUCT((LEN(A2:A6)-LEN(SUBSTITUTE(LOWER(A2:A6),LOWER(B2),"")))/LEN(B2)).
Split a full name or any delimited text into separate columns. Google Sheets uses SPLIT; Excel uses TEXTSPLIT — here is each.
How-toClean leading, trailing, and double spaces with TRIM — the usual fix for lookups that fail on values that look identical.
How-toTurn numbers stored as text into real numbers with VALUE or by multiplying by 1 — the fix for sums that ignore values.
How-toPull everything after the @ from an email using FIND and MID. Works the same in Excel and Google Sheets.
How-toGet the first name from a full name with LEFT and FIND, splitting on the first space. Works in Excel and Google Sheets.
How-toPad numbers to a fixed width with leading zeros using TEXT, or a custom number format. Works in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: