#1   Report Post  
drschieff
 
Posts: n/a
Default Date Function

I am trying to enter an date in cell A2 (i.e. 12/31/04)
I want the date for the last day of the next month to automatically appear
in cell A33 (1/31/05), the last day of the next month to appear in cell A34
(2/28/05), and to continue this pattern for the next 60 months.
If I change the date in cell A2 (i.e. 2/28/05), I would like all the dates
in A33, A34 etc to automatically update (A33 would become 3/31/05, A34 would
become 4/30/05, etc etc).
I tried using the format =DATE(Year(A2),MONTH(A2+1),DAY(A2)), but that gives
me 1/31/04 in Cell A33 (it doesn't update the year)
Any suggestions?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=DATE(YEAR(A2),MONTH(A2)+2,0)

Regards,

Peo Sjoblom

"drschieff" wrote:

I am trying to enter an date in cell A2 (i.e. 12/31/04)
I want the date for the last day of the next month to automatically appear
in cell A33 (1/31/05), the last day of the next month to appear in cell A34
(2/28/05), and to continue this pattern for the next 60 months.
If I change the date in cell A2 (i.e. 2/28/05), I would like all the dates
in A33, A34 etc to automatically update (A33 would become 3/31/05, A34 would
become 4/30/05, etc etc).
I tried using the format =DATE(Year(A2),MONTH(A2+1),DAY(A2)), but that gives
me 1/31/04 in Cell A33 (it doesn't update the year)
Any suggestions?

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
Today() or Date() function help julisimo Excel Discussion (Misc queries) 8 January 3rd 05 04:19 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM
Excel :Save date function Elodie Excel Worksheet Functions 1 November 25th 04 04:25 PM
Formula for date function Markitos Excel Worksheet Functions 15 November 10th 04 02:05 AM
Another date function question mendozalaura Excel Worksheet Functions 1 November 5th 04 04:26 PM


All times are GMT +1. The time now is 09:27 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"