Hi, How can we count numbers in a cell that are separated by commas?
Eg., 12,13,14,15,[16]
The count result would be 4 in this case, excluding the one in the brackets.
Thanks.
Hi, How can we count numbers in a cell that are separated by commas?
Eg., 12,13,14,15,[16]
The count result would be 4 in this case, excluding the one in the brackets.
Thanks.
hi hactic
let your text is in cell # A1. try the follwing
=LEN(A1)-LEN(SUBSTITUTE(A1,",","")) or
=SUMPRODUCT(--LEN($A$1))-SUMPRODUCT(--LEN(SUBSTITUTE($A$1,",","")))
Hi thanks. I tried this but if you remove the brackets say from 12,13,14,[15] to 12,13,14,15, the result still remains 3 instead of incrementing to 4. Any fix for that?
Last edited by hactic; 07-15-2011 at 01:39 AM.
Hi hactic
i am not clear what do u want. tell me what result u need in the follwing cases
12,13,14,[15]
12,13,14,15,
12,13,14,15
Hello,
Try this Array Formula. Confirmed with CONTROL+SHIFT+NTER, rather than just ENTER.
=COUNT(--TRIM(MID(SUBSTITUTE(A1,",",REPT(" ",100)),100*ROW($A$1:$A$100)-99,100)))
Regards,
Haseeb Avarakkan
__________________________________
"Feedback is the breakfast of champions"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks