Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ubi bene ..
 
Posts: n/a
Default formula "next month same day"

Hi Wizards,
I struggled a lot trying to find out formula returning "next month same day"
but also considering "next month END" i.e. A1: 29-Feb-04, A2: 31-Mar-04, A3:
30-Apr-04.
I found a way a month ago playing with the date functions (I think) but lost
the file and am not able to reproduce the formula now.
Anybody?..
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default formula "next month same day"

Same day as when? Today?

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

if you want the last day of the next month use

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


--

Regards,

Peo Sjoblom



"Ubi bene .." wrote in message
...
Hi Wizards,
I struggled a lot trying to find out formula returning "next month same

day"
but also considering "next month END" i.e. A1: 29-Feb-04, A2: 31-Mar-04,

A3:
30-Apr-04.
I found a way a month ago playing with the date functions (I think) but

lost
the file and am not able to reproduce the formula now.
Anybody?..



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default formula "next month same day"

On Wed, 19 Oct 2005 14:11:04 -0700, "Ubi bene .."
wrote:

Hi Wizards,
I struggled a lot trying to find out formula returning "next month same day"
but also considering "next month END" i.e. A1: 29-Feb-04, A2: 31-Mar-04, A3:
30-Apr-04.
I found a way a month ago playing with the date functions (I think) but lost
the file and am not able to reproduce the formula now.
Anybody?..



=DATE(YEAR($A$1),MONTH($A$1)+COUNT($A$1:A1),MIN(DA Y($A$1),
DAY(DATE(YEAR($A$1),MONTH($A$1)+COUNT($A$1:A1)+1,0 ))))

With the first date in A1, enter the formula in A2 and copy/drag down as
needed.


--ron
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
inputing different days in a month for a formula I need to sort the items by their item Excel Discussion (Misc queries) 5 August 26th 05 12:05 PM
Formula for # of sales days in a month? Kerry Rosvold Excel Worksheet Functions 2 June 1st 05 09:11 PM
Need formula for budgeting payroll taxes. rfhorn Excel Worksheet Functions 10 April 5th 05 04:11 PM
Date formula Mike R Excel Discussion (Misc queries) 7 January 20th 05 10:07 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 02:52 PM.

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"