Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default Calc Date Based on Year

I need a formula that calculates the end date of each calendar quater based
on the year. For example, if the year in A1 = 2009 then the dates in A2
through A5 should be 1/31/09, 4/30/09, 7/31/09 & 10/31/09 respectively. When
I change A1 to 2010, I need the dates to reflect 2010 dates. I would also
need the formulat to account for leap years if possible.

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Calc Date Based on Year

In A2 thru A5:

=DATE(A1,1,31)
=DATE(A1,4,30)
=DATE(A1,7,31)
=DATE(A1,10,31)

--
Gary''s Student - gsnu200901


"Johnny" wrote:

I need a formula that calculates the end date of each calendar quater based
on the year. For example, if the year in A1 = 2009 then the dates in A2
through A5 should be 1/31/09, 4/30/09, 7/31/09 & 10/31/09 respectively. When
I change A1 to 2010, I need the dates to reflect 2010 dates. I would also
need the formulat to account for leap years if possible.

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Calc Date Based on Year

Use

=DATE(2009,ROW(A1)*3+1,0)

and copy down 4 cells

--
__________________________________
HTH

Bob

"Johnny" wrote in message
...
I need a formula that calculates the end date of each calendar quater based
on the year. For example, if the year in A1 = 2009 then the dates in A2
through A5 should be 1/31/09, 4/30/09, 7/31/09 & 10/31/09 respectively.
When
I change A1 to 2010, I need the dates to reflect 2010 dates. I would also
need the formulat to account for leap years if possible.

Thank you



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default Calc Date Based on Year

Thank you. Just what I needed. I'll make sure to post feedback.

"Gary''s Student" wrote:

In A2 thru A5:

=DATE(A1,1,31)
=DATE(A1,4,30)
=DATE(A1,7,31)
=DATE(A1,10,31)

--
Gary''s Student - gsnu200901


"Johnny" wrote:

I need a formula that calculates the end date of each calendar quater based
on the year. For example, if the year in A1 = 2009 then the dates in A2
through A5 should be 1/31/09, 4/30/09, 7/31/09 & 10/31/09 respectively. When
I change A1 to 2010, I need the dates to reflect 2010 dates. I would also
need the formulat to account for leap years if possible.

Thank you

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with pulling data based on latest date for a year Satish Excel Discussion (Misc queries) 2 September 12th 08 07:44 AM
Year-to-date based on current month John in Toronto Excel Discussion (Misc queries) 2 May 9th 08 04:23 PM
Calc Prorated Cost based on Specific Days in a Given Month & Year Range (Revisited..) [email protected] Excel Discussion (Misc queries) 8 October 2nd 07 12:15 AM
Calculate a date based on period and year Sam Excel Worksheet Functions 5 August 27th 07 07:11 AM
How do I change date based on year Hannah Excel Worksheet Functions 4 April 11th 07 12:52 PM


All times are GMT +1. The time now is 02:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"