Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Keep 6 months of dates from Today to (Today + 6 Months)


I would like to create a macro that will make sure the Sheet1 worksheet in
Column (A) Dates always has 6 months of data. The dates are sorted in
ascending
order. There should not be dates less than today's date in Column (A) Dates
field.
When dates are deleted, dates will need to add to the Column (A) Dates to
ensure
there is 6 months of dates in the worksheet.

Listed below is example.

Please help me complete this task.

Thanks,


Example:
Today is: 10/09/07
Column (A) Dates should be: 9/18/07 - 3/18/07
Delete Rows with Dates : 9/18/07 - 10/08/07
Added Rows Dates : 3/19/07 - 4/09/07

Net Results in Column (A) Dates: Today Date - (Today Date + 6 months)
or
Net Results in Column (A) Dates: 10/09/07 - 4/09/07
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Keep 6 months of dates from Today to (Today + 6 Months)

Here are some websites that provide an abundance of information
on using dates on a worksheet. Perhaps you can find an answer
to your problem at one of these.

http://www.cpearson.com/excel/datetime.htm

http://support.microsoft.com/kb/214094

http://www.mrexcel.com/archive/Dates/index.html

"Joe K." wrote:


I would like to create a macro that will make sure the Sheet1 worksheet in
Column (A) Dates always has 6 months of data. The dates are sorted in
ascending
order. There should not be dates less than today's date in Column (A) Dates
field.
When dates are deleted, dates will need to add to the Column (A) Dates to
ensure
there is 6 months of dates in the worksheet.

Listed below is example.

Please help me complete this task.

Thanks,


Example:
Today is: 10/09/07
Column (A) Dates should be: 9/18/07 - 3/18/07
Delete Rows with Dates : 9/18/07 - 10/08/07
Added Rows Dates : 3/19/07 - 4/09/07

Net Results in Column (A) Dates: Today Date - (Today Date + 6 months)
or
Net Results in Column (A) Dates: 10/09/07 - 4/09/07

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
how to calculate x months from today Gene Excel Worksheet Functions 6 June 17th 09 12:52 AM
calculate 18 months from today. In excel. How? roke Excel Discussion (Misc queries) 4 April 21st 09 03:26 PM
counting dates in a column that less than 6 months from today Kaye Excel Discussion (Misc queries) 2 February 11th 06 07:10 PM
calculating number of months from today JNW Excel Worksheet Functions 5 September 15th 05 10:01 PM
sum values between today and 6 months prior Qaspec Excel Worksheet Functions 3 January 19th 05 08:17 PM


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