Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-04-2021, 11:42 AM
ProjectPlanner's Avatar
ProjectPlanner ProjectPlanner is offline Display week numbers Windows 10 Display week numbers Office 2019
Advanced Beginner
 
Join Date: Mar 2021
Location: UK
Posts: 75
ProjectPlanner is on a distinguished road
Default

Replace the semi-colons with a comma, so that the formula for finish is "Week " & CStr(1+datediff("w","1/1/20" & mid(Year([Finish]),3,2);[Finish]))

explanation.

mid(Year([Finish]),3,2) = extracts 2 characters from the year of the finish date starting at the 3rd character. E.g. for "04-Jun-21", year is 2021 and the formula extracts 21.

The 21 from above is then joined to "1/1/20" to form "1/1/2021".

Last edited by ProjectPlanner; 06-04-2021 at 11:43 AM. Reason: spelling error
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating 2 percentage fields to show the progress from week to week Loay harhash Project 0 04-03-2018 03:26 AM
Display week numbers Need Excel to recognize week numbers based on specific dates Ktyler Excel 5 02-06-2017 11:08 AM
Table date format: how display week number? codeghi Project 3 07-12-2015 02:40 PM
Display week numbers Display Numbers in CSV file over 15 digits linan123 Excel 1 06-24-2014 01:54 PM
Display Random Numbers as Transition greenbutton PowerPoint 0 03-09-2011 04:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:45 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