SYKEMAKAVELI
New Member
- Joined
- Apr 18, 2023
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
Hi,
I have the following fields / inputs:
1) 'Start date' - in this example 9 June 2023, cell AV11
2) 'First date' - in this example 1 July 2013, cell AU16
3) 'Frequency' - 365.25 (in days), cell AV14 --> this can take any numeric value, and would typically range from 1 to 365.25
I have created a formula which finds the first date >= the 'First date', which is an exact multiple of 'Frequency' days prior to the 'Start date':
IF(AU16="","",IFERROR(AV$11-AV$14*FLOOR((AV$11-AU16)/AV$14,1),""))
This gives an output of 8 July 2013, the first date from 1 July 2013 which is an exact multiple of 365.25 days prior to 9 June 2023.
However, I want to modify the formula so that it retains the day value from the 'Start date'. i.e. instead of using 365.25 days as an input, I want to modify the formula to use a new input
'Mths offset' (cell AV13), which will be an integer value of 1, 2, 3,..., 12. The idea is effectively the same as above - I want to find the first date that is on or post 1 July 2013 (in this example), which is a multiple of 'Mths offset' months prior to the 'Start date'.
For example, if I used a value ' Mths offset' of '12', I would want it to return 9 July 2013, preserving the day value from the 'Start date' field.
Does anyone have a view as to how I can go about doing this, preferably (strongly) within a single formula?
Thanks in advance
I have the following fields / inputs:
1) 'Start date' - in this example 9 June 2023, cell AV11
2) 'First date' - in this example 1 July 2013, cell AU16
3) 'Frequency' - 365.25 (in days), cell AV14 --> this can take any numeric value, and would typically range from 1 to 365.25
I have created a formula which finds the first date >= the 'First date', which is an exact multiple of 'Frequency' days prior to the 'Start date':
IF(AU16="","",IFERROR(AV$11-AV$14*FLOOR((AV$11-AU16)/AV$14,1),""))
This gives an output of 8 July 2013, the first date from 1 July 2013 which is an exact multiple of 365.25 days prior to 9 June 2023.
However, I want to modify the formula so that it retains the day value from the 'Start date'. i.e. instead of using 365.25 days as an input, I want to modify the formula to use a new input
'Mths offset' (cell AV13), which will be an integer value of 1, 2, 3,..., 12. The idea is effectively the same as above - I want to find the first date that is on or post 1 July 2013 (in this example), which is a multiple of 'Mths offset' months prior to the 'Start date'.
For example, if I used a value ' Mths offset' of '12', I would want it to return 9 July 2013, preserving the day value from the 'Start date' field.
Does anyone have a view as to how I can go about doing this, preferably (strongly) within a single formula?
Thanks in advance