+ Reply to Thread
Results 1 to 4 of 4

Sum of column entries based on value in other column

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    8

    Sum of column entries based on value in other column

    What i want here is the total for a particular id. I have included sample output which can give u a clear idea of what i want. I am stuck on this please help me out.
    Thank You
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Sum of column entries based on value in other column

    In I3 try:

    =SUMIF(A:A,TEXT(H3,"000"),C:C)+SUMIF(A:A,TEXT(H3,"000"),E:E)

    And copy down.

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Sum of column entries based on value in other column

    Sorry but i want the column h and i both as the output!!

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Sum of column entries based on value in other column

    OK, try this in H3, confirmed with Ctrl-Shift-Enter, not just Enter, and copied down.

    =IF(ROW(A1)>SUMPRODUCT(--(ROW($A$2:$A$500)=IFERROR(MATCH($A$2:$A$500,A:A,0),0))),"",INDEX(A:A,LARGE(INDEX(ROW($A$2:$A$500)*(ROW($A$2:$A$500)=IFERROR(MATCH($A$2:$A$500,A:A,0),0)),0),SUMPRODUCT(--(ROW($A$2:$A$500)=IFERROR(MATCH($A$2:$A$500,A:A,0),0)))-(ROW(A1)-1))))

    The formula in I3 becomes:

    =IF(H3="","",SUMIF(A:A,H3,C:C)+SUMIF(A:A,H3,E:E))

    Also copied down.

    Is that what you were after?

+ 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