Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Dears
I want to count how many specific word is repeted in long string in one cell i will give you example Red , green , red , blue , ,black ,green , red, red, what i want to do is to count how many times the word red repeted starting from the right hand side till the fourth coma only not through the whole sting only till the fourth coma |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Am Sat, 23 Mar 2013 10:55:18 +0000 schrieb tamer: Red , green , red , blue , ,black ,green , red, red, what i want to do is to count how many times the word red repeted starting from the right hand side till the fourth coma only not through the whole sting only till the fourth coma your string in A1. Then try: =(LEN(RIGHT(A1,LEN(A1)-FIND("#",SUBSTITUTE(A1,",","#",4))-2))-LEN(SUBSTITUTE(RIGHT(A1,LEN(A1)-FIND("#",SUBSTITUTE(A1,",","#",4))-2),"red",)))/LEN("red") Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
![]() |
|||
|
|||
![]() Quote:
Will it always be until the fourth comma? |
#4
![]() |
|||
|
|||
![]() If it is to the fourth comma, the following will perform the search this searches the text in A1, counts the number of occurrences of the text in B1, up until the fourth comma =(LEN(LEFT(A1,FIND(",",A1, FIND(",", A1,FIND(",", A1, FIND(",", A1, 1)+1) +1)+1)))-LEN(SUBSTITUTE(LOWER(LEFT(A1,FIND(",",A1, FIND(",", A1,FIND(",", A1, FIND(",", A1, 1)+1) +1)+1))),LOWER(B1),"")))/LEN(B1) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
String-in-Cell .... too long??? Word Wrap not working...PLEASE HE | Excel Discussion (Misc queries) | |||
Importing Long String - String Manipulation (INVRPT) (EDI EANCOM 96a) | Excel Programming | |||
Importing Long String - String Manipulation (EDI EANCOM 96a) | Excel Programming | |||
From String to Long | Excel Programming | |||
Get long value for a date string | Excel Programming |