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")))))
[TABLE="width: 500"]
<tbody>[TR]
[TD]Lease EXP
[/TD]
[TD]Days
[/TD]
[TD]Result
[/TD]
[/TR]
[TR]
[TD]4/30/18
[/TD]
[TD]-361
[/TD]
[TD]MTM
[/TD]
[/TR]
[TR]
[TD]7/31/19
[/TD]
[TD]95
[/TD]
[TD]8-2019
[/TD]
[/TR]
[TR]
[TD]2/29/20
[/TD]
[TD]308
[/TD]
[TD]3-2020
[/TD]
[/TR]
[TR]
[TD]12/31/19
[/TD]
[TD]248
[/TD]
[TD]1-2019
[/TD]
[/TR]
</tbody>[/TABLE]
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")))))
[TABLE="width: 500"]
<tbody>[TR]
[TD]Lease EXP
[/TD]
[TD]Days
[/TD]
[TD]Result
[/TD]
[/TR]
[TR]
[TD]4/30/18
[/TD]
[TD]-361
[/TD]
[TD]MTM
[/TD]
[/TR]
[TR]
[TD]7/31/19
[/TD]
[TD]95
[/TD]
[TD]8-2019
[/TD]
[/TR]
[TR]
[TD]2/29/20
[/TD]
[TD]308
[/TD]
[TD]3-2020
[/TD]
[/TR]
[TR]
[TD]12/31/19
[/TD]
[TD]248
[/TD]
[TD]1-2019
[/TD]
[/TR]
</tbody>[/TABLE]
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.