+ Reply to Thread
Results 1 to 9 of 9

Assistance with SUM with conditions

  1. #1
    Registered User
    Join Date
    10-10-2010
    Location
    South Africa, Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    7

    Assistance with SUM with conditions

    I hope someone can help me with this. I have a list of project owners with their corresponding team sizes. I am wanting to sum the team size column but if there are few projects with the same project owner, i only want the team size to be counted once.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Assistance with SUM with conditions

    Please try this function

    Note: Require Ctrl+Shift+Enter
    =SUM(IF(FREQUENCY(IF($C$7:$C$14<>"",MATCH($C$7:$C$14,$C$7:$C$14,0)),ROW($C$7:$C$14)-ROW($C$7)+1)>0,$J$7:$J$14))
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Assistance with SUM with conditions

    Put this formula in K7:

    =IF(COUNTIF(C$7:C7,C7)=1,SUMIF(C:C,C7,J:J),"")

    It should be copied down your table automatically when you press <enter>. It gives you the totals for each project owner only on the first occurrence of their name, so a SUM of that column will give you 210.

    Hope this helps.

    Pete

    EDIT: Maybe you should use this in K7:

    =IF(COUNTIF(C$7:C7,C7)=1,J7,"")

    then the sum of this is 170.

    Hope this helps.

    Pete
    Last edited by Pete_UK; 12-05-2013 at 05:52 AM.

  4. #4
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Assistance with SUM with conditions

    Hello D,

    do you mind using a helper column? If we can use K as the helper column, then in K7:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy this down to K14.

    Then the total members
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Cheers
    <-- If you're happy & you know it...click the star.:-)

  5. #5
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Assistance with SUM with conditions

    @Pete - very elegantly done. But it may need this tweak:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Without this division by COUNTIF(), it adds up all instances of Adam Albert's team.

    What do you think?

    Cheers

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Assistance with SUM with conditions

    I added an edit to that post - maybe you didn't see it.

    Pete

  7. #7
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Assistance with SUM with conditions

    Saw it now. Much simpler.

    Cheers

  8. #8
    Registered User
    Join Date
    10-10-2010
    Location
    South Africa, Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Assistance with SUM with conditions

    This is fantastic. Thank you it works perfectly.

  9. #9
    Registered User
    Join Date
    10-10-2010
    Location
    South Africa, Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Assistance with SUM with conditions

    Thank you everyone for the input. Made my day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  2. [SOLVED] Text results with two conditions (lookup with two conditions)
    By Davzx in forum Excel General
    Replies: 8
    Last Post: 05-25-2012, 03:08 AM
  3. Assistance please?
    By http:// in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  4. Assistance please?
    By http:// in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-06-2005, 04:05 PM
  5. How to multiple conditions to validate more than 2 conditions to .
    By Bhuvana Govind in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2005, 04:06 PM

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