Microsoft says the DateDif function: =DATEDIF(A3,B3,"M")
returns the full number of months between those two dates assuming A3 = Starting month and B3 = Ending month.
However, for dates between 4/30/2020 and 3/31/2020, I am getting a value of 0. I was expecting to get a value of 1. DateDif between 3/1/2020 and 5/31/2020 returns 2, while datedif between 4/30/2020 and 5/31/2020 returns 1 - both of which makes sense to me. So why is the DATEDIF between 4/30/2020 and 3/31/2020 returning 0?
Warning: Excel provides the DATEDIF function in order to support older workbooks from Lotus 1-2-3. The DATEDIF function may calculate incorrect results under certain scenarios.
There is a reason that it is hidden. It does not work properly in all cases and they are not going to fix it. – Scott Craner