+ Reply to Thread
Results 1 to 5 of 5

How do I set Up Dates - WEEKLY?

  1. #1
    Registered User
    Join Date
    04-07-2009
    Location
    Los Angeles, United States
    MS-Off Ver
    Office 2008-Mac
    Posts
    49

    How do I set Up Dates - WEEKLY?

    I'm trying to do the following:

    a) Have one column show the date of each Saturday (starting 1/18/09) in each row, for example, 1/18/09, then 1/25/09, then 2/1/09, etc.

    b) Have each other column show the corresponding averages for the week prior(referencing data in another sheet)--how do I set it up to only calculate the average for each week in each row, for example, average(B1:B7), then next row =average(B8:B15).


    Thanks for your help guys!

  2. #2
    Registered User
    Join Date
    04-07-2009
    Location
    Los Angeles, United States
    MS-Off Ver
    Office 2008-Mac
    Posts
    49

    Re: How do I set Up Dates---WEEKLY????

    FYI: I'm running Office 2008 for Mac.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How do I set Up Dates - WEEKLY?

    This will work, type it into cell A1 and copy down column A.
    Every 7 cells from row 1 the average will be calculated else blanks will appear

    =IF(INT((ROW(A1)+6)/7)*7-6=ROW(A1),AVERAGE(B1:B7),"")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    04-07-2009
    Location
    Los Angeles, United States
    MS-Off Ver
    Office 2008-Mac
    Posts
    49

    Re: How do I set Up Dates - WEEKLY?

    That's perfect for the formula, but is there any way to do it so it enters on each line instead of skipping 6 lines in between? What about making excel automatically generate the week ending in column? I'd like it to look like this:

    Column A Column B
    1/18/09 | =average over that week
    1/25/09 | =average over that week
    2/1/09 | =average over that week


    Thanks!

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How do I set Up Dates - WEEKLY?

    Copy down column A

    =AVERAGE(INDIRECT("B"&INT((ROW(A1)+6)/7)*7-6&":B"&INT((ROW(A1)+6)/7)*7))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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