Calculating A Date One Month In The Past

james.waller

New Member
Joined
Sep 10, 2009
Messages
19
Hi,
I am seeking a formula for cell B1 that will calculate the date one month prior to the date in cell A1. This becomes tricky because obviously not all months have the same number of days (February has 28, whilst April, June, September, November all have 30). If the date in cell A1 was the 31st March, many formulas will return the date 31st February in cell B1 (a non-existent date). In this instance I would like cell B1 to display 28th February.

Many thanks in advance for any help received,
James
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Actually that won't work:

Trying EDATE(A1,-1)

If you have a version prior to 2007 you need to install the Analysis TookPak
 
Upvote 0
Your initial suggestion did not address the 28th February problem. If the date in cell A1 reads the 31st March then the result in B1 is the 31st February (displayed as 3rd March).

However, after installing the toolpack (I'm using Excel 2000), your second solution worked perfectly. If I e-mail the spreadsheet to someone without the toolpack installed will this affect their ability to view the result?
 
Last edited:
Upvote 0
I can't recall if it will or not. I believe if someone does not have the toolpak installed it will not recalculate unless a change is made to the cell or cells that are impacted by the formula.
 
Upvote 0
I just checked, your advice is correct. The formula will continue to work with toolpack uninstalled until someone changes the contents of a data cell feeding the formula.

Thanks for all your help,
James
 
Upvote 0

Forum statistics

Threads
1,216,112
Messages
6,128,901
Members
449,477
Latest member
panjongshing

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