Forum Discussion

qdanazumi's avatar
qdanazumi
Copper Contributor
Aug 11, 2022
Solved

calculating months between two dates with rounding

I have been trying to look for the number between these two months while rounding to the next month if the day passes the 15th
  • HansVogelaar's avatar
    HansVogelaar
    Aug 11, 2022

    qdanazumi 

    With dates in A3 and B3:

     

    =(12*YEAR(B3)+MONTH(B3)+(DAY(B3)>15))-(12*YEAR(A3)+MONTH(A3)+(DAY(A3)>15))

Resources