dates

loggiaaj

Board Regular
Joined
May 8, 2006
Messages
66
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
Joined
Jul 8, 2002
Messages
11,547
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
Joined
Apr 19, 2005
Messages
23,707
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
Joined
Jul 8, 2002
Messages
11,547
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.
 

loggiaaj

Board Regular
Joined
May 8, 2006
Messages
66

ADVERTISEMENT

I got a #NAME?
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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
 

Forum statistics

Threads
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.
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
Top