There may very well be a thread on this already, but I was having some trouble searching for this, as I don't really know how to describe it.
Basically, I've got these tables and need to write a macro to put a bunch of stuff at the bottom of them, but they vary in terms of how wide (columns) and long (rows) they are every time. I need the macro to skip a row below the bottom of the table and then start putting the stuff in the cells in the next row accordingly. To compound the issue, the "stuff" I need at the bottom uses references and functions that point to the data in the table.
I've attatched an example, with Sheet1 being the original table and Sheet2 containing the desired outcome. Just keep in mind that the macro I'm trying to make needs to be relative, not tied to that specific table or its dimensions.
I'm thinking some kind of "trigger word" might be helpful, as the general language and layout of the tables I'm using is fairly consistent. Something like looking for "sum" in the first column to indicate the last row in this example?