Forum Discussion

ThePazMan's avatar
ThePazMan
Copper Contributor
Jul 10, 2023
Solved

Formula to determine number of times a character exists in a cell: "_" in cell = abc_def_ghi_xyz

Formula to determine number of times a character exists in a cell:  I want to find the number of times "_" exists in cell = abc_def_ghi_xyz
  • HansVogelaar's avatar
    Jul 10, 2023

    ThePazMan 

    Let's say the cell is A1. The number of "_" in the cell value is:

     

    =LEN(A1)-LEN(SUBSTITUTE(A1,"_",""))

Resources