Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

13 Months Before Calculation 1

Status
Not open for further replies.

lewes

Technical User
Apr 7, 2008
14
GB
Hi, I'm using CR9.

Does anyone know what I could put in a formula to automatically calculate the first day of 13 months before. For example if today's date is 11 April 2008, I want the result to be 01 April 2007.

I'd be grateful for any help.

Thanks
 
What do you want to happen on May 1 2008?

Do you still want April 1 2007 - or May 1 2007?
 
Hi MJRBIM,

In answer to your question for May 1 2008, I want May 1 2007.

Thanks
 
Try this

dateserial(year(currentdate)-1,month(currentdate),1)

-lw
 
Thanks kskid this worked perfectly. I even managed to adjust it so it picks the last day of the month aswell.

L
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top