JALonsdale
New Member
- Joined
- Jul 29, 2017
- Messages
- 6
I want to calculate two cells based on the number of items I have within sixteen columns on each row.
[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD]
[/TD]
[TD]04
[/TD]
[TD]06
[/TD]
[TD]08
[/TD]
[TD]10
[/TD]
[TD]12
[/TD]
[TD]14
[/TD]
[TD]16
[/TD]
[TD]18
[/TD]
[TD]20
[/TD]
[TD]
[/TD]
[TD]Next
[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]Line1[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]12[/TD]
[TD]Should Be 28[/TD]
[/TR]
[TR]
[TD]Line2[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]08[/TD]
[TD]Should be 10[/TD]
[/TR]
[TR]
[TD]Line3[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]14[/TD]
[TD]Should be 40[/TD]
[/TR]
</tbody>[/TABLE]
I have figured out the formula in blue as it was rather simple...
But updating the Total Column is proving more of a challenge.
In this chart there is a line in orange, that cannot be a part of the finished product... Therefore how can I update the total
based on the fact that the first check box value is 4, and it increases each time by 2; without having the 4,6,8,10,12,etc... line in it.
Any feedback would be of much help.
[TABLE="class: grid, width: 100, align: center"]
<tbody>[TR]
[TD]
[/TD]
[TD]04
[/TD]
[TD]06
[/TD]
[TD]08
[/TD]
[TD]10
[/TD]
[TD]12
[/TD]
[TD]14
[/TD]
[TD]16
[/TD]
[TD]18
[/TD]
[TD]20
[/TD]
[TD]
[/TD]
[TD]Next
[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]Line1[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]12[/TD]
[TD]Should Be 28[/TD]
[/TR]
[TR]
[TD]Line2[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]08[/TD]
[TD]Should be 10[/TD]
[/TR]
[TR]
[TD]Line3[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]14[/TD]
[TD]Should be 40[/TD]
[/TR]
</tbody>[/TABLE]
I have figured out the formula in blue as it was rather simple...
Code:
=(((COUNTA(b2:b10)*2)+4)
But updating the Total Column is proving more of a challenge.
In this chart there is a line in orange, that cannot be a part of the finished product... Therefore how can I update the total
based on the fact that the first check box value is 4, and it increases each time by 2; without having the 4,6,8,10,12,etc... line in it.
Any feedback would be of much help.