+ Reply to Thread
Results 1 to 5 of 5

Count stores that have 1 out of 5 Products, 2 Out of 5 etc

  1. #1
    Registered User
    Join Date
    07-26-2017
    Location
    Philadelphia, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Cool Count stores that have 1 out of 5 Products, 2 Out of 5 etc

    Hi All,

    my first ever forum Post (in any Forum 0_0)

    I have a list with stores that sell 5 different products. Some sell all 5, some none, and most any number in between. Now I want to count the stores that have 0 products, 1 product, 2 products and so on. It does not matter which product they sell, just that a certain number is present. The formula would probably be a combination of count(if....) but thats all I would know. The attached list is a neutralized example.

    Help would be much appreciated!
    Attached Files Attached Files
    Last edited by PaterPen; 07-26-2017 at 06:16 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Count stores that have 1 out of 5 Products, 2 Out of 5 etc

    The easiest way is with a helper column. This formula in M9 and dragged/copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then this formula in C1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy that down to C6 then change the 0 to 1 in C2, the 0 to 2 in C3, etc.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Count stores that have 1 out of 5 Products, 2 Out of 5 etc

    Hi PaterPen and welcome to the forum,

    See the attached with what I think you want. Yes a helper column seems appropriate for this problem.

    Countstores Answer.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    07-26-2017
    Location
    Philadelphia, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Count stores that have 1 out of 5 Products, 2 Out of 5 etc

    Great, works perfectly THANKS

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count stores that have 1 out of 5 Products, 2 Out of 5 etc

    no helper column
    =SUM(N(COUNTIF(OFFSET($C$8:$L$8,ROW($A$1:$A$50),),">0")=2*(ROW()-1))) as array formula

+ 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] Count how many for different products under different items?? My formula not working?
    By RHONS71 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-12-2017, 08:35 AM
  2. Count average sales of distinct stores in excel
    By eastofwestla in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2016, 10:32 AM
  3. [SOLVED] Count occurences of Products
    By a1b2c3d4e5f6g7h8i9 in forum Excel General
    Replies: 7
    Last Post: 11-07-2014, 05:50 AM
  4. Price Variance and Dollar Variance for multiple stores on certain products
    By hutchgeo4 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-22-2013, 05:49 PM
  5. Count of unique stores in a group
    By ZealotAssasin in forum Excel General
    Replies: 4
    Last Post: 05-16-2012, 02:10 PM
  6. Using SubQuery to Count 0 Sales Stores
    By lazyme in forum Access Tables & Databases
    Replies: 4
    Last Post: 06-14-2011, 01:37 PM
  7. Combine query to count products with similar names
    By pomalley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-21-2005, 10: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