+ Reply to Thread
Results 1 to 5 of 5

Counting number of occurrences in cells with numbers separated by a comma

  1. #1
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2016 Mac
    Posts
    268

    Counting number of occurrences in cells with numbers separated by a comma

    Good afternoon,

    I have a problem, i need to count the number times a given number occurs in a range of cells

    Screen Shot 2013-09-01 at 12.11.04 PM.jpg

    The problem lies in the fact that each cell there are two numbers separated by a comma. The first represents a activity code and the second is a user codes. I need to be able to pull out totals for each.

    I am by no means an excel master, so please make this as simple as possible


    Thank you in advance

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Counting number of occurrences in cells with numbers separated by a comma

    Using your posted example, try these regular formulas:
    H31: =COUNTIF($A$3:$P$27,G31&",*")
    Copy that formula down through H33

    K31: =COUNTIF($A$3:$P$27,"*,"&J31)
    Copy that formula down through K33

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2016 Mac
    Posts
    268

    Re: Counting number of occurrences in cells with numbers separated by a comma

    yes, now lets say i need to count how many times i used 13,51. How would i set up that formula.

    Thanks again

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Counting number of occurrences in cells with numbers separated by a comma

    That's easier, since we're looking for a compete match.
    G34: 13,51
    Try this regular formula
    H34: =COUNTIF($A$3:$P$27,G34)

    Does that help?

  5. #5
    Forum Contributor
    Join Date
    08-29-2013
    Location
    CT
    MS-Off Ver
    Excel 2016 Mac
    Posts
    268

    Re: Counting number of occurrences in cells with numbers separated by a comma

    Yes thank you so much!

+ 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. Count number of occurrences separated by comma
    By Niclal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-23-2013, 03:39 AM
  2. Help with counting multiple items in a cell separated by a comma
    By excelnoobies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2012, 02:43 AM
  3. Counting numbers within a cell separated by comma
    By hactic in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-15-2011, 09:37 PM
  4. Separate numbers from characters separated by comma
    By hawk77EF in forum Excel General
    Replies: 6
    Last Post: 02-18-2010, 07:28 AM
  5. [SOLVED] Count comma separated numbers, numbers in a range with dash, not t
    By Mahendra in forum Excel General
    Replies: 0
    Last Post: 08-08-2005, 01: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