help with cashflow

BrutalLogiC

Active Member
Joined
Feb 26, 2006
Messages
267
Office Version
  1. 2016
Platform
  1. Windows
hello experts I am trying to write a formula that adds up the monthly ongoing costs, right now I have it linked to individual cells but trying to make it so the values in yellow update when the start date changes, please help

running total.xlsx
CDEFGHIJKLMNOPQR
2StartOngoing Monthly cost01-Aug-2101-Sep-2101-Oct-2101-Nov-2101-Dec-2101-Jan-2201-Feb-2201-Mar-2201-Apr-2201-May-2201-Jun-2201-Jul-22
301-Aug-21150,000Total monthly cost567,500657,500657,500657,500869,000934,0001,099,0001,099,0001,099,0001,099,0001,099,0001,099,000
401-Aug-21120,000
501-Aug-2172,500
601-Aug-2155,000
701-Aug-2167,500
801-Aug-2132,500
901-Aug-2135,000
1001-Aug-2115,000
1101-Aug-2110,000
1201-Aug-2110,000
1301-Sep-2190,000
1401-Dec-2170,000
1501-Dec-2185,000
1601-Dec-2156,500
1701-Jan-2265,000
1801-Feb-22165,000
Sheet1
Cell Formulas
RangeFormula
G3G3=SUM($D$3:$D$12)
H3:J3H3=SUM($D$3:$D$12)+$D$13
K3K3=SUM($D$3:$D$12)+$D$13+SUM($D$14:$D$16)
L3L3=SUM($D$3:$D$12)+$D$13+SUM($D$14:$D$16)+$D$17
M3:R3M3=SUM($D$3:$D$12)+$D$13+SUM($D$14:$D$16)+$D$17+$D$18
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Book2
ABCDEFGHIJKLMNO
1StartOngoing Monthly cost01.08.202101.09.202101.10.202101.11.202101.12.202101.01.202201.02.202201.03.202201.04.202201.05.202201.06.202201.07.2022
201.08.2021150 000,00567 500,0090 000,00--211 500,0065 000,00165 000,00-----
301.08.2021120 000,00
401.08.202172 500,00
501.08.202155 000,00
601.08.202167 500,00how this report should look like:
701.08.202132 500,00
801.08.202135 000,00Unique dateValue per month
901.08.202115 000,0001.08.2021567 500,00
1001.08.202110 000,0001.09.202190 000,00
1101.08.202110 000,0001.10.2021-
1201.09.202190 000,0001.11.2021-
1301.12.202170 000,0001.12.2021211 500,00
1401.12.202185 000,0001.01.202265 000,00
1501.12.202156 500,00
1601.01.202265 000,00
1701.02.2022165 000,00
18
Sheet1
Cell Formulas
RangeFormula
C2C2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.08.2021]])
D2D2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.09.2021]])
E2E2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.10.2021]])
F2F2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.11.2021]])
G2G2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.12.2021]])
H2H2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.01.2022]])
I2I2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.02.2022]])
J2J2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.03.2022]])
K2K2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.04.2022]])
L2L2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.05.2022]])
M2M2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.06.2022]])
N2N2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.07.2022]])


is this it?
 
Upvote 0
hi Radoslaw thanks for your reply, I am not sure if I explained it right as I am trying to recreate a formula that will show the same values as I have in yellow but where the values in yellow are dynamic so they change when I change the start. I ended up just splitting it across 2 rows with numbers in orange being final solution as below so I think this works okay :)

running total.xlsx
CDEFGHIJKLMN
2StartOngoing Monthly cost01-Aug-2101-Sep-2101-Oct-2101-Nov-2101-Dec-2101-Jan-2201-Feb-2201-Mar-22
301-Aug-21150,000Monthly567,50090,000--211,50065,000165,000-
401-Aug-21120,000Cumulative567,500657,500657,500657,500869,000934,0001,099,0001,099,000
501-Aug-2172,500
601-Aug-2155,000
701-Aug-2167,500
801-Aug-2132,500
901-Aug-2135,000
1001-Aug-2115,000
1101-Aug-2110,000
1201-Aug-2110,000
1301-Sep-2190,000
1401-Dec-2170,000
1501-Dec-2185,000
1601-Dec-2156,500
1701-Jan-2265,000
1801-Feb-22165,000
Sheet1
Cell Formulas
RangeFormula
G3:N3G3=SUMIF($C$3:$C$18,G2,$D$3:$D$18)
G4G4=G3
H4:N4H4=SUM($G$3:H3)
 
Upvote 0
ok, so ur trying to do running total

Book2
ABCDEFGHIJKLMNO
1StartOngoing Monthly cost01.08.202101.09.202101.10.202101.11.202101.12.202101.01.202201.02.202201.03.202201.04.202201.05.202201.06.202201.07.2022
201.08.2021150 000,00567 500,0090 000,00--211 500,0065 000,00165 000,00-----
301.08.2021120 000,00567 500,00657 500,00657 500,00657 500,00869 000,00934 000,001 099 000,001 099 000,001 099 000,001 099 000,001 099 000,001 099 000,00
401.08.202172 500,00
501.08.202155 000,00
601.08.202167 500,00how this report should look like:
701.08.202132 500,00
801.08.202135 000,00Unique dateValue per month Column1
901.08.202115 000,0001.08.2021567 500,00567 500,00
1001.08.202110 000,0001.09.202190 000,00657 500,00
1101.08.202110 000,0001.10.2021-657 500,00
1201.09.202190 000,0001.11.2021-657 500,00
1301.12.202170 000,0001.12.2021211 500,00869 000,00
1401.12.202185 000,0001.01.202265 000,00934 000,00
1501.12.202156 500,00
1601.01.202265 000,00
1701.02.2022165 000,00
18
Sheet1
Cell Formulas
RangeFormula
C2C2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.08.2021]])
D2D2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.09.2021]])
E2E2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.10.2021]])
F2F2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.11.2021]])
G2G2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.12.2021]])
H2H2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.01.2022]])
I2I2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.02.2022]])
J2J2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.03.2022]])
K2K2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.04.2022]])
L2L2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.05.2022]])
M2M2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.06.2022]])
N2N2=SUMIFS(data_INput_Table[[Ongoing Monthly cost]:[Ongoing Monthly cost]],data_INput_Table[[Start]:[Start]],Sum_by_month[[#Headers],[01.07.2022]])
C3C3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.08.2021])
D3D3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.09.2021])
E3E3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.10.2021])
F3F3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.11.2021])
G3G3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.12.2021])
H3H3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.01.2022])
I3I3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.02.2022])
J3J3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.03.2022])
K3K3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.04.2022])
L3L3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.05.2022])
M3M3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.06.2022])
N3N3=SUM(Sum_by_month[[01.08.2021]:[01.08.2021]]:Sum_by_month[01.07.2022])
F9:F14F9=SUM($E$9:E9)
 
Upvote 0
If your dates are always the 1st of the month, how about
Excel Formula:
=SUMIFS($D:$D,$C:$C,"<="&G2)
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,978
Members
448,934
Latest member
audette89

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