+ Reply to Thread
Results 1 to 6 of 6

Need forumla to sum number of unique values in groups of different sizes

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Need forumla to sum number of unique values in groups of different sizes

    Hello,

    I need to find a way sum the total number of unique positions in the "status" column for each expedition (each expedition may have a different number of people in it). I have attached a sample spreadsheet with the raw data I need help with.

    I have indicated my desired output in the attached sample spreadsheet.

    I would be extremely grateful to anyone who can help. Thanks so much!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need forumla to sum number of unique values in groups of different sizes

    With an helpcolumn and an pivot table.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need forumla to sum number of unique values in groups of different sizes

    Hi ea2146

    There have been numerous posts regarding this. Try the following in B19 and copy down. This is an array formula (ctrl+shift+enter to commit).
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need forumla to sum number of unique values in groups of different sizes

    Try this array formula** entered in C19 and copied down:

    =SUM(IF(FREQUENCY(IF(A$2:A$15=A19,MATCH(B$2:B$15,B$2:B$15,0)),ROW(B$2:B$15)-ROW(B$2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    04-08-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Need forumla to sum number of unique values in groups of different sizes

    Thank you so much to each of you! I really appreciate the thorough guidance you have provided me with. Thanks again!!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need forumla to sum number of unique values in groups of different sizes

    You're welcome. We appreciate the feedback!

+ 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