Go Back

Get first day of month

The date is very important working on different financial and other worksheets. In many cases, we need to input the first day of a month. Microsoft Excel offers an easy fix to get the first day of the month. In this tutorial, we will learn how to get the first day of the month.

Figure 1. Example of How to Get First Day of Month

Syntax

=date-DAY(date)+1

How this Formula Works

Here, the formula contains the DAY function in order to extract the first day of a month. Excel stores dates as serial numbers. The day function returns a number from 1 to 31 to represent the month’s days. Here, we subtract this number from the serial number and add 1. As a result, we get the first day of the month.

Setting up Data  

The following database uses some sample dates. Column A has these dates.

Figure 2. The Sample Data Set

To get the first day of the months, we need to:

  1. Go to cell B2. Click on it with the mouse.
  2. Input the formula =A2-DAY(A2)+1 to the function box in B2.
  3. Press Enter.

Figure 3. Applying the Formula

  1. Drag the formula from cells B2 to B6.

This will return the first day of the month in column B.

Notes

We can use the EOMONTH formula to find the first day of the month as well. EOMONTH returns the last day of a month from a date. Here, we use the EOMONTH function to go to the last day of the previous month. Then, we add 1 to get the first day of the current month. To perform the previous example with the EOMONTH function, we need to use the formula =EOMONTH(A2,-1)+1 in cell B2.

Figure 4. Get First Day of Month Using EOMONTH

This will also show the first day of the month in column B.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I have a monthly spreadsheet broken down day by day. I want the last day of the month on one sheet to connect to the first day of the month on the next sheet so that the data is continuous, but just on different sheets. Many thanks
Solved by C. U. in 21 mins
I need to have all the days in the month change over automatically for a particular month when i enter in the first day of the month
Solved by B. J. in 13 mins
I need a formula for the drive spreadsheet to return the date of the first day of the month and the day from the start of the week. For example, every month one should be 01-07-2018 then 01-08-2018 The other should change every week 01-07-2018 to 08-07-2018 to 15-07-2018
Solved by O. D. in 21 mins

Leave a Comment

avatar