LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Date Formula

=DATE(YEAR(A1),MONTH(A1)+3,DAY(A1)) is one option for a simple 3-month
adavance, but you'll need to ask yourself the question as to what date you
want for 3 months after 30th November, for example. By the look of your
examples, you want a different answer from Excel's, and you'll see a number
of suggestions for alternative approaches in recent messages on this group
and related ones.

=IF(MONTH(DATE(YEAR(A4),MONTH(A4)+3,DAY(A4)))MONT H(A4)+3,DATE(YEAR(A4),MONTH(A4)+4,0),DATE(YEAR(A4) ,MONTH(A4)+3,DAY(A4)))
may be an option, but there are certain to be other approaches.

You haven't said how you would treat a situation where your starting point
doesn't fit in your maintenance schedule, for example if A1 were
mid-February, but perhaps you've got Data Validation on your data entry to
prevent this?
--
David Biddulph

"Karen" wrote in message
...
How would a formula be written to add a defined number of months but not
by
days, like "[date in cell]A1+3 (months)" instead of "[date in cell]A1+90
(days, which is the default way Excel deals with dates)"?

I have a spreadsheet that has quarterly maintenance that can be performed
anytime in January, April, July, and October, but it must be performed in
those months specifically. If I set up the formula as "=[date in
cell]A1+90"
for the next quarterly maintenance due, the month will change depending on
how many days in the months of the quarter and when in the month
maintenance
was performed.

Cell A1 date entered = 1/1/07
Cell A2 formula is "=A1+90," Cell A2 value is "Apr-07" . which is
correct,
according to the desired schedule. However.

Cell A2 date entered = 1/31/07
Cell A2 formula is "=A1+90," Cell A2 value is "May-07" . which is
incorrect;
maintenance should be performed consistently in April.

Also,
Cell A2 date entered = 4/1/07, Cell A2 formula is "=A1+90," Cell A2 value
is
"Jun-07" . which is incorrect; maintenance should be performed
consistently
in July.

I hope that I am explaining myself correctly - ANY help would be greatly
appreciated, Karen







 
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
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM


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