+ Reply to Thread
Results 1 to 11 of 11

How to Count for each category

Hybrid View

afriedman How to Count for each category 06-21-2011, 12:43 PM
Colin Legg Re: How to Count for each... 06-21-2011, 12:48 PM
afriedman Re: How to Count for each... 06-21-2011, 12:52 PM
Colin Legg Re: How to Count for each... 06-21-2011, 12:56 PM
afriedman Re: How to Count for each... 06-21-2011, 01:04 PM
Colin Legg Re: How to Count for each... 06-21-2011, 01:20 PM
afriedman Re: How to Count for each... 06-21-2011, 02:02 PM
afriedman Re: How to Count for each... 06-21-2011, 03:37 PM
Colin Legg Re: How to Count for each... 06-21-2011, 03:47 PM
afriedman Re: How to Count for each... 06-21-2011, 05:29 PM
Colin Legg Re: How to Count for each... 06-21-2011, 05:33 PM
  1. #1
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: How to Count for each category

    Hi Aaron,

    The formula solution is second best to a pivot table, but sure - you can do this in XL 2003 (you attached an XLS file) using SUMPRODUCT.

    For ease, I put the lower/upper limit for each category in a spare cell.
    =SUMPRODUCT(--($B$5:$B$12=$F5),--($C$5:$C$12>=G$1),--($C$5:$C$12<=G$2))

    If you can use solely an XLSX file then use SUMIFS instead of SUMPRODUCT - it calculates more efficiently.
    Attached Files Attached Files
    Hope that helps,

    Colin

    RAD Excel Blog

  2. #2
    Registered User
    Join Date
    12-09-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    68

    Re: How to Count for each category

    Perfect! Thanks. This works like a charm.

    A few question on this though:
    1. what is the "--" for. I have seen that but never completely understood its purpose.

    2. Can you think of a way to incorporate those numbers at the top into the actual formula

    3. Why do you think the formula is second best to pivot tables? They honestly seem to work more effectively. Do formulas take up more space than pivot tables? If that is true then I would have to agree, but this way makes it WAAY more simple.

+ 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