+ Reply to Thread
Results 1 to 3 of 3

Count amount of occurances within a cell

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Count amount of occurances within a cell

    Hi all, I'd like to find how many instances of numbers below 50 occur in a specific cell.

    For instance the cell may contain 10 34 52 59 66

    The problem is, this sis stored as a text string. They maybe as many as 12 different numbers within a cell.

    In the above example, the answer would be 2

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Count amount of occurances within a cell

    Try this UDF:

    Please Login or Register  to view this content.
    Use it as:

    =COUNT_WITHIN_STRING(A1, 50)

    Where A1 is range of the cell
    50 is criteria for less than equal that number (can be changed)
    Attached Files Attached Files
    Last edited by zbor; 02-02-2015 at 10:17 AM.

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Count amount of occurances within a cell

    Great thank you

+ 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. VBA to find cell value in column and count occurances in same row within date range
    By Furutsun in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2014, 11:55 AM
  2. How do I count occurances in a range based on a cell?
    By damianberry in forum Excel General
    Replies: 4
    Last Post: 07-09-2012, 07:58 AM
  3. Replies: 5
    Last Post: 05-11-2012, 03:38 AM
  4. [SOLVED] Count occurances of numbers in a particular range in a single cell
    By dekoay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2012, 09:55 PM
  5. color blank cell red if blank or empty and count its occurances
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2009, 08:21 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