+ Reply to Thread
Results 1 to 6 of 6

Assign weekly date values to date list

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Assign weekly date values to date list

    I have a dump with several thousand lines. Column A has dates going back to 2009. I need to assign against each date in column A a weekly 'grouped' date in column B. So there may be five thousand lines with dates in column A ranging from 1/1/2010 to 12/31/2010 and I need to have assigned in B one of the 52 weeks into which they fall i.e. 1/1/2010 or 1/8/2010 or 1/15/2010 etc etc up to 12/31/2010.

    I can't use nested IF statements because I will run out of nests, I can't use VBA because security settings, so I will need to do it by forumla.

    Anyone any ideas?
    Last edited by BRISBANEBOB; 11-16-2012 at 02:21 AM.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Assign weekly date values to date list

    Hi
    what about the WEEKNUM function - can that help?
    do you need to specify years as well?

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Assign weekly date values to date list

    Unfortunately I also need the year. In addition (something not mentioned by me in the first post) I am going to need to group them into fortnightly periods too, also into the mm/dd/yyyy fortnight into which they fall....

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Assign weekly date values to date list

    I am unable to understand your requirement which you described and requesting you to attach a sample file with expected output for my better understanding to get solution for your query.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Assign weekly date values to date list

    ok - what do you actually want to return.

    for example, this formula will return 2012_03 for 18 January 2012 - this will create a sortable column based on year and week

    Please Login or Register  to view this content.

    this one should do the same but with fortnights, not weeks:

    Please Login or Register  to view this content.
    Last edited by NickyC; 11-16-2012 at 02:10 AM.

  6. #6
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Assign weekly date values to date list

    Now that is clever. Thank you so much NickyC, kudos will rain down upon you.

+ 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