Formula to find the first day of the previous month

ShannP

New Member
Joined
May 3, 2011
Messages
3
Hi All

I am new here and really hoping someone can help me. I am struggling to write a formula that will find the first date of the previous month.

IE today 04/5/11 therefore I need formula to return a date of 01/04/11.

All help would be greatly appreciated :)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
It's so important to post the version of Excel that you are using because date math gets better and easier with each successive version.

With
A1: a date
If you have Excel 2007 or later, this formula returns the 1st of the previous month
Code:
B1: =EOMONTH(A1,-2)+1
Does that help?
 
Upvote 0
It's so important to post the version of Excel that you are using because date math gets better and easier with each successive version.

With
A1: a date
If you have Excel 2007 or later, this formula returns the 1st of the previous month
Code:
B1: =EOMONTH(A1,-2)+1
Does that help?


Oops my bad, I totally forgot to mention I was using 2007. And yes that is exactly what I was after :)
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top