Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count within a cell
Is there any way of performing a count on an individual cell to identify the number of occurances of a specified character within that cell? e.g. Cell contains AAA_BBB_CCC_DDD I would like the number of underscores (3) to be returned and this value placed in a new cell? Thanks -- presuming ed ------------------------------------------------------------------------ presuming ed's Profile: http://www.excelforum.com/member.php...o&userid=31526 View this thread: http://www.excelforum.com/showthread...hreadid=573700 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count within a cell
A1=AAA_BBB_CCC_DDD then in B1:
=LEN(A1)-LEN(SUBSTITUTE(A1,"_","")) Replace "_" with required character HTH "presuming ed" wrote: Is there any way of performing a count on an individual cell to identify the number of occurances of a specified character within that cell? e.g. Cell contains AAA_BBB_CCC_DDD I would like the number of underscores (3) to be returned and this value placed in a new cell? Thanks -- presuming ed ------------------------------------------------------------------------ presuming ed's Profile: http://www.excelforum.com/member.php...o&userid=31526 View this thread: http://www.excelforum.com/showthread...hreadid=573700 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count within a cell
=LEN(A1)-LEN(SUBSTITUTE(A1,"_","")
-- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "presuming ed" wrote in message ... Is there any way of performing a count on an individual cell to identify the number of occurances of a specified character within that cell? e.g. Cell contains AAA_BBB_CCC_DDD I would like the number of underscores (3) to be returned and this value placed in a new cell? Thanks -- presuming ed ------------------------------------------------------------------------ presuming ed's Profile: http://www.excelforum.com/member.php...o&userid=31526 View this thread: http://www.excelforum.com/showthread...hreadid=573700 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count within a cell
=LEN(A1)-LEN(SUBSTITUTE(A1,"_",))
"presuming ed" wrote: Is there any way of performing a count on an individual cell to identify the number of occurances of a specified character within that cell? e.g. Cell contains AAA_BBB_CCC_DDD I would like the number of underscores (3) to be returned and this value placed in a new cell? Thanks -- presuming ed ------------------------------------------------------------------------ presuming ed's Profile: http://www.excelforum.com/member.php...o&userid=31526 View this thread: http://www.excelforum.com/showthread...hreadid=573700 |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Count within a cell
Thanks, works perfectly! -- presuming ed ------------------------------------------------------------------------ presuming ed's Profile: http://www.excelforum.com/member.php...o&userid=31526 View this thread: http://www.excelforum.com/showthread...hreadid=573700 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Count # of A's in a Cell | Excel Worksheet Functions | |||
Cell Count | New Users to Excel | |||
Count on cell for each time it is changed | Excel Discussion (Misc queries) | |||
cell color index comparison | New Users to Excel | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions |