Count the number of occurrences of a text string in a range in Excel/Sheets

Use 3rd formula to make the criteria non-case sensitive

ArrayFormula use "Ctrl+Shift+Enter" for all three formulas

A2:A7 = Ranges; C9 and Apple = criteria 

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.

Count the number of occurrences of a text string in a range in Excel

How to count the number of occurrences of a text string in a range in Excel?
Count the number of occurrences of a text string in a range in Excel

COUNT THE NUMBER OF OCCURRENCES OF A TEXT STRING IN A RANGE — EXCEL FORMULA AND EXAMPLE

Count the number of occurrences of a text string in a range in Google Sheets

How to count the number of occurrences of a text string in a range in Google Sheets?
Count the number of occurrences of a text string in a range in Google Sheets

COUNT THE NUMBER OF OCCURRENCES OF A TEXT STRING IN A RANGE — GOOGLE SHEETS FORMULA AND EXAMPLE

Other useful "COUNT FUNCTIONS: TEXT BASED CRITERIA" formulas in Excel and Google SheetsOthers FormulasDate and time functionsNumber based criteriaExtract functions