Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 07-09-2025, 09:59 PM
Chris G Chris G is offline Sub routine for generating second week number of current fortnight pay period Windows 11 Sub routine for generating second week number of current fortnight pay period Office 2016
Novice
Sub routine for generating second week number of current fortnight pay period
 
Join Date: Oct 2023
Posts: 9
Chris G is on a distinguished road
Default

Thanks for answering my query.

Your suggestion would definitely be a way to input public holiday data for many years ahead, and use that to modify the data in a timesheet worksheet. I might look into doing that.

As for a formula for generating the week number of the second week for any fortnight during the year, I've since discovered this seems to work:

=ISOWEEKNUM(A2 + (MOD(ISOWEEKNUM(A2)-1,2)=0)*7)

Simply having a =NOW() formula in cell A2 to refer to, another cell with the above formula seems to return the correct value.

Cheers.
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