How to Calculate First Day of Previous Month in Excel (2 Methods)

Method 1 – Use the EOMONTH Function to Calculate the First Day of the Previous Month

Step 1:

  • Enter the following formula in cell C5.
=EOMONTH(B5,-2)+1

: Use the EOMONTH Function to Calculate the First Day of the Previous Month

Formula Breakdown:

  • The EOMONTH function returns the serial number for the month’s last day, which is the specified number of months before or after the start date.
  • Press ENTER.

The formula returns the first day of the last month for the date in cell B5.

: Use the EOMONTH Function to Calculate the First Day of the Previous Month

Step 2:

  • Use the Fill Handle tool for the remaining cells.

: Use the EOMONTH Function to Calculate the First Day of the Previous Month

The formula returns the first day of each previous month for the dates in the Date.

: Use the EOMONTH Function to Calculate the First Day of the Previous Month


Method 2 – Calculate the First Day of the Previous Month Combining the DATE, YEAR, and MONTH Functions in Excel

Step 1:

  • Enter the following formula in cell C5.
=DATE(YEAR(B5),MONTH(B5)-1,1)

excel first day of previous month

Formula Breakdown:

  • The DATE function returns the date with the given year, month, and day.
  • The YEAR function returns the year corresponding to a date.
  • The MONTH function returns the month of a date represented by a serial number.
  • Press ENTER.

The formula returns the first day of the last month for the date in cell B5.

excel first day of previous month

Step 2:

  • Drag the fill handle of cell C5 downward to apply the formula to the rest of the cells.

The formula returns the first day of each previous month for the dates in the Date.

Calculate the First Day of the Previous Month Using the DATE, YEAR, and MONTH Functions

We can also use the same formula with the TODAY() function to find out the first day of the month preceding the current month.

  • Enter the following formula in cell C5.
=DATE(YEAR(TODAY()),MONTH(TODAY())-1,1)

Calculate the First Day of the Previous Month Using the DATE, YEAR, and MONTH Functions

  • Press ENTER.

The formula returns the first day of the month preceding the current month.

excel first day of previous month

Read More: Get First Day of Month from Month Name in Excel


Bonus: Merge the DATE, YEAR, and MONTH Functions to Calculate the Last Day of the Previous Month in Excel

With this method, we can calculate the last day of the previous month.

Step 1:

  • Enter the following formula in cell C5.
=DATE(YEAR(B5),MONTH(B5),0)

  • Press ENTER.

The formula returns the last day of the previous month for the date in cell B5.

excel first day of previous month

Step 2:

  • Use the Fill Handle tool for the remaining cells.

Use the DATE, YEAR, and MONTH Functions to Calculate the Last Day of the Previous Month

The formula returns the last day of each previous month for the dates in the Date column.

excel first day of previous month

Read More: Excel Formula for Current Month and Year


Download Practice Workbook


Related Articles


<< Go Back to Excel MONTH Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
ASM Arman
ASM Arman

Abu Saleh Arman is a Marine engineer and Excel & VBA expert. He loves programming with VBA. He finds VBA programming a time-saving tool to manipulate data, handle files, and interact with the internet. He is very interested in Python, MATLAB, PHP, Deep Neural Networks, and Machine Learning, showcasing his diverse skill set. Arman holds a B.Sc in Naval Architecture & Marine Engineering from BUET, Bangladesh. However, he switched to a content developer, where he writes technical content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo