View Single Post
  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Mahendra,

In C1, to count the items in B1

=IF(B1<"",LEN(B1)-LEN(SUBSTITUTE(B1,",",""))+1,0)

HTH,
Bernie
MS Excel MVP


"Mahendra" wrote in message
...
I have three columns. Column A contains a number, column B contains bunch of
numbers separated by comma corresponding to the number in column A. In the
column C, I want to count the numbers in col. B separated by comma. Example:

Column A Column B Column C
1200 2,3,4,8 4 (i.e.
there are four numbers

in column B)