+ Reply to Thread
Results 1 to 5 of 5

Count of unique stores in a group

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    25

    Count of unique stores in a group

    I have data with three columns,

    Store #
    Group Name
    Item #

    Every store # is associated to a particular Group Name, however a store # will appear more than once due to different Item # showing up. I'm trying to get the count of unique stores for each Group Name. I've attached a small sample file that hopefully gets the point across. I tried pivot tabling, but it would return the count every time a store showed up, even if it was the same one.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-25-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Count of unique stores in a group

    Anyone want any insight on this/need more explanation?

  3. #3
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Count of unique stores in a group

    The best solution I came up with had to use two steps, but its all contained in the same chart. Look at the "Answer" tab and tell me if this would work.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-25-2012
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Count of unique stores in a group

    Hey that's correct, however I don't even need the columns for the individual stores. I just need the count of stores for each group. Thanks for the help

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Lightbulb Re: Count of unique stores in a group

    Hello
    If you're happy using Array formulas then the following placed in cell B2 on your Answer Sheet and copied down should work, assuming all your Shop Numbers are numeric as in your example.

    =SUM(--(FREQUENCY(IF(Sheet1!$B$2:$B$31=A2,Sheet1!$A$2:$A$31),Sheet1!$A$2:$A$31)>0))

    Enter with CTRL+SHIFT+ENTER

    The Formulas Calculation option in your example workbook was set to Manual. For this formula to calculate automatically you'll need to change it to Automatic.

    Hope this helps
    DBY

+ 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