+ Reply to Thread
Results 1 to 4 of 4

Counting in 1 column for multiple values

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Planet Earth
    MS-Off Ver
    Excel 2010
    Posts
    2

    Counting in 1 column for multiple values

    I need to check in a single column for any of 20-40 values and total those occurances. Here is what I wish I had:

    =COUNTIF(J:J, {"Fred", "Ethel", "Ricky", "Lucy", "Marvin", "Marilyn", "Janis"}) where this would return all of the occurrances of Fred, Ethel, Ricky, Lucy, Marvin, Marilyn and Janis in col J.

    Because I have 20-40 values I need to count I do not want to string 20-40 COUNTIF functions together ala =COUNTIF(J:J, "Fred")+COUNTIF(J:J, "Ethel")...

    How can I make this simple and succinct?

    Thanks!

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

    Re: Counting in 1 column for multiple values

    You must define somewhere your names (i.e. B column).
    Then use:

    =SUMPRODUCT(COUNTIF(J1:J1000,B1:B10))

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Planet Earth
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Counting in 1 column for multiple values

    I knew there had to be a simpler way. That's it! Thanks you much zbor!!

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

    Re: Counting in 1 column for multiple values

    @ TxLonghorn1989

    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.

+ 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