Date and Time Formulas
Date and Time Formulas
Formula
Description(Result)
=A2A3
Calculatesthenumberofdaysfroma
certaindate(A2)untiltheendof
anothercertaindate(A3)
=A2TODAY()
Calculatethenumberofdaysfrom
thecurrentdatetoendofanother
certaindate(A2)
=TODAY()
Returnsthecurrentdate.
=TODAY()+5
Returnsthecurrentdateplus5days.
Forexample,ifthecurrentdateis
1/1/2008,thisformulareturns
1/6/2008.
=DATEVALUE("1/1/2030")TODAY()
Returnsthenumberofdaysbetween
thecurrentdateand1/1/2030.Note
thatcellA4mustbeformattedas
GeneralorNumberfortheresultto
displaycorrectly.
=DAY(TODAY())
Returnsthecurrentdayofthemonth
(131).
=MONTH(TODAY())
Returnsthecurrentmonthofthe
year(112).Forexample,ifthe
currentmonthisMay,thisformula
returns5.
=DATE(YEAR(A2)+3,MONTH(A2)+1,DAY(A2)+5)
Add3years,1month,and5daysto
thevalueincellA2.Example,ifA2=
6/9/2007,theformulareturns
7/14/2010.
=DATE(YEAR(A2)+1,MONTH(A2)+7,DAY(A2)+5) Add1year,7months,and5daysto
thevalueincellA2.Example,if
A2=6/9/2007,theformulareturns