+ Reply to Thread
Results 1 to 3 of 3

Date Problems

Hybrid View

  1. #1
    Registered User
    Join Date
    03-28-2008
    Posts
    1

    Date Problems

    I am working on a file where the date format is given at YYYY/WW

    The Year is pretty self explanatory

    The week, however, is a little different.

    --Week 01 is the first week in February.
    --Week 02 is the second week in February, beginning with the first Saturday, if the first Saturday wasn't 02.-01-YYYY

    So if the Date if 200801, then the Dating is 1-27-08 through 2-01-08.

    With these stipulations, can any help me convert my Date format into Begin and End Date in a DD-MM-YY format.

    Thanks in advance for any help I can get.
    Best,
    M

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Could you post a copy of your workbook? I'd like to see how exactly this is laid out and play with a couple ideas. Thanks.
    Without seeing it, the easiest idea seems to be, if these weeks are consecutive in a column, enter your beginning date of 1/26/08 (if your weeks begin on Saturday) into B1, then C1 would be =B1+6. B2 would be =C1+1 and you would drag down the formulas in B2 and C1 as far as you need.
    Last edited by darkyam; 03-28-2008 at 12:11 PM.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by mchesnu
    So if the Date if 200801, then the Dating is 1-27-08 through 2-01-08.
    If weeks start on Saturdays shouldn't 200801 start on 1-26-08?

    Presumably 2008/51 would be a date in 2009?

    Assuming that's the case then with your data in A2 (in either YYYY/WW or YYYYWW format) try this formula in B2 to give start date of that week

    =DATE(LEFT(A2,4),2,RIGHT(A2,2)*7-5)-WEEKDAY(DATE(LEFT(A2,4),2,2))

    obviously if you want end date too then you can just add 6 days, i.e. in C2

    =B2+6

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1