Skip to main content

Excel Formula: Get Same Date Last Year or Next Year

doc convert date to julia 1

In this tutorial, it provides two formulas to separately get the same date last year and next year based on the given date in Excel.

If you want to follow along with this tutorial, please download the example spreadsheet.
doc convert date to julia 1

Generic formula

Get same date last year

EDATE(date,-12)

Get same date next year

EDATE(date,12)

Syntaxt and arguments

Date: the cell reference or a date enclosed in double quotation marks that used to get the same date last year or next year.

Return value

The formula returns a serial number that represents the date.

Errors

If the argument date is not a numeric value or the date is earlier than 1/1/1900, the formula returns an error value #VALUE!.

How this formula works

To get the same dates last year separately based on the dates in list B3:B5, please use below formula:

Before using the formula, please format the cells as date format firstly.

Select the cells will place the results, click Home tab and choose Short Date or Long Date from the drop-down menu of Number Format.
doc convert date to julia 1

Then type formula:

=EDATE(B3,-12)

Or

=EDATE("4/12/2021",-12)

Press Enter key and drag auto fill handle down to cell D5 to get the same dates last year.
doc convert date to julia 1

To get the same date next year

=EDATE(B3,12)

Or

=EDATE("4/12/2021",12)

doc convert date to julia 1

Explanation

EDATE function: to get the date based on the adding number of months.


Relative Formulas

Relative Functions


The Best Office Productivity Tools


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations