I am having troubel figuring this one out using names. To start, take this example
Sheet 1 Sheet 2
|
A B | A B
|
Labor 1000 | Labor 200
Material 1000 | Material 200
|
... | ...
|
Labor 500 | Labor 100
Material 500 | Material 100
The Question: I’d like to be able to total the Labor and Material values up for n number of sheets. The default template starts with two (2) sheets but the user may add any number of sheets they would like.
The Problem (as I see it): The user can add as many “special” page specific item pricing lines to the top of the page. Below that, however, every section (the Labor/Material calculations) are uniformly offset.
If anybody could help me out on this one I’d really appreciate it. Thanks in advance!
Here’s the meat of it, I’m having trouble with some of the surround, but I’ll update
Where
categoriesis an array that holds “Labor”,”Material”, etc.,totsis an array of doubles (or integers if there won’t be any dollar amounts), andcountsis the number of elements incategories.