Note: The other languages of the website are Google-translated. Back to English
English English

Excel Formula: Get Same Date Last Month or Next Month

doc convert date to julia 1

If you want to get the same date last month or next month, the EDATE function in Excel can help you.

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 month

EDATE(date,-1)

Get same date next month

EDATE(date,1)

Syntaxt and arguments

Date: the cell reference or a date surrounded by double quotation marks for getting the same date last month or next month.

Return value

The formula returns a 5-digits numeric value, please format the result as a date format as you like.

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 month or next month based on the dates in list B3:B6, please choose below formulas as you need:

Get the same date last month

=EDATE(B3,-1)

Or

=EDATE("1/2/2021",-1)

Get the same date next month

=EDATE(B3,1)

Or

=EDATE("1/2/2021",1)

Press Enter key and drag auto fill handle down to other cells.
doc convert date to julia 1 doc convert date to julia 1

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

Explanation

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


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations