LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Week Numbers

I am trying to get column headers in the format of YYWW
(ie. 0352, 0401, 0402 etc.) from the current date then 52
weeks/columns into the future.

I thought I had cracked it using the not very neat
solution of:-

Range("A1") = Right(DatePart("yyyy", Date), 2) & DatePart
("ww", Date)
then using a custom list to autofill the other columns.

0352 worked fine then 0401 came out as 041 and I'm back to
scatching my head again.

Any ideas?

Graham

 
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
week numbers [email protected] Excel Discussion (Misc queries) 3 May 15th 07 08:40 PM
Moving week numbers Bob Excel Worksheet Functions 0 November 3rd 05 10:27 AM
I need to =a set of numbers to a given week day.ie 6031 = Wed ect Budman Excel Discussion (Misc queries) 2 October 25th 05 10:14 PM
Week Numbers gregork Excel Discussion (Misc queries) 2 February 19th 05 01:56 PM
How do I use week numbers for sub-totalling? Tinpot Excel Discussion (Misc queries) 2 February 4th 05 04:25 PM


All times are GMT +1. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"