I need to calculate the number of years between Contract Start and Contract End, where the years must be counted as whole if they are within a calendar year? This calculation is being used to create Purchase Orders that must have a single line for each calendar year, irrespective of when during the year the contract starts or ends. For example:
Start Date = 5/12/2024
End Date = 12/31/2026
I need a formula that will look at this and return "3": 1 year each for 2024, 2025 & 2026. How can I create this formula, please?