Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-08-2025, 04:18 AM
ArviLaanemets ArviLaanemets is offline Sub routine for generating second week number of current fortnight pay period Windows 8 Sub routine for generating second week number of current fortnight pay period Office 2016
Expert
 
Join Date: May 2017
Posts: 960
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

My advice is - have a calendar sheet in your workbook, and use it to calculate any dates matching any criterions you need.

The calendar sheet must have all dates as 1st column, from some start date until some future date (probably about 5 or 10 years in advance). And it may have any number of additional columns, where some characteristics are calculated when the table is created, and then saved as values. Like weekday number, week number (in format yyyyww), month number (in format yyyymm), a column which indicates state holidays (1 for holiday, 0 otherwise), etc.

Now, for your current task, you need to use VLOOKUP() function to calculate a week number from calendar table at date ReferenceDate+n*7 (where n is number of weeks you want to add)

Or, in case you want instead a date of specific weekday returned, you need to use SUMIFS() function to calculate the date in week your referenceStartDate belongs to (with referenceDate and weekday number as conditions), and add n*7 days to result.

And format the column with formula in your table as date.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating reports that shows an individuals planning per week Zweebo Project 1 02-18-2023 10:52 PM
Generating random number of integers in a specific manner HussainAlqatari Excel 2 10-16-2022 03:47 PM
Sub routine for generating second week number of current fortnight pay period Find number and words without a period and bold jeffreybrown Word 4 08-20-2019 05:58 PM
Sub routine for generating second week number of current fortnight pay period generating a number in Word John P Word 1 05-31-2012 10:29 PM
Sub routine for generating second week number of current fortnight pay period setting the number of spaced after a period. -- need a new dictionary as well Straitsfan Word 1 10-31-2011 06:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft