# Get first day of previous month

=EOMONTH(date,-2)+1

To get the first day of the previous month for a given date, you can use a simple formula based on the EOMONTH function.

In the example shown, the formula in cell B5 is:

=EOMONTH(B5,-2)+1

### How this formula works

The EOMONTH function returns the last day of a month based on a given date. The 2nd argument is *months*, which specifies how many months in the future or past to move before returning the last day. By traveling back 2 months, then adding one day, we can calculate the first day of the previous month from any given date.

In the example shown, months is supplied as -2, which causes EOMONTH to return 4/30/2015. Then, 1 day is added to get 5/1/2015.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.