#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Date Formula

I posted a question on this board last week and BJ gave me a date formula
that helped me out with a problem I was having. I need to know how to alter
the formula for a different scenario.

BJ gave me the formula: =DATE(YEAR(A1),CEILING(MONTH(A1),3)+1,1)
I need to alter it to suit the following scenario. I thought that I could
just change the 3 to a 6 for a six month interval and its not working.

HELP

Scenario:
I can't seem to figure out how to set up the cell formulas when I want other
maintenance intervals to be scheduled in particular months, no matter when
the previous maintenance was performed. For instance, annual maintenance
should occur once a year (every 12 months, ideally); and it also should stay
consistent. So, for example, how do I go about writing the formula if I want
to ensure that the €œNext Annual Due" date is always in the month of June,
even if the previous maintenance was performed very late (say, January of the
same year)?

Original Posting
http://www.microsoft.com/communities...xp=&sloc=en-us


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Date Formula

maybe
=if(month(a1)5,date(year(A1)+1,6,1),date(year(A1) ,6,1))
You can change the 5 depending on your criteria as to when the next one will
be next year.

"Karen" wrote:

I posted a question on this board last week and BJ gave me a date formula
that helped me out with a problem I was having. I need to know how to alter
the formula for a different scenario.

BJ gave me the formula: =DATE(YEAR(A1),CEILING(MONTH(A1),3)+1,1)
I need to alter it to suit the following scenario. I thought that I could
just change the 3 to a 6 for a six month interval and its not working.

HELP

Scenario:
I can't seem to figure out how to set up the cell formulas when I want other
maintenance intervals to be scheduled in particular months, no matter when
the previous maintenance was performed. For instance, annual maintenance
should occur once a year (every 12 months, ideally); and it also should stay
consistent. So, for example, how do I go about writing the formula if I want
to ensure that the €œNext Annual Due" date is always in the month of June,
even if the previous maintenance was performed very late (say, January of the
same year)?

Original Posting
http://www.microsoft.com/communities...xp=&sloc=en-us


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 447
Default Date Formula

Thank you so much for your help BJ - The formula didn't work. If you are
still willing to help me, I'll try to explain it a different way.

For this particular 6 months schedule, Im looking for a formula that will
change to the specific months of April or October (whichever is next)
whenever maintenance is performed.

E.g. €¦ If the €œA1€ date is in any of these months: Oct. 07, Nov. 07, Dec.
07, Jan. 08, Feb. 08, Mar. 08, then the next scheduled maintenance should be
Apr. 08

If the €œA1€ date is in any of these months: Apr. 08, May 08, June 08, July
08, Aug. 08, Sept. 08, then the next scheduled maintenance should be Oct. 08

Im also looking for a 12-months formula that will change to a
specific/assigned month of the year, no matter when maintenance is performed.


E.g., if I want the assigned annual maintenance to be May €¦
If the €œA1€ date is in any of these months: May 07, June 07, July 07, Aug.
07, Sept. 07, Oct. 07, Nov. 07, Dec. 07, Jan. 08, Feb. 08, Mar. 08, Apr. 08,
then the next scheduled maintenance should be May 08

If the €œA1€ date is in any of these months: May 08, June 08, July 08, Aug.
08, Sept. 08, Oct. 08, Nov. 08, Dec. 08, Jan. 09, Feb. 09, Mar. 09, Apr. 09,
then the next scheduled maintenance should be May 09

Thank you again, Karen

"bj" wrote:

maybe
=if(month(a1)5,date(year(A1)+1,6,1),date(year(A1) ,6,1))
You can change the 5 depending on your criteria as to when the next one will
be next year.

"Karen" wrote:

I posted a question on this board last week and BJ gave me a date formula
that helped me out with a problem I was having. I need to know how to alter
the formula for a different scenario.

BJ gave me the formula: =DATE(YEAR(A1),CEILING(MONTH(A1),3)+1,1)
I need to alter it to suit the following scenario. I thought that I could
just change the 3 to a 6 for a six month interval and its not working.

HELP

Scenario:
I can't seem to figure out how to set up the cell formulas when I want other
maintenance intervals to be scheduled in particular months, no matter when
the previous maintenance was performed. For instance, annual maintenance
should occur once a year (every 12 months, ideally); and it also should stay
consistent. So, for example, how do I go about writing the formula if I want
to ensure that the €œNext Annual Due" date is always in the month of June,
even if the previous maintenance was performed very late (say, January of the
same year)?

Original Posting
http://www.microsoft.com/communities...xp=&sloc=en-us


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
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 08:46 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"