Hi all -
I have a tenant info sheet that contains a lease expiration date. I am attempting to create a formula that either calculates the month and year of the lease end date or results in "MTM" (month-to-month) when the lease expiration is in the past. I have a helper column that calculates the number of days between the lease expiration date and today's date. I created the below formula:
=IF(V30<1,"MTM",IF(V30>1,CONCATENATE(MONTH((U30+1))," - ",(TEXT(U30,"yyyy")))))
<tbody>
</tbody>
It works fine unless the lease expiration is in December and then it gives the wrong year. Examples, lease expires on 12/31/19 and the results of the formula is 1-2019 instead of 1-2020. I see the problem in the formula and was trying to figure out another IF component but thought to ask if there was a better way. Maybe someone with more experience knows of a better solution.
I have a tenant info sheet that contains a lease expiration date. I am attempting to create a formula that either calculates the month and year of the lease end date or results in "MTM" (month-to-month) when the lease expiration is in the past. I have a helper column that calculates the number of days between the lease expiration date and today's date. I created the below formula:
=IF(V30<1,"MTM",IF(V30>1,CONCATENATE(MONTH((U30+1))," - ",(TEXT(U30,"yyyy")))))
Lease EXP | Days | Result |
4/30/18 | -361 | MTM |
7/31/19 | 95 | 8-2019 |
2/29/20 | 308 | 3-2020 |
12/31/19 | 248 | 1-2019 |
<tbody>
</tbody>
It works fine unless the lease expiration is in December and then it gives the wrong year. Examples, lease expires on 12/31/19 and the results of the formula is 1-2019 instead of 1-2020. I see the problem in the formula and was trying to figure out another IF component but thought to ask if there was a better way. Maybe someone with more experience knows of a better solution.