View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default number of times consective data occurs in a range of cells

Try this:

=SUMPRODUCT(--(A1:A99=0.25),--(A2:A100=0.25))


"Thanks a lot Ralph. it worked." wrote:

I have a thirty day worksheet with numbers entered each day form .1 to .99.
Is there any way to calulate how many times .25 was entered two days in a row.
example .25 .25 .10 .87 .25 .98 .25 .25 , in this case it would be two
times.