Appsheet calculated expired date spesifiec

238 views Asked by At

I have an Appsheet who consist two column, let's both named is Production Date and Expired Date. If column Production Date has 2 years of Expired Date then how the formula in appsheet to calculated it? Let say the example, Production Date is 31/10/2023, therefore Expired Date is 31/10/2025. I want the formula to consider leap years.

Before that, i have created a formula but it is not worked. There was note "DATE function is used incorrectly"

enter image description here

Does anyone know the formula to solve this problem? Please let me know.

1

There are 1 answers

0
Tedinoz On BEST ANSWER

Calculate a date two years from a given date

Assume that the given date is 31/10/2023 and the value is in cell A2.

DATE()

  • =DATE(YEAR(A2)+2,MONTH(A2),DAY(A2))
  • equals 31/10/2025

EOMONTH()

  • =EOMONTH(A2,24)
  • equals 31/10/2025

Calculate a date 35 months from a given date

Assume that the given date is 31/10/2023 and the value is in cell A2.

DATE()

  • =DATE(YEAR(A2),MONTH(A2)+35,DAY(A2)-1)
  • equals 30/09/2026

EOMONTH()

  • =EOMONTH(A2,35)
  • equals 30/09/2026

RESULTS

snapshot