Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Bi-weekly date calculation

How can I programmatically calculate each bi-weekly occurrance in a
worksheet based on a start date of lets say...01/09/2004 for the whole
year?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Bi-weekly date calculation

On Wed, 7 Jan 2004 09:51:42 -0600, rocketslinger
wrote:

How can I programmatically calculate each bi-weekly occurrance in a
worksheet based on a start date of lets say...01/09/2004 for the whole
year?


---
Message posted from http://www.ExcelForum.com/


A1: 01/09/2004
A2: =A1+14

Copy/drag down as needed


--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Bi-weekly date calculation


-----Original Message-----
How can I programmatically calculate each bi-weekly

occurrance in a
worksheet based on a start date of lets say...01/09/2004

for the whole
year?


---
Message posted from http://www.ExcelForum.com/

.


Guess it depends on what you are trying to do... If all
you need is a range of cells with the dates in them, just
make a formula and add 14 to the date! If you need to use
program code (VBA) to somehow work with those dates, then
this would do it:

Sub BiWeeklyDates(StartDate as Range)
Dim NewDate as Date
NewDate = StartDate + 14
While NewDate <= Date(Year(StartDate).Value,12,31)
' Put any code you need here to work with the
calculated date
NewDate = StartDate + 14
Wend
End Sub
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
Chart displaying weekly data group in months without weekly labels smcgee01 Charts and Charting in Excel 7 September 11th 08 10:53 PM
Bi-weekly date dilema Spongebob Excel Worksheet Functions 8 September 10th 08 03:27 PM
Bi-weekly date formatting Surveyor Excel Discussion (Misc queries) 2 March 14th 08 10:15 PM
Weekly Date Function(s) Jay Excel Worksheet Functions 2 September 12th 06 01:14 AM
Date Range -- Weekly Brad Payne Excel Worksheet Functions 2 October 20th 05 11:00 AM


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