View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Martin P Martin P is offline
external usenet poster
 
Posts: 22
Default Counting Occurances

=SUMPRODUCT(--((A2:A12)-(A1:A11)<0))-1

"Rusty" wrote:

I really need some help for work. I have a column that contains various
numeric values and I want to count the number of times it changes from one
value to another, but there are spaces in between the cells. Heres a simple
example,
8
8
8
15
15
18
17
17
8
3
17
15
So, is there a formula or macro, something that can sum up the number of
times the number changes?
I would really appreciate the help.