I have a spreadsheet that I'm starting to use for personal money analysis. My main sheet is called "transactions" and has headers of Category, Description, Date and Amount (it's basically a check register). I've created a pivot report off of that sheet that contains sum, min and max of Amount by Category. I would like to make a custom average function on that pivot report but not sure how to go about it. What I would like to see is the average amount of negative transactions between positive ones. My positive transactions are my paychecks and the negative transactions are any spending I do.
An example might help in what I'm trying to do here...
Let's say for category "Food" I have the following transactions (in this order)... -20 -25 -30 100 -30 -35 -40
I'd like my average to be calculated like this... ( ( (-20 + -25 + -30) / 3 ) + ( (-30 + -35 + -40) / 3 ) ) / 2
Anyone have the slightest idea on how I can enhance my pivot report to do this?