+ Reply to Thread
Results 1 to 4 of 4

Count number of occurrences and return in text

  1. #1
    Registered User
    Join Date
    08-05-2016
    Location
    Philadelphia, PA
    MS-Off Ver
    2013
    Posts
    24

    Count number of occurrences and return in text

    Here is the table I have:

    Reviewer Report Issued? Error Type
    Pete Yes No error
    Pete No Domain grid
    Pete Yes Language proficiency requirement
    Pete Yes No error
    Will No ID docs
    Will Yes No error
    Will No Document envelope
    Will Yes No error
    Carol Yes ID docs
    Carol No Language proficiency requirement
    Sam Yes Registration Form incomplete
    Erica No Registration section- Address
    Erica Yes ID docs
    Erica Yes Domain Grid

    I need the information returned in another table like so:

    Reviewer # of Reports Error types (Issued) Error Types (Not Issued)
    Pete 4 1 Language proficiency requirement, 2 No error 1 Domain Grid
    Will 4 2 No error 1 Identification documents, 1 Document envelope
    Carol 2 1 Identification documents 1 Language proficiency requirement
    Sam 1 1 Registration Form incomplete NONE
    Erica 3 1 Identification documents, 1 domain grid 1 Registration section - Address

    What I need help with is the Error types (Issued) and Error Types (Not Issued) columns. Is there a way to use the table of errors (just a list of the error names) as a reference in a formula to get these cells filled in and counted the way I want them in the table above? or do I have to do a COUNTIF function with the &" No error" part attached for each individual name? The problems I have with this method are A: I have to type out each individual error type (of which there are actually 25), and B: it would list all 25 errors each time (with the ones that didn't occur counting as 0) instead of just the errors that occured.

    All suggestions welcome!

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count number of occurrences and return in text

    Hi
    I have coded your type of errors in one table and in an other table I count those errors
    See if this approach helps you
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count number of occurrences and return in text

    This solution is involved. The formula is at the bottom along with a link to a user defined function called CONCATALL.

    This has two helper cells for "Yes" and "No" ... D1:D2.

    I could get the counts right, but I couldn't get them in the order and matched as you posted. The below shows what I mean.



    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Reviewer Report Issued? Error Type Yes Reviewer # of Reports Error types (Issued) Error Types (Not Issued)
    2
    Pete Yes No error No Pete
    4
    2 No error, 1 Language proficiency requirement 1 Domain grid
    3
    Pete No Domain grid Will
    4
    2 No error 1 ID docs, 1 Document envelope
    4
    Pete Yes Language proficiency requirement Carol
    2
    1 ID docs 1 Language proficiency requirement
    5
    Pete Yes No error Sam
    1
    1 Registration Form incomplete NONE
    6
    Will No ID docs Erica
    3
    1 ID docs, 1 Domain Grid 1 Registration section- Address
    7
    Will Yes No error
    8
    Will No Document envelope
    9
    Will Yes No error
    10
    Carol Yes ID docs
    11
    Carol No Language proficiency requirement
    12
    Sam Yes Registration Form incomplete
    13
    Erica No Registration section- Address
    14
    Erica Yes ID docs
    15
    Erica Yes Domain Grid



    The link to the user defined function is here. It is included in the upload as well.
    http://www.excelforum.com/tips-and-t...ml#post3096647

    I just copied the names and used Remove duplicates column E.

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

    The formulas in columns G:H are both array formulas. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

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

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Count number of occurrences and return in text

    Meggo12,

    My last effort tries way too hard. My apologies. This one is simpler.

    It uses the same user defined function as before ... CONCATALL.

    There is a helper column in column D. It's formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Columns F and G ... names and counts ... are the same as before.

    Columns H and I have these two formulas ... still array entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Reviewer Report Issued? Error Type Reviewer # of Reports Error types (Issued) Error Types (Not Issued)
    2
    Pete Yes No error Pete
    4
    1 Language proficiency requirement, 2 No error 1 Domain grid
    3
    Pete No Domain grid 1 Domain grid Will
    4
    2 No error 1 ID docs, 1 Document envelope
    4
    Pete Yes Language proficiency requirement 1 Language proficiency requirement Carol
    2
    1 ID docs 1 Language proficiency requirement
    5
    Pete Yes No error 2 No error Sam
    1
    1 Registration Form incomplete NONE
    6
    Will No ID docs 1 ID docs Erica
    3
    1 ID docs, 1 Domain Grid 1 Registration section- Address
    7
    Will Yes No error
    8
    Will No Document envelope 1 Document envelope
    9
    Will Yes No error 2 No error
    10
    Carol Yes ID docs 1 ID docs
    11
    Carol No Language proficiency requirement 1 Language proficiency requirement
    12
    Sam Yes Registration Form incomplete 1 Registration Form incomplete
    13
    Erica No Registration section- Address 1 Registration section- Address
    14
    Erica Yes ID docs 1 ID docs
    15
    Erica Yes Domain Grid 1 Domain Grid

+ 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
    By kris18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2015, 05:33 AM
  2. [SOLVED] Need to count occurrences of a text + increasing number on the same cell
    By Valco in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-16-2015, 12:19 PM
  3. [SOLVED] Count number of occurrences but if there are consecutive matches count them as one
    By michaljireht in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2013, 08:26 PM
  4. Count number of occurrences in a day
    By quinnbri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2013, 05:49 PM
  5. [SOLVED] Count number of occurrences for a number of ranges from a find loop
    By ANDREWA in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-23-2012, 07:53 PM
  6. Formula to Count the Number of Occurrences of a Text String in a Range
    By poug1903 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-10-2011, 06:49 AM
  7. Replies: 1
    Last Post: 09-18-2009, 04:15 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