Find the ammount of times certain text appears within a text

Frans Scheepers

Board Regular
Joined
Apr 21, 2006
Messages
127
Good day all

I would like to know if there is a way to use a formula to identify how many times the text strings "CEL" and "DPP" appears together in the the same text string for an entire column in a spreadsheet.

Keep in mind that I do not want to use the FIND and AND function by copying them down the adjacent column and then count the TRUE values using COUNTIF because the spreadsheet will be to large in size then.

I am looking at anywhere between 500 to 15 000 entries that must be searched and counted at the end of the day and my other collueges that also use this spreadsheet will not understand the thing of copying and pasting formulas in different cells.
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,955
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
You can't use a whole column with SUMPRODUCT but this sample uses 15000 rows:

=SUMPRODUCT(--(ISNUMBER(SEARCH("CEL",A1:A15000))),--(ISNUMBER(SEARCH("DPP",A1:A15000))))
 

Watch MrExcel Video

Forum statistics

Threads
1,109,360
Messages
5,528,237
Members
409,809
Latest member
VICKRAM

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top