Hello,
I constantly work with product inventory and I would like to know how to split dates based on time periods (Calendar Years or Time Periods i.e. 4/1/16 - 3/31/17 or 10/1/16 - 9/30/17. Is there a formula I can use for this...
For Example I have the following product with time period availability of:
Product Start Date End Date
1660062 09/23/2017 07/31/2020
However,
If I were to split the dates by calendar year Jan - Dec, the results would be:
Product Start Date End Date
1660062 09/23/2017 12/31/2017
1660062 01/01/2018 12/31/2018
1660062 01/01/2019 12/31/2019
1660062 01/01/2020 07/31/2020
If I were to split the dates by periods April-2017 - March-2018, the results would be:
Product Start Date End Date
1660062 09/23/2017 03/31/2018
1660062 04/01/2018 03/31/2019
1660062 04/01/2019 03/31/2020
1660062 04/01/2020 07/31/2020
Please also keep in mind dates with 30, 31 or 28/29 days depending of leap year.
'I've been trying to figure out a solution and its driving me crazy. Please help.


Best,
JP
I constantly work with product inventory and I would like to know how to split dates based on time periods (Calendar Years or Time Periods i.e. 4/1/16 - 3/31/17 or 10/1/16 - 9/30/17. Is there a formula I can use for this...
For Example I have the following product with time period availability of:
Product Start Date End Date
1660062 09/23/2017 07/31/2020
However,
If I were to split the dates by calendar year Jan - Dec, the results would be:
Product Start Date End Date
1660062 09/23/2017 12/31/2017
1660062 01/01/2018 12/31/2018
1660062 01/01/2019 12/31/2019
1660062 01/01/2020 07/31/2020
If I were to split the dates by periods April-2017 - March-2018, the results would be:
Product Start Date End Date
1660062 09/23/2017 03/31/2018
1660062 04/01/2018 03/31/2019
1660062 04/01/2019 03/31/2020
1660062 04/01/2020 07/31/2020
Please also keep in mind dates with 30, 31 or 28/29 days depending of leap year.
'I've been trying to figure out a solution and its driving me crazy. Please help.



Best,
JP