+ Reply to Thread
Results 1 to 6 of 6

Countif with multiple values in a cell, separated by alt+enter (each their own line)

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Countif with multiple values in a cell, separated by alt+enter (each their own line)

    I've just been presented with a headach and nightmare.

    I've to generate a proposal for a system security setup and the excel sheet I have been given contains values like this:

    US.SSCMonitoring 07 May 2013 19:46:03
    NA Admin
    NA Office Agent
    NA Supervisor
    NA Supervisor Admin
    Manager

    I do need to perform a count to see how many users have been assigned to the values in third column. This is only an example for one row I have 672 of these with different or no value in the 3rd column.

    is there a 'simple' way to count these values or do I have to rework the file and separate the values out to different columns?

    So far I have found that 4 values in the third column seems to be the maximum.

    Thanks for your support!

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

    Re: Countif with multiple values in a cell, separated by alt+enter (each their own line)

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Countif with multiple values in a cell, separated by alt+enter (each their own line)

    hi Nite0wls, welcome to the forum. for a single cell, try:
    =LEN(C1)-LEN(SUBSTITUTE(C1,CHAR(10),""))+1

    for multiple cells, try:
    =SUMPRODUCT((LEN(C1:C10)-LEN(SUBSTITUTE(C1:C10,CHAR(10),""))+1)*(C1:C10<>""))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    02-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Countif with multiple values in a cell, separated by alt+enter (each their own line)

    Hi Zbor and benishiryo,

    Thank you both so much for the quick reply. It's not quite what I was after.
    What I am looking for is a count per different value.

    like countif(range,value)

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

    Re: Countif with multiple values in a cell, separated by alt+enter (each their own line)

    Can you upload example workbook with your input and desired output?
    Make sure to avoid all private infromations

  6. #6
    Registered User
    Join Date
    02-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Countif with multiple values in a cell, separated by alt+enter (each their own line)

    I've attached an extract of the part I struggle with

    Everything in D684 to D723 is mockup and the output I expect is a break down per entry in C684 to C723 column

    Thanks for your help
    Attached Files Attached Files

+ 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