Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Understanding Anova in Excel
  • Excel Frequency Function Example
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Managing Conditional Formatting Rules in Excel
  • Conditional Formatting Color Scales Examples in Excel

References

  • Convert text string to valid reference in Excel using Indirect function
  • Last row number in range
  • How to use Excel MATCH Function
  • Multi-criteria lookup and transpose in Excel
  • Extract data with helper column in Excel

Data Validations

  • Excel Data validation whole percentage only
  • Excel Data validation must begin with
  • Excel Data validation exists in list
  • Excel Data validation number multiple 100
  • Excel Data validation must contain specific text

How to calculate Number of Instances in Excel

by

This example describes how to count the number of instances of text (or a number) in a cell.

1. Use the LEN function to get the length of the string (25 characters, including spaces).

2. The SUBSTITUTE function replaces existing text with new text in a string. LEN(SUBSTITUTE(A1,B1,””)) equals 13 (the length of the string without the words dog). If we subtract this number from 25, we get the length of the dog instances (25-13=12).

3. Dividing this number by the length of the word dog (3), gives us the dog instances (12/3=4).

Post navigation

Previous Post:

MDETERM function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Sales Calculator in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • How to return blank in place of #DIV/0! error in Excel
  • Extract multiple matches into separate rows in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples
  • How to use IFS function in Excel

Date Time

  • Get month name from date in Excel
  • How to get same date next month or previous month in Excel
  • Roll back weekday to Friday base on a particular date in Excel
  • Count day of week between dates in Excel
  • Extract date from a date and time in Excel

Grouping

  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Categorize text with keywords in Excel
  • Calculate conditional mode with criteria in Excel
  • Group numbers at uneven intervals in Excel

General

  • How to calculate percentage of total in Excel
  • Check if multiple cells have same value with case sensitive in Excel
  • Basic error trapping example in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • How to count total columns in range in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning