+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Start and End of 52 Weeks for 2009?

Hybrid View

binar Start and End of 52 Weeks for... 02-01-2009, 08:21 PM
shg Re: Start and End of 52 Weeks... 02-01-2009, 08:29 PM
binar Re: Start and End of 52 Weeks... 02-01-2009, 09:35 PM
shg Re: Start and End of 52 Weeks... 02-01-2009, 09:43 PM
binar Re: Start and End of 52 Weeks... 02-01-2009, 10:11 PM
  1. #1
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Start and End of 52 Weeks for 2009?

    Fellow Forum Members,

    How can I make Excel automatically autofill "column A" with 52 weeks for the entire year of 2009 as shown below.

    2/1/2009 - 2/7/2009
    2/8/2009 - 2/14/2009
    2/15/2009 - 2/21/2009
    2/22/2009 - 2/28/2009 and so on to Dec 2009.

    The week starts on Sunday (i.e 2/1/2009) and ends on Saturday (i.e. 2/7/2009) and both dates need to be in one cell.
    Any help greatly appreciated. Thanks.
    Last edited by binar; 02-01-2009 at 10:13 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Start and End of 52 Weeks for 2009?

    In some cell, put the start date (I used C1) and in A1 and copy down,

    =TEXT($C$1 + 7 * (ROW() - ROW(A$1)), "mm/dd/yyyy - ") & TEXT($C$1 + 7 * (ROW() - ROW(A$1)) + 6, "mm/dd/yyyy")

    Change ROW(A$1) to reference the first cell in which the formula appears.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Re: Start and End of 52 Weeks for 2009?

    Quote Originally Posted by shg View Post
    In some cell, put the start date (I used C1) and in A1 and copy down,

    =TEXT($C$1 + 7 * (ROW() - ROW(A$1)), "mm/dd/yyyy - ") & TEXT($C$1 + 7 * (ROW() - ROW(A$1)) + 6, "mm/dd/yyyy")

    Change ROW(A$1) to reference the first cell in which the formula appears.
    Shg,
    Thanks again. You helped me get out of another tight spot I was in because I couldn't find any post from the acrhive that matched what I wanted to do and Google wasn't any help either.

    I checked all the dates your formula automatically generates on a filldown against my 2009 calendar and all the dates match perfectly for the beginning and ending of each week ! Very impressive. I have to say you are genius.

    Moreover, I don't understand what you mean by:

    "Change ROW(A$1) to reference the first cell in which the formula appears. "

    I'm not too clear why I need to do this since everything seems to look okay to me. Attached is my file with your formula. If you see a problem please let me know. Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Start and End of 52 Weeks for 2009?

    Moreover, I don't understand what you mean by:
    If the formula starts in A5 instead of A1, change ROW(A$1) to ROW(A$5).

    If that sorts it for you, would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

  5. #5
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Re: Start and End of 52 Weeks for 2009?

    Quote Originally Posted by shg View Post
    If the formula starts in A5 instead of A1, change ROW(A$1) to ROW(A$5).

    If that sorts it for you, would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes
    Shg,
    Thanks. That sorts it out.

+ 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