+ Reply to Thread
Results 1 to 6 of 6

Counting Occurences in a Range based on Specific Criteria

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Counting Occurences in a Range based on Specific Criteria

    How would you count all occurrences of "pst" within a three column range specifically associated with A1?

    a1 pst
    b1 pst
    a1 pst pst
    a1 pst
    b1 pst pst
    a1 pst

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Counting Occurences in a Range based on Specific Criteria

    =SUMPRODUCT((A1:A6="a1")*(B1:D6="pst"))

    assuming your data is in A1:D6
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: Counting Occurences in a Range based on Specific Criteria

    You can do something like this..

    =SUMPRODUCT((A1:A13="A1")*(B1:D13="pst"))

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Counting Occurences in a Range based on Specific Criteria

    Beautiful stuff! Thank you!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Counting Occurences in a Range based on Specific Criteria

    @ artikyulashun

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Counting Occurences in a Range based on Specific Criteria

    I'm learnng. Thanks for the heads up.

+ 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