Hello,
I was wondering if someone can help me in creating a formula based on dates.
I need the formula to be able to tell me the month of a set date depending on the day of the month. The criteria is: If the start is after 1st of the month, populate the following month, if not use the current. If the end date is after the 1st use the current month, if not use the prior month. Examples below - i need the formula in 'start month' and 'end month' fields.
I have tried without using the start / end month fields and just using the active months fields with the formula =IF(DAY(B11)>1,DATEDIF(B10,B11,"m")+(DATEDIF(B10,B11,"md")>0)+1,DATEDIF(B10,B11,"m")) but this does not seem to work. The main field i need is the "active months"
Thank you in advance!
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Start Date[/TD]
[TD]4 January 2018[/TD]
[/TR]
[TR]
[TD]End Date[/TD]
[TD]16 April 2018[/TD]
[/TR]
[TR]
[TD]Start Month[/TD]
[TD]February[/TD]
[/TR]
[TR]
[TD]End Month[/TD]
[TD]April[/TD]
[/TR]
[TR]
[TD]Active Months[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
I was wondering if someone can help me in creating a formula based on dates.
I need the formula to be able to tell me the month of a set date depending on the day of the month. The criteria is: If the start is after 1st of the month, populate the following month, if not use the current. If the end date is after the 1st use the current month, if not use the prior month. Examples below - i need the formula in 'start month' and 'end month' fields.
I have tried without using the start / end month fields and just using the active months fields with the formula =IF(DAY(B11)>1,DATEDIF(B10,B11,"m")+(DATEDIF(B10,B11,"md")>0)+1,DATEDIF(B10,B11,"m")) but this does not seem to work. The main field i need is the "active months"
Thank you in advance!
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Start Date[/TD]
[TD]4 January 2018[/TD]
[/TR]
[TR]
[TD]End Date[/TD]
[TD]16 April 2018[/TD]
[/TR]
[TR]
[TD]Start Month[/TD]
[TD]February[/TD]
[/TR]
[TR]
[TD]End Month[/TD]
[TD]April[/TD]
[/TR]
[TR]
[TD]Active Months[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]