Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jim15
 
Posts: n/a
Default Calculate 1st of month date from existing date.


I want Excel to post a starting date which is 45 days (or other time
period) from an initial date. The rules a (1) If the date is under
15 (middle of the month) set the starting date to the 1st of the month
as calculated and (2) if the date is 15 or over, set starting date to
the 1st of the next month.

For instance, if my starting date is January 1st, 2006 and I want the
date 45 days from there, the answer is February 15, 2006. Reset the
calculated value of February 15, 2006 to February 1, 2006. If the date
was February 16, 2006 (46 days after start), set the date to March 1,
2006.

Thanks,

Jim15


--
Jim15
------------------------------------------------------------------------
Jim15's Profile: http://www.excelforum.com/member.php...o&userid=26300
View this thread: http://www.excelforum.com/showthread...hreadid=499558

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Calculate 1st of month date from existing date.

On Mon, 9 Jan 2006 15:32:44 -0600, Jim15
wrote:


I want Excel to post a starting date which is 45 days (or other time
period) from an initial date. The rules a (1) If the date is under
15 (middle of the month) set the starting date to the 1st of the month
as calculated and (2) if the date is 15 or over, set starting date to
the 1st of the next month.

For instance, if my starting date is January 1st, 2006 and I want the
date 45 days from there, the answer is February 15, 2006. Reset the
calculated value of February 15, 2006 to February 1, 2006. If the date
was February 16, 2006 (46 days after start), set the date to March 1,
2006.

Thanks,

Jim15



=StartDate+45+17*(DAY(StartDate+45)15)-
DAY(StartDate+45+17*(DAY(StartDate+45)15))+1


--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
Month to date sales - reset in new month??? [email protected] Excel Worksheet Functions 2 November 26th 05 08:18 PM
extract the month of a date gireesh Excel Discussion (Misc queries) 11 November 23rd 05 06:10 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM
How do I break a date range by month? HeatherDawn Excel Discussion (Misc queries) 2 September 1st 05 07:31 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM


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