thx for offer Tess.
sorry for the ramble, but thought it might help orient you. let me know if you need clarification......
OK, I developed my own cashbook to keep my financial records, which my acct helped me set up.
Others want to use the cashbook and I have been defensively programming it into a series of template modules.
To improve its performance, I am trying to reduce the use of sumproduct formula....which are used heavily in the cashbook, income statement, and cash flow.
I am exploring two options:
- use pivot tables
- do more calcs in a memory array using vba, minimizing read/writes by working with larger blocks.
The second option will require a larger time investment.
So, what I am trying to do with pivot tables is thus:
I have 2 worksheets, one each for receipts and payments. THese are consolidations from several dynamic imported bank statement worksheets.
I currently have separate auto updating pivot tables for rcpts and pmts.
However, these pivots are both dynamic, in that rows are months and will expand down with time.
Columns are cashbook categories, and empty categories are left out of the pivot table. This effects the number of columns in the p.table.
What I want to do is:
- subtract total pmts from total rcpts to get net monthly cash flows.
I presume this is a straight forward matter of using custom calcs to take one column from another.
- run a cumulative balance on this CF.
I figure the solution is to either:
1.
create a new database table where I can make one pivot table with rcpts and pmts categories and totals in it....and simply subtract total pmts column from total rcpts column..... though I haven't thought how to set up a custom calculation to get a column running a cumulative net CF balance, especially considering the dynamic time nature of the database.
2.
create a third p. table to do the subtraction and cumulative balances, that uses the data within the current 2 pivot tables.
So what I need help with is:
- am I better to set up a single pivot table wiht rcpts and pmts in it, or use a third table that uses the data in the existing two tables.
- how do I set up a cumulative balance column in a p.table that links to a dynamic database.
TIA
WW