In the attached workbook I have a couple columns of values that are either 1 or 0. I need a formula that will count the number of times 1 occurs 2 times consecutively in each column. If there are four 1's in a row that would count as 2 for example.
In the attached workbook I have a couple columns of values that are either 1 or 0. I need a formula that will count the number of times 1 occurs 2 times consecutively in each column. If there are four 1's in a row that would count as 2 for example.
Last edited by rmb623; 08-09-2011 at 02:48 PM.
Try the attached workbook, does that help?
Try:
=SUM(INT(FREQUENCY(IF(A2:H2=1,COLUMN(A2:H2)),IF(A2:H2=0,COLUMN(A2:H2)))/2))
confirmed with CTRL+SHIFT+ENTER not just ENTER.
Note: If 3 1's occur it is counted as 1 only.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
thank you works great Andrew
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks