Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=(Count(Search("(C)",$Y2)))+(Count(Search("(S)",$Y 2)))
Col Y (row 2) C Type 00 Type S Type sab12334(C) 0056223(00) 1 1 0 sab22233(C) The above formula is what I'm using to extract certain equipment types from a single cell. The problem is that it's only counting 1 time. For example, cell Y2 above has 3 equipment numbers, 2 of which has the (C) at the end, but I can't get a formula to count the C Type more than once (there can be upto 3 of same type in a cell). Help! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
For type (C) use =(LEN(A1)-LEN(SUBSTITUTE(A1,"(C)","")))/3 for type (00) use =(LEN(A1)-LEN(SUBSTITUTE(A1,"(00)","")))/4 Mike "tcbooks" wrote: =(Count(Search("(C)",$Y2)))+(Count(Search("(S)",$Y 2))) Col Y (row 2) C Type 00 Type S Type sab12334(C) 0056223(00) 1 1 0 sab22233(C) The above formula is what I'm using to extract certain equipment types from a single cell. The problem is that it's only counting 1 time. For example, cell Y2 above has 3 equipment numbers, 2 of which has the (C) at the end, but I can't get a formula to count the C Type more than once (there can be upto 3 of same type in a cell). Help! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use this general format...
=(LEN(C2)-LEN(SUBSTITUTE(C2,<YourQuotedText,"")))/<Length where <YourQuotedText means put the text you are trying to find in quotes... for example, "(C)"... and where <Length means put the number of characters in the quoted text (3 for the given example). So, to count how many (C) are in your cell, use this... =(LEN(C2)-LEN(SUBSTITUTE(C2,"(C)","")))/3 -- Rick (MVP - Excel) "tcbooks" wrote in message ... =(Count(Search("(C)",$Y2)))+(Count(Search("(S)",$Y 2))) Col Y (row 2) C Type 00 Type S Type sab12334(C) 0056223(00) 1 1 0 sab22233(C) The above formula is what I'm using to extract certain equipment types from a single cell. The problem is that it's only counting 1 time. For example, cell Y2 above has 3 equipment numbers, 2 of which has the (C) at the end, but I can't get a formula to count the C Type more than once (there can be upto 3 of same type in a cell). Help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using SEARCH in a single cell to COUNT multiple entries of sam | Excel Programming | |||
Using SEARCH in a single cell to COUNT multiple entries of same te | Excel Programming | |||
How to sort ascending or descending in multiple entries within one single cell? | Excel Discussion (Misc queries) | |||
Count single Text in cells with multiple text entries | Excel Discussion (Misc queries) | |||
Search Column - Find Multiple Entries - Sum Then Delete to Single Entry | Excel Programming |