You can use the COUNTIF formula to count specific text in a given range of cells. To search and count multiple texts, you can use the COUNTIFS formula.