+ Reply to Thread
Results 1 to 7 of 7

how to count multiple values in one cell

  1. #1
    Registered User
    Join Date
    08-18-2015
    Location
    Louisiana, USA
    MS-Off Ver
    excel 2007
    Posts
    10

    how to count multiple values in one cell

    I am working on a spreadsheet that has one cell containing the up to 6 variables ( P,O,S,AN, EN, PN). the cell might contain just one variable (P) or it can be a combination of the other variables. Using a different cell, I need to count the occurrence of each variable.

    For example : on cell A1: P,O,S on cell A2: P, O
    On the cell BI: I need to get the occurrence of the value "P" from cells A1 and A2. On cell B2: I need to get the occurrence of the value "O" from A1 and A2. Is there a way to do this? Thank you for your help.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: how to count multiple values in one cell

    Try this formula.
    Row\Col
    A
    B
    C
    D
    1
    P,O,S P 2 =SUMPRODUCT(--(NOT(ISERROR(FIND(B1,$A$1:$A$3))))) - C6
    2
    P,O O 3 =SUMPRODUCT(--(NOT(ISERROR(FIND(B2,$A$1:$A$3)))))
    3
    PN,O,S S 2
    4
    AN 0
    5
    EN 0
    6
    PN 1

  3. #3
    Registered User
    Join Date
    08-18-2015
    Location
    Louisiana, USA
    MS-Off Ver
    excel 2007
    Posts
    10

    Re: how to count multiple values in one cell

    Thank you. I'll try the formula and will let you know how it works.

  4. #4
    Registered User
    Join Date
    08-18-2015
    Location
    Louisiana, USA
    MS-Off Ver
    excel 2007
    Posts
    10

    Re: how to count multiple values in one cell

    quekbc .I don't understand the formula you suggested but it worked....THANK YOU!..... .

  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,933

    Re: how to count multiple values in one cell

    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. 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 relatively 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.
    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

  6. #6
    Registered User
    Join Date
    08-18-2015
    Location
    Louisiana, USA
    MS-Off Ver
    excel 2007
    Posts
    10

    Re: how to count multiple values in one cell

    Ford,
    Thanks for the assist and reminder. Appreciate this site.

  7. #7
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: how to count multiple values in one cell

    Glad it worked. Thanks for the rep jdelara.

+ 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: 3
    Last Post: 10-23-2013, 08:42 AM
  2. Need a count of unique values in col. with multiple values in a cell.
    By DrewS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2013, 01:03 PM
  3. [SOLVED] count values where there's multiple values in one cell
    By fabrecass in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2013, 09:49 AM
  4. Count multiple/repetitive values in same cell
    By Stevehersh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2013, 10:31 PM
  5. [SOLVED] Count Multiple Unique Values in One Cell
    By excelheaven in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 04:16 PM
  6. [SOLVED] How to count multiple cell values & do a validation & display results on a different cell
    By adriandefry in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-03-2012, 09:12 AM
  7. How to count multiple values in a single cell, except zero?
    By iuliandonici in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2011, 07:39 AM
  8. Count multiple values in cell with range criteria
    By leanne13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2009, 02:26 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