Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default looking for a solution

Hello,

i am looking for help in creating a formula that will allow me to count
consecutive alike numbers such as cells a1=1 b1=1 c1=1 d1=1 e1=0 f1=0
g1=1 h1=0 i1=1 j1=1 k1=1 l1=0 m1=1 n1=1 o1=1 but if it sees a 0 will reset
the count to zero and start again with the first 1 it sees. the above ex
would look something like this in the counting box 4 then 0 then 1 then 0
then 3 then 0 then 3.


thank you
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default looking for a solution

This is fairly complicated...

Here's a small sample file that demonstrates this:

countconsec.xls 16kb

http://cjoint.com/?mnfGX1A8cV

There are 2 formulas used. A2 contains one formula and the other formula is
entered in B2 then copied across to the end of the range.

Press function key F9 to get a different set of numbers in row 1 and you'll
see that this works.

--
Biff
Microsoft Excel MVP


"Joe" wrote in message
...
Hello,

i am looking for help in creating a formula that will allow me to count
consecutive alike numbers such as cells a1=1 b1=1 c1=1 d1=1 e1=0 f1=0
g1=1 h1=0 i1=1 j1=1 k1=1 l1=0 m1=1 n1=1 o1=1 but if it sees a 0 will reset
the count to zero and start again with the first 1 it sees. the above ex
would look something like this in the counting box 4 then 0 then 1 then 0
then 3 then 0 then 3.


thank you



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a pop up solution! [email protected] Excel Discussion (Misc queries) 4 June 21st 07 11:13 PM
My solution Research freak Excel Discussion (Misc queries) 0 April 11th 07 04:30 PM
VLOOKUP - or a better solution Debbie Long Excel Worksheet Functions 1 October 11th 06 06:23 PM
please find a solution somaraju Excel Discussion (Misc queries) 1 March 16th 06 09:40 AM
Solution please vishu Excel Discussion (Misc queries) 19 May 11th 05 11:43 PM


All times are GMT +1. The time now is 10:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"