I want to find an equation or way to do the followwing in Excel
here is the example
I have a string in one cell and i want for example to count the repetation of word red starting from the right hand side and till the fourth coma (,) only not through over the string
the aim of this is not to count the word i am searching about in the full string i wan to count it in only part of it
here is the example
Blue , red , green , green , red , red , yellow ,
can you help me in that
Quote:
Originally Posted by Claus Busch
Hi,
Am Sat, 20 Oct 2012 07:11:50 +0000 schrieb tamer:
i need to count how many times a word is in string in the same cell
your string in A1, the word you search in B1:
=SUM((LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),LOWER(B1),"")))/LEN(B1))
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
|