If Im reading you correctly then you dont necessarily know how many tables you're going to have and therefore cant just do a standard sum, if so then you could just use SUMIF
eg to get the total of the column G entries use the formula:
=SUMIF(B:B,"Benefits",G:G)
Which basically sums the items in column G whenever theres the word "Benefits" in column B
EDIT: To ensure your "totals" table isnt included slightly change the word Benefits in that table you could even add a trailing space or Underscore.
Bookmarks