I am working on a new Financial Tracker for 2017. The basic structure is set, just need a few formulas.
The formulas I need for the first image would be something like:
In AF11 =SUMIF($AP$3,AA11,$AO$3)+SUMIF($AP$4,AA11,$AO$4)
In AG11 =SUMIF($AP$3,AB11,$AO$3)+SUMIF($AP$4,AB11,$AO$4)
BUT, I need it to work for all the 'receipts' to AAA. Each 'receipt' 6 columns wide with the data I need in the 5th and 4th column (Range and Sum Range respectively). I imagine some sort of INDEX function would work, would like it to be drag-able both over and down if possible.
The formula I need for the second image would be something like:
In D15 =SUMIF(AM6:AM100,B15,AO6:AO100)
The same restrictions apply, except the data is now in columns 2 and 4.
Thanks in advance and have a wonderful New Year!
The formulas I need for the first image would be something like:
In AF11 =SUMIF($AP$3,AA11,$AO$3)+SUMIF($AP$4,AA11,$AO$4)
In AG11 =SUMIF($AP$3,AB11,$AO$3)+SUMIF($AP$4,AB11,$AO$4)
BUT, I need it to work for all the 'receipts' to AAA. Each 'receipt' 6 columns wide with the data I need in the 5th and 4th column (Range and Sum Range respectively). I imagine some sort of INDEX function would work, would like it to be drag-able both over and down if possible.

The formula I need for the second image would be something like:
In D15 =SUMIF(AM6:AM100,B15,AO6:AO100)
The same restrictions apply, except the data is now in columns 2 and 4.

Thanks in advance and have a wonderful New Year!