Hi all. I need to calculate the number of days based on several variables and I just can't get them all in there.
This would be based on a reference period, for example:
Period 01/01/21 to 01/31/21
There could be several options that I need to cover in my formula, so 4 different dates are referenced:
Dates ending after reference period: from 01/19/21 to 02/18/21 = 13 days based on period above
Dates starting before reference period: from 12/15/20 to 01/03/21 = 3 days based on period above
Dates outside of reference period: from 02/01/21 to 02/28/21 = 0 days based on period above
Dates starting before & ending after reference period: from 12/01/20 to 02/28/21 = 31 days based on period above
I hope that I'm clear, can someone help me with this? Thank you in advance.
This would be based on a reference period, for example:
Period 01/01/21 to 01/31/21
There could be several options that I need to cover in my formula, so 4 different dates are referenced:
Dates ending after reference period: from 01/19/21 to 02/18/21 = 13 days based on period above
Dates starting before reference period: from 12/15/20 to 01/03/21 = 3 days based on period above
Dates outside of reference period: from 02/01/21 to 02/28/21 = 0 days based on period above
Dates starting before & ending after reference period: from 12/01/20 to 02/28/21 = 31 days based on period above
I hope that I'm clear, can someone help me with this? Thank you in advance.