Help adding total from rows to columns.

FirewalkerZ5

New Member
Joined
May 14, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I am trying to add totals from rows to columns based on sum of values added if total equals specific value in separate cell.
I have tried different formulas but it just is not working.
I was trying to come up with a possible solution by adding If Column C + Column D equals Value on row 4, add values in Column E and F for that row.

PPrctice -5 yr budget planning.xlsm
ABCDEFGHIJKLMN
1Year
2202320242025202620272028202920302031
3$1,500.00202420231$1,500.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
4$7,500.00202420281$7,500.00$0.00$0.00$0.00$0.00
5$1,500.00202420321$1,500.00
6$7,500.00202420281$7,500.00$0.00$0.00$0.00$0.00
7$1,500.00202420321$1,500.00
8$6,500.00202420261$6,500.00$0.00$0.00$0.00$0.00$0.00$0.00
9$1,500.00202520232$750.00$750.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
10$6,500.00202420241$6,500.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
11$1,500.00202820235$300.00$300.00$300.00$300.00$300.00$0.00$0.00$0.00$0.00$0.00
12$4,000.00202720234$1,000.00$1,000.00$1,000.00$1,000.00$0.00$0.00$0.00$0.00$0.00$0.00
13$4,000.00202720234$1,000.00$1,000.00$1,000.00$1,000.00$0.00$0.00$0.00$0.00$0.00$0.00
14$225,000.00202420321$225,000.00
15$35,000.00202420321$35,000.00
16$500.00202820235$100.00$100.00$100.00$100.00$100.00$0.00$0.00$0.00$0.00$0.00
17$300.002048203225$12.00
18$350.00202820235$70.00$70.00$70.00$70.00$70.00$0.00$0.00$0.00$0.00$0.00
19$4,000.002043203220$200.00
20$3,500.00202820235$700.00$700.00$700.00$700.00$700.00$0.00$0.00$0.00$0.00$0.00
21$3,500.00203120268$437.50$438.00$438.00$438.00$438.00$438.00$438.00
22$500.00203020257$71.43$71.00$71.00$71.00$71.00$71.00$71.00$3.00
23$2,400.00202420241$2,400.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
24$800.002033202310$80.00$80.00$80.00$80.00$80.00$80.00$80.00$80.00$80.00$80.00
25$1,500.00202820235$300.00$300.00$300.00$300.00$300.00$0.00$0.00$0.00$0.00$0.00
26$0.00#VALUE!#VALUE!
27$13,200.00$3,621.43$10,558.50$2,059.00$15,589.00$589.00$589.00$589.00$263,733.00
28$ 8,900.00$ -$ 6,500.00$ -$15,000.00
29$4,300.00$3,621.43$ 4,058.50$2,059.00$ 589.00
30
31Cell should equal E9 +F9;F10,F23
32
Sheet1
Cell Formulas
RangeFormula
F27:N27F27=SUM(F3:F26)
F28:J28F28=SUMIFS(F3:F26,$D$3:$D$26,1)
F29:J29F29=F27-F28
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I want to assist but the need is not clear. Maybe try again to explain what is needed. Give a couple of examples of the expected result. I expect that this is not a big deal if I understand what is going on.
 
Upvote 0
Is this what you mean? If not, refer to post #2.

23 07 04.xlsm
CDEFGHIJKLMN
1Year
22023202420252026202720282029203020312032
3202311500000000000
42028175000000
5203211500
62028175000000
7203211500
8202616500000000
92023275075000000000
1020241650000000000
112023530030030030030000000
12202341000100010001000000000
13202341000100010001000000000
1420321225000
152032135000
162023510010010010010000000
1720322512
1820235707070707000000
19203220200
202023570070070070070000000
2120268437.5438438438438438438
222025771.428571437171717171713
2320241240000000000
2420231080808080808080808080
252023530030030030030000000
32
331040001450073501500000497.43263800
Rows to Columns
Cell Formulas
RangeFormula
F33:N33F33=SUM(FILTER($E3:F25,$C3:$C25+$D3:$D25-1=F2,0))
 
Upvote 0
Thank you for the responses.
What I am looking for is, in the example provided, lets look at Column F.
The calculation would sum Column F and if it was the last of the savings required (Column G would have $0.00) it would include the previous amounts in the form.

So, Column F would sum at bottom and include the additional amount for E9.
If this formula were to be in I27 it would include all of Column I and all of Row 11 16, 18, 20 and 25. Grand total would equal $7,939

I hope this makes more sense
 
Upvote 0
I hope this makes more sense
Yes, previously I thought you only wanted rows that ended that year. 😎

Try this

23 07 04.xlsm
CDEFGHIJKLMN
1Year
22023202420252026202720282029203020312032
3202311500000000000
42028175000000
5203211500
62028175000000
7203211500
8202616500000000
92023275075000000000
1020241650000000000
112023530030030030030000000
12202341000100010001000000000
13202341000100010001000000000
1420321225000
152032135000
162023510010010010010000000
1720322512
1820235707070707000000
19203220200
202023570070070070070000000
2120268437.5438438438438438438
222025771.428571437171717171713
2320241240000000000
2420231080808080808080808080
252023530030030030030000000
26
27139503621.42857116558.57939155895895891015.4264453
Rows to Columns
Cell Formulas
RangeFormula
F27:N27F27=SUM(F3:F25)+SUM(FILTER($E3:E25,$C3:$C25+$D3:$D25-1=F2,0))
 
Upvote 0
Solution
You are very welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top