• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Formula for Dates

nandhamnk

New Member
Hi all,


I required a formula to arrive at exactly correct date before & after the date.

Example:


Date of birth :07-Aug-1983

Exact date before 12 years before birth (Answer) - 22-Jul-1971

Exact date after 4 years from birth (Answer) - 22-Jul-1987


Request your support please!
 
Wont it be 8th august'71 (for before 12 years)and 6th' august'87(for after 4 years)


After 4 years: A1+((365.25*4)-1)


before 12 years =A1+((365.25*4)-1)


where A1 is your date.
 
Won,t it be easier to uae date function like this:

=DATE(YEAR(A1)+4,MONTH(A1),DAY(A1)) to get a date after 4 year and

=DATE(YEAR(A1)-12,MONTH(A1),DAY(A1)) to get a date 12 years in the past?!
 
Back
Top