Returning Nth day in a certain week each month

ardykav

Board Regular
Joined
Oct 18, 2015
Messages
172
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a sheet where i want to enter one row and it then automatically calculates all the dates below it.

However the problem I have is that i want it to calculate every nth day in a certain month so not sure what the formula or code is.

Eg I have the following table:[TABLE="width: 500"]
<tbody>[TR]
[TD]Start Date[/TD]
[TD]Frequency[/TD]
[TD]End date[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]14/04/16[/TD]
[TD]Monthly[/TD]
[TD]31/12/16[/TD]
[TD]John Smith[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

When I refer to monthly it means that every service should be at the same time each month, so in the first case it would be every 2nd Thursday of the month. So Row 2 would then have formulas that would calculate to return values up to the end date. So here it should then look like this and end on 31/12/16
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[TD]Start Date[/TD]
[TD]Frequency[/TD]
[TD]End date[/TD]
[TD]Name[/TD]
[/TR]
[TR]
[TD]14/04/16[/TD]
[TD]Monthly[/TD]
[TD]31/12/16[/TD]
[TD]John Smith[/TD]
[/TR]
[TR]
[TD]12/05/16[/TD]
[TD]Monthly[/TD]
[TD]31/12/16[/TD]
[TD]John Smith[/TD]
[/TR]
[TR]
[TD]09/06/16[/TD]
[TD]Monthly[/TD]
[TD]31/12/16[/TD]
[TD]John Smith[/TD]
[/TR]
[TR]
[TD]14/07/16[/TD]
[TD]Monthly[/TD]
[TD]31/12/16[/TD]
[/TR]
</tbody>[/TABLE]

Would i need to put a formula in Column A and if so what would it be or would i need VBA code to work it out?

All help greatly appreciated,

thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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