DravenExcel
New Member
- Joined
- Feb 18, 2020
- Messages
- 6
- Office Version
- 2016
- Platform
- Windows
Hi there,
I'm looking for help with a problem in regards to using a dropdown menu for a dynamic summation of periods. I have a drop down menu with P1-P12 in it.
Here is the report that I have to use for the information.
Right now I have been working on by just using SumProduct to get the required totals I need but columns based on the expense numbers. I've tried using Index/match to make the column range dynamic but no luck.
My output is as shown below and the formula is =SUMPRODUCT((A15:A25=A29)*B15:M25)
As soon as I add in another array to act as the drop down menu the formula stops added and only gives the first number.
Anyone able to help fix this?
Thanks in advance.
I'm looking for help with a problem in regards to using a dropdown menu for a dynamic summation of periods. I have a drop down menu with P1-P12 in it.
Here is the report that I have to use for the information.
Right now I have been working on by just using SumProduct to get the required totals I need but columns based on the expense numbers. I've tried using Index/match to make the column range dynamic but no luck.
Expense number | P1 | P2 | P3 | P4 | P5 | P6 | P7 | P8 | P9 | P10 | P11 | P12 |
1111 | 8,515.41 | 11,353.88 | 5,676.94 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2222 | 6,917.78 | 9,223.70 | 11,529.63 | 9,223.70 | 11,529.63 | 9,223.70 | 9,223.70 | 11,529.63 | 9,223.70 | 9,223.70 | 11,529.63 | 12,452.00 |
3333 | 9,527.37 | 12,703.16 | 15,878.95 | 12,703.16 | 15,878.95 | 12,703.16 | 12,703.16 | 15,878.95 | 12,703.16 | 12,703.16 | 15,878.95 | 17,149.26 |
4444 | 0 | 2,826.64 | 4,830.15 | 3,864.12 | 4,830.15 | 966.03 | 0 | 0 | 0 | 0 | 0 | 0 |
5555 | 0 | 0 | 0 | 0 | 2,708.55 | 902.85 | 0 | 0 | 0 | 0 | 0 | 0 |
6666 | 0 | 0 | 0 | 0 | 4,533.69 | 6,044.93 | 6,044.93 | 7,556.16 | 6,044.93 | 6,044.93 | 0 | 0 |
7777 | 0 | 0 | 0 | 0 | 2,406.78 | 4,813.55 | 4,813.55 | 4,813.55 | 0 | 0 | 0 | 0 |
5555 | 0 | 0 | 0 | 0 | 0 | 965.29 | 1,287.05 | 1,608.81 | 1,287.05 | 1,287.05 | 1,608.81 | 1,737.52 |
4444 | 0 | 0 | 0 | 0 | 0 | 1,206.61 | 1,608.81 | 2,011.01 | 1,608.81 | 1,608.81 | 2,011.01 | 2,171.90 |
8888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,174.45 | 5,436.12 | 5,871.01 |
6666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7,556.16 | 8,160.65 |
My output is as shown below and the formula is =SUMPRODUCT((A15:A25=A29)*B15:M25)
1111 | 25546.23 |
2222 | 120830.5 |
3333 | 166411.4 |
4444 | 29544.05 |
5555 | 13392.98 |
6666 | 51986.38 |
7777 | 16847.43 |
8888 | 13481.58 |
As soon as I add in another array to act as the drop down menu the formula stops added and only gives the first number.
Anyone able to help fix this?
Thanks in advance.