+ Reply to Thread
Results 1 to 3 of 3

Counting the number of occurrences a number appears in a range

  1. #1
    Registered User
    Join Date
    07-21-2014
    Location
    Baltimore
    MS-Off Ver
    2010
    Posts
    31

    Counting the number of occurrences a number appears in a range

    Hi All--

    I feel like this topic may have been cover sooo many times, but I can't seem to find a solution, so here goes.

    I have a column of numbers ranging from 0-77 (over 4500 rows of data) and I am looking to determine the number of occurrences each number appears in my range.

    I have been attempting to use a 'countif' formula, but it doesn't seem to be working.

    Any help you all can offer would be appreciated. Thanks in advance!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Counting the number of occurrences a number appears in a range

    Assuming there are numbers in column A

    use this formula in B2 and copy it down until you see blanks

    =COUNTIF(A:A,IF(ROWS($B$2:B2)>78,"",ROWS($B$2:B2)-1))

    A
    B
    1
    Numbers Count
    2
    1
    0
    3
    5
    2
    4
    1
    0
    5
    6
    0
    6
    5
    1
    7
    4
    2
    8
    25
    1
    9
    25
    0
    10
    12
    0
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Counting the number of occurrences a number appears in a range

    if i were doing this, assuming my data (4500 rows) begins in A1 and continues through A4500, in b1 i would put 0, then b2 1, b3 2, then having established the series, drag down for 78 rows autopopulating the rest. then use =COUNTIF(A:A,B1) and drag down.
    if this doesn't work, then there may be a hidden space in the data. So you can copy the data set to another location then use remove duplicates and this will give you your 78 data points, then refer the countif to this set - lets say you put this set in C1, =COUNTIF(A:A,C1).
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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] Formula for counting the number of occurrences within a range of cells AND Strings help
    By V1gilante in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-14-2014, 07:58 PM
  2. [SOLVED] Counting the number of times a time appears in a range of data
    By alexw1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-04-2013, 12:23 PM
  3. Replies: 5
    Last Post: 11-19-2010, 03:49 PM
  4. Counting the number of times a range of values appears in a table.
    By mikenola in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-19-2010, 12:52 PM
  5. Replies: 0
    Last Post: 08-25-2005, 05:44 AM

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