how to count how many numbers is in cell with value like that:
12-3-4-11-5-9-3
I am looking for result =6 because in that cell is seven numbers separated by dash, but number 3 is listed twice.
Yes thanks, numbers are separated by "-" and your formula works fine, but giving as result "7" which is TRUE but I am looking for result "6", because number 3 is twice in that 12-3-4-11-5-9-3 value.
Would be perfect if in situations when zero "0"is part of that value, and could be excluded, and not count as a number.
=SUM(IF(FREQUENCY(IF(ISNUMBER(1/V(eval("{"&SUBSTITUTE(A2,"-",",")&"}"))),
MATCH(V(),V(),0)),MATCH(V(),V(),0)),1))
FANTASTIC.....!!!!
My apology for my mistakes which make a little bit more difficult for you to help me, but finally everything is prefect.
Thankyou all for help.
In CD827
=IFERROR(SUMPRODUCT(--(FREQUENCY(--MID(SUBSTITUTE(BX827,"-",REPT(" ",LEN(BX827))),1+(ROW(INDIRECT("1:"&(LEN(BX827)-LEN(SUBSTITUTE(BX827,"-",""))+1)))-1)*LEN(BX827),LEN(BX827)),
--MID(SUBSTITUTE(BX827,"-",REPT(" ",LEN(BX827))),1+(ROW(INDIRECT("1:"&LEN(BX827)))-1)*LEN(BX827),LEN(BX827)))>0))-ISNUMBER(FIND("-0-","-"&BX827&"-")),0)