Recurring rent dates formula

Excel_1996_

New Member
Joined
Sep 14, 2023
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
Hi,

The company I work for has several properties that are rented out, some pay bi weekly some pay monthly. What I would like to know is, is there any way I can set a condition or formula to say that if in column A the first rent is due on 'X' date, then in column B the next due date is 'X + 14' But then have this automatically update rather than manually update the date every 2 weeks?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
One way might be to have B1 as =A1+14 and use the wb open event to check the value of A1, which contains the 'seed' date value. If the current date is greater than the value of B1, the code in the event updates A1 to the value of B1 formula result. The possible problems with that is,
- the wb must be opened for anything to happen
- it assumes that the rent was paid on the due date
You could also just drag the formula down and get a list of due dates.
 
Upvote 0
One way might be to have B1 as =A1+14 and use the wb open event to check the value of A1, which contains the 'seed' date value. If the current date is greater than the value of B1, the code in the event updates A1 to the value of B1 formula result. The possible problems with that is,
- the wb must be opened for anything to happen
- it assumes that the rent was paid on the due date
You could also just drag the formula down and get a list of due dates.
Hi Micron,

That could work, I'm happy for the excel to assume rents are paid on time.

Only thing is I am a total newbie to excel and don't know how to set the open work book to check the value of A2.

The company have a LOT of rental properties so I am trying to save space and avoid dragging down due date formulas!
 
Upvote 0
Open the vb editor (alt+F11). Drop down the objects list from near the top left. Dbl click on ThisWorkbook; a code page will open. One drop down above that should say General. Drop that down, choose Workbook. Find Open event in the drop down to the right & choose that. You will start a code block for the Open event.
Google to find code that will check your cell when that event runs, which will be each time you open the wb.
 
Upvote 0
You could try pasting this simple version into the code after you start the open event code as described above. See if it works but change to your sheet name and range values. Play with a copy of your wb rather than your production wb. Your formula would be like =B2+14 (if the seed date is in B2) in whatever cell you want to be updated. If you have worksheet_change code for your sheet in your wb, then you might want to disable running it just when the wb is opened.
VBA Code:
With Sheets("7")
     If .Range("B2") <= Date Then .Range("B2") = Date
End With
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,218
Members
449,091
Latest member
jeremy_bp001

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