# Formula For Dates

1. ## Formula For Dates

Good Day

I please need some help,

I am looking for a formula that will pull through a set date, if the dates chosen fall between certain dates. E.g below:

The rules are: 1 Jan 2010 to 30 June 2010 - should pull through 30 June 2016
1 July 2010 - 30 June 2011 - should pull through 30 June 2017
1 July 2011 - 30 June 2012 - should pull through 30 June 2018
And so on.

My question is if 1 April 2010 is select as the date, what formula do I use to check if 1 April 2010 is between 1 Jan 2010 and 30 June 2010 in order to give me 30 June 2016?

2. ## Re: Formula For Dates

=if(and(a1>=datevalue("01/06/2010"),a1<=datevalue("30/06/2010"),"30/06/2016",if(and(a1>=datevalue("01/07/2010"),a1<=datevalue("30/06/2011"),"30/06/2017",if(and(a1>=datevalue("01/07/2011"),a1<=datevalue("30/06/2012"),"30/06/2018")))

3. ## Re: Formula For Dates

If A1 has date,

``Please Login or Register  to view this content.``

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1