+ Reply to Thread
Results 1 to 8 of 8

Sum Index Row

Hybrid View

  1. #1
    Registered User
    Join Date
    05-25-2011
    Location
    dc
    MS-Off Ver
    Excel 2003
    Posts
    4

    Sum Index Row

    I needs the results of a sum of columns (year 1 of stuff and things, year 2 of stuff and things, etc) to shop up in total stuff & things...see attached file and or below. Instead of adding each cell manually, basically using formula to drag down the column and it computs it automatically, like a transpose sum? Thx in advance.

    Year 1 Year 2 Year 3 Year 1 Year 2 Year 3
    stuff 1 2 3 things 1 2 3
    Total Stuff & Things
    Year1 2
    Year2 4
    Year3 6
    Attached Images Attached Images
    Last edited by terpsfan78; 05-25-2011 at 01:42 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: Sum Index Row

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    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-25-2011
    Location
    dc
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sum Index Row

    i attached snapshot file

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

    Re: Sum Index Row

    Assuming top Try:

    =SUMIF($A$1:$H$1,E7,$A$2:$H$2)

    copied down.

  5. #5
    Registered User
    Join Date
    05-25-2011
    Location
    dc
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sum Index Row

    Quote Originally Posted by NBVC View Post
    Assuming top Try:

    =SUMIF($A$1:$H$1,E7,$A$2:$H$2)

    copied down.
    No, I want a formula that sums cell B2 + F2 , C2 + G2, D2 + H2 and populates the sum in cell F7 (sum total for B2+F2), then if I drag down, F8 (C2+G2), and F9(D2+H2). I don't want to sum it manually in F8, and F9.

    thx in advance.

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

    Re: Sum Index Row

    The sumif formula will sum on B2 and F2 when in F7 since it looks in row 1 to see which cells match E7 and sums what is directly underneath.

    As you copy the formula down, you will get the result of C2+G2, D2+H2, etc...

    Does that not work for you? If not, why?

  7. #7
    Registered User
    Join Date
    05-25-2011
    Location
    dc
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sum Index Row

    Quote Originally Posted by NBVC View Post
    The sumif formula will sum on B2 and F2 when in F7 since it looks in row 1 to see which cells match E7 and sums what is directly underneath.

    As you copy the formula down, you will get the result of C2+G2, D2+H2, etc...

    Does that not work for you? If not, why?

    But that only works if E7, E8, E9 have the same input as the column title. What if E7, E8, E9 have different names...e.g total year 1, total year 2, total year 3 instead of year 1, year 2, year 3

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

    Re: Sum Index Row

    It would be better if you can match the headers to the lookup values... makes for better design and easier manipulation...

    ... but if you insist on summing as you showed, try:

    =SUM(INDEX($B$2:$H$2,ROWS($A$1:$A1)),INDEX($B$2:$H$2,ROWS($A$1:$A1)+4))

    adjust the B2:H2 range to suit and copied down.

+ 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