+ Reply to Thread
Results 1 to 5 of 5

Excel 2008 : HELP NEEDED! Sum values of one column based on a changing critiera in another column

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    HELP NEEDED! Sum values of one column based on a changing critiera in another column

    Hi,

    Looking for a solution to the following:

    In column E, I want the sum of values in Column G, which have the same values in Column A
    So the sum critieria is based on Column A and the values to be summed are in Column G.

    In the example I have manually inserted the desired values in Column G but would like a formula to do this as I have over 20K lines of data.

    Anyway got a soultion??

    Hennerby
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: HELP NEEDED! Sum values of one column based on a changing critiera in another column

    Hi Hennerby,

    You can use the sumif formula :-

    =SUMIF($A$2:$A$33,$A2,$D$2:$D$33)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: HELP NEEDED! Sum values of one column based on a changing critiera in another column

    Hi DILIPandey,

    Thanks for your reply but unfortunately that formula will not work in this instance.
    In the example shown the values in Column E are those which the formula should generate, keeping in mind that the same formula will have to be applied to the entire column due the the large number of rows. By using your SUMIF formula you will generate an entire column of values.

    Rgds,
    Hennerby

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: HELP NEEDED! Sum values of one column based on a changing critiera in another column

    Can't you use a pivot table? If not, then I'd just change Dilipandey's formula to
    =IF($A2=$A1,"",SUMIF($A$2:$A$33,$A2,$D$2:$D$33))
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: HELP NEEDED! Sum values of one column based on a changing critiera in another column

    Quote Originally Posted by romperstomper View Post
    Can't you use a pivot table? If not, then I'd just change Dilipandey's formula to
    =IF($A2=$A1,"",SUMIF($A$2:$A$33,$A2,$D$2:$D$33))
    Hi romperstomper,

    Sorry for the lack of reply on this post, I had eventually come to this conclusion but thank you for the post!

    Thanks,
    Hennerby

+ 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