SOLVED

is there Formula to find the number of values inside the cell?

Copper Contributor

hey everybody
can someone help me with Formula or function to find the number of values inside the cell

like the example below 
note\
ms excel 2016
windows 10ex.PNG

 

4 Replies
best response confirmed by AdamAli93 (Copper Contributor)
Solution

@AdamAli93 

=(LEN(A1)-LEN(SUBSTITUTE(A1,"xx","")))/2

 

thanks, it works perfectly :rose::tulip:

@AdamAli93 

I am not suggesting that you need to do this but, out of curiosity, I tried Charles Williams's Fast Excel add-in which has functions to process regular expressions.

image.png

Having extracted the strings, I simply counted them

= Rgx.MID(@cellValue, "H/\d*",0)

= COUNTA(Rgx.MID(@cellValue, "H/\d*",0))

The regular expression was set the return any string that starts with "H/" and continues with an arbitrary number of digits.

thanks, it can help me in another project :bouquet:
1 best response

Accepted Solutions
best response confirmed by AdamAli93 (Copper Contributor)
Solution

@AdamAli93 

=(LEN(A1)-LEN(SUBSTITUTE(A1,"xx","")))/2

 

View solution in original post