+ Reply to Thread
Results 1 to 9 of 9

Count number of occurences of values over range of cells that occur at least Three times.

  1. #1
    Registered User
    Join Date
    02-12-2012
    Location
    White Mountains, NH
    MS-Off Ver
    Excel 2007
    Posts
    65

    Count number of occurences of values over range of cells that occur at least Three times.

    Hi,
    I'm looking for some guidance on a formula that will count the number of times a value from 1-99 occurs over a range of cells...
    The number of times (occurences) the value happens is what's important...

    In example.
    The range is d1:d50
    Within this range, I'm looking for a 'count' of how many times any value between 1-99 occurs at leastTHREE times.
    Doesn't matter what the value is, it's the count I'm interested in.

    Thank you,
    chubs

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    maybe something like...

    =if(countif($D$1:$D$50,D1)>2,countif($D$1:$D$50,D1))
    or
    =if(countif($D$1:$D$50,D1)>2,"some text here")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-12-2012
    Location
    White Mountains, NH
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    Thank you for the quick response.

    The formula works fine on col. d.
    When I remove "$" and try on other columns it comes up with a FALSE on columns that have 3 or more occurences.
    Trying to figure out why.
    Here's the formula: =IF(COUNTIF(AR49:AR78,AR49)>2,COUNTIF(AR49:AR78,AR49)).

    Rgds,
    Chubs

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    If you are wanting the number of values that are between 0 and 99 inclusive that occur 3 or more times, this is how I tackled the problem:

    Use column E as a helper column and enter this formula to count only the numbers that are under 100

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then use this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    put the absolute ($) back

  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: Count number of occurences of values over range of cells that occur at least Three tim

    Does this do what you want:

    =SUM(--(FREQUENCY(D1:D50,D1:D50)>=3))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    02-12-2012
    Location
    White Mountains, NH
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    Tony,

    =SUM(--(FREQUENCY(D1:D50,D1:D50)>=3))

    works great! Perfect solution.

    Thank you,
    Chubs

    Thanks to everyone who responded to my query as well.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    What if the values in the range are over 99 or less than 1 as per your problem definition?..."Within this range, I'm looking for a 'count' of how many times any value between 1-99 occurs at leastTHREE times."

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

    Re: Count number of occurences of values over range of cells that occur at least Three tim

    You're welcome. Thanks for the feedback!

+ 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. Replies: 2
    Last Post: 05-11-2010, 12:25 AM
  2. Count number of occurences in a range
    By akabraha in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2007, 12:55 PM
  3. [SOLVED] How do I count the number of alpha occurences in a range?
    By CRM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 12:05 AM
  4. How do I count the number of alpha occurences in a range?
    By CRM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2005, 11:05 PM
  5. How do I count the number of alpha occurences in a range?
    By CRM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2005, 10:05 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