+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Repeating an Array

  1. #1
    Registered User
    Join Date
    05-10-2011
    Location
    new york, ny
    MS-Off Ver
    Excel 2007
    Posts
    6

    Repeating an Array

    I have a formula but cannot figure out how to have it repeat easily.

    =SUM('Overview of Hours 2011 Nametop'!C5:C35)
    =SUM('Overview of Hours 2011 Nametop'!D5:D35)
    =SUM('Overview of Hours 2011 Nametop'!E5:E35)
    that goes across to column BJ

    now i need to repeat the formula starting 52 cells away like
    =SUM('Overview of Hours 2011 Nametop'!C57:C87)
    =SUM('Overview of Hours 2011 Nametop'!D57:D87)
    =SUM('Overview of Hours 2011 Nametop'!E57:E87)

    I've been trying different functions like Offset and index, but havent been able to figure it out
    Last edited by Ryan M; 05-10-2011 at 02:16 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Repeating an Array

    Try this formula:

    Please Login or Register  to view this content.
    adjust the bottom of the ranges $1000 to last row in your whole database.

    Then copy across and then down...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-10-2011
    Location
    new york, ny
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Repeating an Array

    Great. How can I transpose it?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Repeating an Array

    Try:

    Please Login or Register  to view this content.
    copied down and across

  5. #5
    Registered User
    Join Date
    05-10-2011
    Location
    new york, ny
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Repeating an Array

    you are incredible....

    I get c5:C607 (which i changed from 1000) is my range. This i have no idea: 1+((ROW(A1)-1)*52), i get that : is the next part of the series, the 1 + and the 31+ are incremental range increases.....can you maybe explain it a little more?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Repeating an Array

    If you use the Evaluate Formula feature in the Formulas tab, you can step through the formula to see how it gets to the point of calculation....it would be easier to understand and follow that way....

    The 1+((ROW(A1)-1)*52) is basically like a Step in a vba macro.. is "looping" through the range and stepping by 52 cells...

    The 31+((ROW(A1)-1)*52 is the size of the range to sum (it captures the last cell in the group range to include in the sum (i.e. 31 cells offset from the next step of 52 cells....

  7. #7
    Registered User
    Join Date
    05-10-2011
    Location
    new york, ny
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Repeating an Array

    Seriously, i'm astounded....incredible. Thank you for the timely posts as well....You made my day...Thank you so much..

+ 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