A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculate next year in different cell



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2009, 07:26 PM posted to microsoft.public.excel.misc
duketter
external usenet poster
 
Posts: 76
Default Calculate next year in different cell

Excel 2007 - I have a specific date in cell A1 for example. A1 - 3/31/2009.
I then want in cell G1 the exact next year calculated so for example cell G1
would show 3/31/2010. Then in cell H1 it would show 3/31/2011, I1 it would
show 3/31/2012.

The date in cell A1 changes so that is why I need the formula for this. I
have tried just putting the following formula in cell G1: =A1+365. However,
when I hit leap year it screws up the days and goes to 3/30/2012, 3/29/2016
etc.

How can I get this to calculate exactly the next year and input the data?

Thanks!
  #2  
Old May 13th, 2009, 07:37 PM posted to microsoft.public.excel.misc
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Calculate next year in different cell

In G1:

=DATE(YEAR(A1)+1,MONTH(A1),DAY(A1))

In H1, use the same formula, referencing G1 instead of A1, and then copy across.

HTH,
Bernie
MS Excel MVP


"duketter" wrote in message
news
Excel 2007 - I have a specific date in cell A1 for example. A1 - 3/31/2009.
I then want in cell G1 the exact next year calculated so for example cell G1
would show 3/31/2010. Then in cell H1 it would show 3/31/2011, I1 it would
show 3/31/2012.

The date in cell A1 changes so that is why I need the formula for this. I
have tried just putting the following formula in cell G1: =A1+365. However,
when I hit leap year it screws up the days and goes to 3/30/2012, 3/29/2016
etc.

How can I get this to calculate exactly the next year and input the data?

Thanks!



  #3  
Old May 13th, 2009, 09:01 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default Calculate next year in different cell

when I hit leap year it screws up the days

If the start date was 2/29/2008 what dates would you expect as you copy
across?

Would one year from 2/29/2008/ be 2/28/2009 or 3/1/2009?

--
Biff
Microsoft Excel MVP


"duketter" wrote in message
news
Excel 2007 - I have a specific date in cell A1 for example. A1 -
3/31/2009.
I then want in cell G1 the exact next year calculated so for example cell
G1
would show 3/31/2010. Then in cell H1 it would show 3/31/2011, I1 it
would
show 3/31/2012.

The date in cell A1 changes so that is why I need the formula for this. I
have tried just putting the following formula in cell G1: =A1+365.
However,
when I hit leap year it screws up the days and goes to 3/30/2012,
3/29/2016
etc.

How can I get this to calculate exactly the next year and input the data?

Thanks!



  #4  
Old May 14th, 2009, 01:04 AM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Calculate next year in different cell

On Wed, 13 May 2009 11:26:02 -0700, duketter
wrote:

Excel 2007 - I have a specific date in cell A1 for example. A1 - 3/31/2009.
I then want in cell G1 the exact next year calculated so for example cell G1
would show 3/31/2010. Then in cell H1 it would show 3/31/2011, I1 it would
show 3/31/2012.

The date in cell A1 changes so that is why I need the formula for this. I
have tried just putting the following formula in cell G1: =A1+365. However,
when I hit leap year it screws up the days and goes to 3/30/2012, 3/29/2016
etc.

How can I get this to calculate exactly the next year and input the data?

Thanks!


=MIN(DATE(YEAR(A1)+1,MONTH(A1)+{0,1},DAY(A1)*{1,0} ))

--ron
  #5  
Old May 14th, 2009, 03:49 AM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default Calculate next year in different cell

Since the OP mentioned using Excel 2007 I'd use:

A1 = base date

Entered in B1 and copied across:

=EDATE($A1,12*COLUMNS($B1:B1))

--
Biff
Microsoft Excel MVP


"Ron Rosenfeld" wrote in message
news
On Wed, 13 May 2009 11:26:02 -0700, duketter
wrote:

Excel 2007 - I have a specific date in cell A1 for example. A1 -
3/31/2009.
I then want in cell G1 the exact next year calculated so for example cell
G1
would show 3/31/2010. Then in cell H1 it would show 3/31/2011, I1 it
would
show 3/31/2012.

The date in cell A1 changes so that is why I need the formula for this. I
have tried just putting the following formula in cell G1: =A1+365.
However,
when I hit leap year it screws up the days and goes to 3/30/2012,
3/29/2016
etc.

How can I get this to calculate exactly the next year and input the data?

Thanks!


=MIN(DATE(YEAR(A1)+1,MONTH(A1)+{0,1},DAY(A1)*{1,0} ))

--ron



  #6  
Old May 14th, 2009, 11:40 AM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Calculate next year in different cell

On Wed, 13 May 2009 22:49:32 -0400, "T. Valko" wrote:

Since the OP mentioned using Excel 2007 I'd use:

A1 = base date

Entered in B1 and copied across:

=EDATE($A1,12*COLUMNS($B1:B1))


Good point -- I missed the "2007" specification.
--ron
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:40 AM.


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