Skip to main content

How to show first or last day of previous month based on given date in Excel?

doc previous month last day first day 1
Supposing here is a list of dates, and how can you quickly show the first or last days of previous month based on these given dates as below screenshot shown? Here I introduce some tricks to help you easily display the first day or last day of the previous month in Excel.
Show first day of previous month based on given dates

Show last day of previous month based on given dates

arrow blue right bubble Show first day of previous month based on given dates

To show the first day of previous month, here is a formula can quickly solve.

Select a blank cell next to the given date, for instance, B2, and enter this formula =EOMONTH(A2,-2)+1, A2 is the given date, and then drag auto fill handle over the cells which you need to apply this formula. See screenshot:
doc previous month last day first day 4

Now the first day of previous month based on each given dates has been displayed.


arrow blue right bubble Show last day of previous month based on given dates

To find the last day of previous month by given dates, you can apply one of below formulas to a blank cell and then apply the formula to the cells you want by dragging the auto fill handle. See screenshot:

=EOMONTH(A2,-1)

=DATE(YEAR(A2),MONTH(A2),0)
doc previous month last day first day 3

Note: the formula =EOMONTH(A2,-1) will return 5-digits number. For changing the 5-digits number to standard date, please select it and click Home > Number Format > Short Date.

Relative Article:

How to easily enter dates without slashes in Excel?

Best Office Productivity Tools

Supports Office/Excel 2007-2021 and 365  |  Available in 44 Languages  |  Easy to Uninstall Completely

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns     Move Columns   |   Unhide Columns   |   Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need Is Just A Click Away...

Supercharge Your Excel Skills: Experience Efficiency Like Never Before with Kutools for Excel  (Full-Featured 30-Day Free Trial)

kte tab 201905

60-Day Unconditional Money-Back GuaranteeRead More... Free Download... Purchase... 

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day! (Full-Featured 30-Day Free Trial)
60-Day Unconditional Money-Back GuaranteeRead More... Free Download... Purchase... 
 
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