# dates

#### loggiaaj

##### Board Regular
I want to take the date to the left and minus 3 months; I used the cell ref. - 90 (3 months @ 30 days per mo.) - this worked for the month but not the day; e.g. the days are off by 1 or so.

How can I calculate the date to 3 months prior - but keep the current day the same ??

tks

Tony

6/27/2010 3/28/2010
8/15/2011 5/16/2011
10/3/2010 7/4/2010
10/31/2010 8/1/2010
12/25/2011 9/25/2011

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### GlennUK

##### Well-known Member
What about when the date doesn't have a matching day in that month 3 months prior? May 30th for example.

#### Richard Schollar

##### MrExcel MVP
Something like:

=EDATE(A1,-3)

should work.

Richard

PS Which will default to end of month if the calculated date does not include the relevant day, as Glenn pointed out

#### GlennUK

##### Well-known Member
That's the one I use Richard, but some people want strange things to happen when the day doesn't exist in the target month.

Oh, must say that the Analysis Toolpak must be ticked in the Add-Ins list for Edate to work.

I got a #NAME?

#### Richard Schollar

##### MrExcel MVP
You probably haven't got the Analysis Toolpak installed - as Glenn said, you need to check it off in Tools>Add-Ins and check it in the list.

Richard

#### loggiaaj

##### Board Regular
thank you thank you - IT WORKED !!!

Replies
5
Views
80
Replies
8
Views
200
Replies
4
Views
432
Replies
3
Views
154
Replies
6
Views
223

1,141,912
Messages
5,709,287
Members
421,625
Latest member
Natalie1107

### 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.

### Which adblocker are you using?

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

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