Skip to main content

Excel Formula: Get First Day or Last Day of Month from A Date

doc convert date to julia 1

In this tutorial, it provides formulas to return the first day or last day of month from 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

Get first day of month from a date

 

Generic formula:

date-DAY(date)+1

Syntaxt and Arguments

Date: the date that is used to find the first day of month.

Return Value

It returns the first day of the current month in date format.

How this formula works

Use below formula to get the first day of month from the date in cell B3:

=B3-DAY(B3)+1

Press Enter key to get the result.
doc convert date to julia 1

Explanation

DAY function: returns the day from the given date as number.

Since the date is stored as number in Excel, 2/12/2019 is stored as 43508 in Excel.

=B3-DAY(B3)+1
=43508-DAY(2/12/2019)+1
=43508-12+1
=43496+1
=43497 which is shown as date 2/1/2019

Get last day of month from a date

 

Generic Formula

EOMONTH(date,0)

Syntax and Arguments

Date: the date that is used to find the last day of month.

Return Value

It returns the last day of current month in number format.

How the formula works

Use below formula to get the last day of month from the date in cell B3:

=EOMONTH(B3,0)

Press Enter key to get the result. The result displays as a 5-digit number.

doc convert date to julia 1

Keep the formula result selected, and press Ctrl + 1 to display the Format Cells dialog, then under Number tab, click Date from the Category list, choose the date type you want to display in the Type section.
doc convert date to julia 1

Click OK, the result is shown as date.
doc convert date to julia 1

Explanation

EOMONTH function: gets the last day of month n months in future or past.


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden 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 Excel Cells ...)  |  ... and more

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

Description


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