FormulaCraft

How to count cells that end with a value in Excel and Google Sheets

Excel & Google Sheets
=COUNTIF(A2:A6,"*ing")

Verified example

Computed by a real spreadsheet engine on the sample data below.

Activity
Running
Swimming
Cycling
Reading
Yoga

=COUNTIF(A2:A6,"*ing")4

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Select the output cell.
  2. 2Type =COUNTIF( and select your range, e.g. A2:A6.
  3. 3Enter the criterion with an asterisk before the suffix: "*ing" counts anything ending with 'ing'.
  4. 4Close the parenthesis and press Enter.
  5. 5For a dynamic suffix from D1, use: =COUNTIF(A2:A6,"*"&D1).

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

How do I count cells that end with a number?

Use =COUNTIF(A2:A6,"*0") to count cells ending in 0, for example.

Why does my formula count more than expected?

Check for trailing spaces. Use TRIM on your data or adjust the criterion to include a space, e.g. "*ing " is different from "*ing".

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: