Hi Guys,
Hope you can help! If you guys could help me with this I would be hugely grateful as this would save me sooo much time every month.
Basically, I want to count the number of times 1 appears in 3 or more consecutive cells. Each cell only contains a 1 or 0.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Apr 1st
[/TD]
[TD]Apr 2nd
[/TD]
[TD]Apr 3rd
[/TD]
[TD]Apr 4th
[/TD]
[TD]Apr 5th
[/TD]
[TD]Apr 6th
[/TD]
[TD]Apr 7th
[/TD]
[TD]Apr 8th
[/TD]
[TD]Apr 9th
[/TD]
[TD]Apr 10th
[/TD]
[TD]Apr 11th
[/TD]
[TD]Apr 12th
[/TD]
[TD]total
[/TD]
[/TR]
[TR]
[TD]Joe Bloggs
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Jim Bloggs
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
In the example above Joe blogs would return a value of 2 and Jim would return a value of 1
Any Help would be greatly appreciated!
T
Hope you can help! If you guys could help me with this I would be hugely grateful as this would save me sooo much time every month.
Basically, I want to count the number of times 1 appears in 3 or more consecutive cells. Each cell only contains a 1 or 0.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Apr 1st
[/TD]
[TD]Apr 2nd
[/TD]
[TD]Apr 3rd
[/TD]
[TD]Apr 4th
[/TD]
[TD]Apr 5th
[/TD]
[TD]Apr 6th
[/TD]
[TD]Apr 7th
[/TD]
[TD]Apr 8th
[/TD]
[TD]Apr 9th
[/TD]
[TD]Apr 10th
[/TD]
[TD]Apr 11th
[/TD]
[TD]Apr 12th
[/TD]
[TD]total
[/TD]
[/TR]
[TR]
[TD]Joe Bloggs
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]Jim Bloggs
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]
In the example above Joe blogs would return a value of 2 and Jim would return a value of 1
Any Help would be greatly appreciated!
T