I am trying to combine offset either with another offset or with sum/index or sum/take. I could easily do this on one row, but I'd like to keep everything to a single row. Basically I have a financial model with months across the top 1-72 (six years) and various expenditure lines going down the page - salaries, bonuses, payroll taxes, etc. I am using offset to create a separate cash flow pattern for the various expenses where an offset of 0 months means the expense is paid in the month, 1 means one month earlier, -1 means 1 month later etc (I have also incorporated some failsafe checks to make sure you can't specify paying anything before the model starts. So far so good and that all works nicely for a regular monthly expense like salaries. Whilst the bonuses are accrued every month I would like to add an additional formula that can specify that the bonus rolls up until the end of a quarter or year (or whatever period I specify). Again it is easy enough to create a new row with formulae in to place the accrued / cumulative totals for a period at the end of that relevant period. However, I'd like to be able to then offset that total bonus so that it is paid 1 month after the period end (or whatever - perhaps even in advance of the period end).
For example I have a formula like this: =SUM(TAKE($L10:N10,,-N$4)) where row 4 contains the chronological month for a period (lets say it's a quarter - so month 3 is the end of the quarter) and row 10 contains the bonuses accrued for the month. I plan on having an IF formula that can be used to determine the month end so I will only end up seeing the total cumulative bonuses to the end of the quarter. I Would ideally have then put an OFFSET formula around the SUM(TAKE.....) so that I could shift when the payment is made forward or backwards. Unfortunately OFFSET doesn't seem to like having another formulae included in the same cell. So I can't see a way to achieve what I want without having 2 rows (and doubling the size of my model and making it a lot less elegant).
Does anyone have any suggestions please? I've thought about MATCH/INDEX and INDIRECT, but so far not terribly inspired.
Thank you!
For example I have a formula like this: =SUM(TAKE($L10:N10,,-N$4)) where row 4 contains the chronological month for a period (lets say it's a quarter - so month 3 is the end of the quarter) and row 10 contains the bonuses accrued for the month. I plan on having an IF formula that can be used to determine the month end so I will only end up seeing the total cumulative bonuses to the end of the quarter. I Would ideally have then put an OFFSET formula around the SUM(TAKE.....) so that I could shift when the payment is made forward or backwards. Unfortunately OFFSET doesn't seem to like having another formulae included in the same cell. So I can't see a way to achieve what I want without having 2 rows (and doubling the size of my model and making it a lot less elegant).
Does anyone have any suggestions please? I've thought about MATCH/INDEX and INDIRECT, but so far not terribly inspired.
Thank you!