Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I am trying to manipulate some data strings and I want to count how many times the characters '(' and ')' occur in each of the data strings on my spreadsheet. I have tried some simple options but am unable to achieve the result I want. I would be very grateful if anyone is able to provide me with a method of doing this. Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
To count from a data string which is in cell A1 use the below
=LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(A1,"(",),")",)) To count all in a spreadsheet use the Find Dialog box and enter "(" and hit FindAll which will list all the occurences and give a count at the bottom. Make sure you select the option appropriately to avoid looking at formulas....(If thats is your requirement) -- Jacob (MVP - Excel) "fabio" wrote: Hi I am trying to manipulate some data strings and I want to count how many times the characters '(' and ')' occur in each of the data strings on my spreadsheet. I have tried some simple options but am unable to achieve the result I want. I would be very grateful if anyone is able to provide me with a method of doing this. Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you Jacob. That worked fine as I did want it on a cell by cell basis.
"Jacob Skaria" wrote: To count from a data string which is in cell A1 use the below =LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(A1,"(",),")",)) To count all in a spreadsheet use the Find Dialog box and enter "(" and hit FindAll which will list all the occurences and give a count at the bottom. Make sure you select the option appropriately to avoid looking at formulas....(If thats is your requirement) -- Jacob (MVP - Excel) "fabio" wrote: Hi I am trying to manipulate some data strings and I want to count how many times the characters '(' and ')' occur in each of the data strings on my spreadsheet. I have tried some simple options but am unable to achieve the result I want. I would be very grateful if anyone is able to provide me with a method of doing this. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cut the last 20 characters out of a text string | Excel Discussion (Misc queries) | |||
Extract characters from Right of string | Excel Worksheet Functions | |||
Insert Leading Characters If String Is Only 7 Characters | Excel Discussion (Misc queries) | |||
counting the number of instances of a string within another string | Excel Worksheet Functions | |||
get characters from a string in excel | Excel Worksheet Functions |