How to Lag weekly payments

ThatExcelLife

New Member
Joined
Nov 2, 2017
Messages
18
Hey All

Got a question for you. I am attempting to model a 52 week cash flow model. What I would like to do is, on the input tab, to have the first week the payment will take place, then an input for lagged weeks and the expense itself. See below. The model is run weekly so 25 is the first week for this model. I am trying to figure out how I can, without a helper tab, be able to have the functionality of selecting the first week of the payment (even for next week's cash flow, Week 26, 25 may still be the first week) and then every 4 weeks (or whatever I choose) out, the model will will push out the payment.

For example below, the payments are every 4 weeks, so 28, 32 and beyond. Not sure how to work around the fact that after 52 weeks, the model will reset to 1. I do have mapping tab for dates, should that be needed.

Thanks All!

Input tab
Lagged Week4
Start Week25
Expense$10,000

<tbody>
</tbody>

Cash Flow tab
25262728293031323334
00010,00000010,00000

<tbody>
</tbody>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
hello

the task sounds straightforward

I suggest the delay in anyone answering is that the set up - and maybe some details/limits - are not understood

some further clarity would help you get some help

regards, Fazza
 
Upvote 0
Agreed! Yes thanks for the suggestion.

It sounds straight forward, but I cannot seem to think of a solution.

The idea is simple: to create a model in which simply by specifying the first payment date and how many "lag" weeks, the model will automatically populate the proper week.

Lets say I have the first week of payment being 25. I want the payments to lag 4 weeks. the result of the model should look like:

INPUT SHEET
Lag Week4
First Payment week25
amount$10,000

<tbody>
</tbody>

The model, which started Week 26, would look like this:
CF SHEET
2627282930313233343536373839404142434445
000$10,000000$10,000000$10,000000$10,000000$10,000

<tbody>
</tbody>

Now lets say instead of a 4 week lag, I want 3. The model output would be:
CF SHEET
2627282930313233343536373839404142434445
00$10,00000$10,00000$10,00000$10,00000$10,00000$10,00000


<tbody>
</tbody>


Lets roll the model over to next week, or Week 27. With the same assumptions as above:
INPUT SHEET
Lag Week3
First Payment week25
amount$10,000

<tbody>
</tbody>

The model would look like this:
CF SHEET
2728293031323334353637383940414243444546
0$10,00000$10,00000$10,00000$10,00000$10,00000$10,00000$10,000


<tbody>
</tbody>


There are two glaring issues:

1) Once the model goes to week 52, it resets to 1; and,
2) What if the operator keeps the inputs as week 25 with lag week 3, and we are in the 29th week: How could the model recognise that this week is behind the model's first week of 29, but still show a payment in week 31 (25 + 3 = 28 + 3 = 31)?

@Fazza Let me know I need to explain further?
 
Upvote 0
have a look at the MOD function : calculate a week number MOD lag week
this will be zero every time you want a payment

try something like this, with cell references to suit your set up
=NOT(MOD(FirstPaymentWeek-the week you want to check, LagWeek))*Amount

adjust as required for start dates, end dates, whatever

if you show the cells that you're using when asking the question it is easier for anyone trying to answer
 
Upvote 0
GOT IT! OK great great yes I didnt even know about the MOD function. I will try this out now.

Yes you are right. Thanks for the suggestions to better my queries. Always grateful for the help I get on this forum.

Thanks again @Fazza!
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

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