Looking back, my post is quite unintelligible...
I've added a simplified example.
I have two sections with tables in it, a button and a invisible field called "SwitchPage". As long as "SwitchPage" has a value of 0, the second section is hidden. If you press the button, "SwitchPage" gets set to 1 and the second section appears.
Now the repeating tables have two columns. The user will enter numbers in the second column. I want to add a "total sum"-field that displays the total of all the numbers added in the second column's fields. However, I don't want it to count the numbers in the second section as long as this section is hidden(or "SwitchPage" is set to 0 - same deal, really). This is a problem because both repeating table's number fields have a default value(in this case 5). So when I set my "total-sum" field to sum up all the fields in both second columns it will display 5 more than I initially want because it's already counting the value of the - as of yet - hidden field/table/section.