I have 5 Columns in google sheets
A - Date, shows every days date for 365 days in 2023 (snipped to 15 here)
B - Where the calculations will go
C - $ Amount
D - Start Date
E - Frequency in Days
Column B needs to contain a sum of all values in column C if the date in column D is the same as A OR is the date plus a multiple of the frequency in column E.
A | B | C | D | E | |
---|---|---|---|---|---|
1 | 1/1/2023 | 24 | 1/1/2023 | 2 | |
2 | 1/2/2023 | 234 | 3/3/2023 | 4 | |
3 | 1/3/2023 | 345 | 1/5/2023 | 3 | |
4 | 1/4/2023 | 124 | 1/10/2023 | 5 | |
5 | 1/5/2023 | ||||
6 | 1/6/2023 | ||||
7 | 1/7/2023 | ||||
8 | 1/8/2023 | ||||
9 | 1/9/2023 | ||||
10 | 1/10/2023 | ||||
11 | 1/11/2023 | ||||
12 | 1/12/2023 | ||||
13 | 1/13/2023 | ||||
14 | 1/14/2023 | ||||
15 | 1/15/2023 |
Can this be done? I have experimented with many options and chatGPT which doesn't understand the issue as I try to present it.
Edit: perhaps my approach is incorrect and this is my first post so apologies. I am trying to generate a cashflow planner of sorts.
The first column is just the dates for the year. Second column is where the magic happens, third column (which I didn't include because that formula is easy) is a running total or balance considering income or expenditure.
The other three columns will be start date, frequency, amount and weather its income or expenditure.
So the process will be to add say income, lets say its $1000 every week, you'd add $1000, frequency 7, type income.
The calc column would add 1000 every week from the start date. The same would be true for expenses. SUMIFS work for the start date but only go so far!
Bonus points for the ability to add a one off (ie no frequency) income/expendature!
Thanks