SUBSTITUTE
(1)
COUNTIF
(1)
SUM
(1)
LEN
(1)

Count occurance of multiple text criteria

Asked By Sam.D
09-Feb-10 06:47 AM
Im using the formula

=SUM(LEN(B2:B955)-LEN(SUBSTITUTE(B2:B955,"Pension","")))/LEN("Pension")

This works fine to count the number of occurances for the word Pension but
Im stuck when trying to count using multiple criteria eg the the Pension and
the word Scheme.

Any help is greatly appreciated.

Sam.D

Try=SUM(COUNTIF(B2:B955,{"*Pension*","*Scheme*"}))OR for whole cell

Jacob Skaria replied to Sam.D
09-Feb-10 07:06 AM
Try

=SUM(COUNTIF(B2:B955,{"*Pension*","*Scheme*"}))

OR for whole cell match
=SUM(COUNTIF(B2:B955,{"Pension","Scheme"}))


--
Jacob

Thanks, works great, huge help.CheersSam.D"Jacob Skaria" wrote:

Sam.D replied to Jacob Skaria
09-Feb-10 11:34 AM
Thanks, works great, huge help.

Cheers

Sam.D
Post Question To EggHeadCafe