+ Reply to Thread
Results 1 to 11 of 11

Filling Right across Multiple Intervals

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Filling Right across Multiple Intervals

    Hello,

    I have monthly data points for a 3-year period in one table and would like to automatically summarize the annual sums in a separate table. What formula should go in the first cell (C11) (in the attached) so that when i scroll right, it automatically sums in 12-month intevals?

    Many Thanks,
    Attached Files Attached Files

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

    Re: Filling Right across Multiple Intervals

    Here's a horrible way of doing it, but works

    in C11
    =SUM(INDIRECT(CELL("address",OFFSET($A$1,4,COLUMN()*12-33-1))&":"&CELL("address",OFFSET($A$1,4,COLUMN()*12-33+10))))
    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.

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Filling Right across Multiple Intervals

    Many thanks Speciak-K

    Is there a better more straightforward way of doing it? anyone?

    Thanks

  4. #4
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Filling Right across Multiple Intervals

    Hi

    In cell c2 type1.
    In cell d2 enter formula
    Please Login or Register  to view this content.
    Copied to right
    This will write year number for each Year sequence

    Now for year sales use Sumproduct as:

    Please Login or Register  to view this content.
    Copied to right

    Regards
    Attached Files Attached Files
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Filling Right across Multiple Intervals

    If you have years in the starting month in row 3, here is one way:

    C11, then drag across.

    =SUM(INDEX(5:5,MATCH(C$10,3:3,0)):INDEX(5:5,MATCH(C$10,3:3,0)+11))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Filling Right across Multiple Intervals

    Thanks Mahju... can you please explain the rationale....what does the COLUMN(A1) mean?

  7. #7
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Filling Right across Multiple Intervals

    Thanks Haseeb, can you please explain the rationale? Wha tdoes 5:5 stand for?

  8. #8
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Filling Right across Multiple Intervals

    Thanks
    The function Column(cell reference) returns the Column No. of the cell reference.

    There is another function of the same type row(cell reference) which returns the row number.

    COLUMN(A1) will return the column number of the cell A1 which is '1'

    When the formula is copied to right one cell it changes to Column(B1) which would return '2' and so on
    Regards

  9. #9
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Filling Right across Multiple Intervals

    Thanks Manju but why do i need it to return the column number of cell A1 which is a blank cell... my numbers start at column C? and when i change the cell reference the numbers get mixed up? I don't understand why column A is being used? why not Column C?

  10. #10
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Filling Right across Multiple Intervals

    Also, is there a single formula that i can input in cell C16 (attached) that would render the correct values if i fill right and fill down simulaneously?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-09-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Filling Right across Multiple Intervals

    Ah ok, now i get it! Sorry about that. thanks

+ 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