+ Reply to Thread
Results 1 to 7 of 7

Conditional Counters

  1. #1
    Registered User
    Join Date
    05-17-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Conditional Counters

    I need to count problems per each client.

    Input:
    Client Problem
    1001 Minor
    1001 Critical
    1002 Minor
    1002 Minor
    1005 Critical
    1005 Minor
    1005 Major
    1005 Major
    1006 Major
    1006 Major
    1008 Minor
    1008 Critical
    1008 Critical

    Output that I need:
    Client Min Maj Critical
    1001 1 0 1
    1002 2 0 0
    1005 1 2 1
    1006 0 2 0
    1008 1 0 2

    Thank you
    Last edited by vicstone; 09-18-2015 at 11:49 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Conditional Counters

    See attached
    Attached Files Attached Files
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: Conditional Counters

    With Headings Minor, Major and Critical, you can use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But you should probably look at Pivot Tables


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    05-17-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Conditional Counters

    Thank you.
    However, there is another issue with the client number. I need client number to be populated in the output table as the client numbers changes. I have thousands of clients, and not all of them have problems. In my example Client 1003, 1004 and 1007 were not in the initial table. Hoe can I do this?

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: Conditional Counters

    Use a Pivot Table.

    You can use a formula to extract a list of unique account numbers but you would need to allow for the maximum ... which implies a lot of potentially "blank" cells dependent on the maybe non-existent accounts.

    Like I said, look at Pivot Tables.

  6. #6
    Registered User
    Join Date
    05-17-2010
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Conditional Counters

    Thank you TMS.
    I used a Pivot Table and got all counters in place.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,621

    Re: Conditional Counters

    You're welcome.

    Once you get used to using them, Pivot Tables are wonderful tools. I used to spend a lot of time using Advanced Filters to extract lists and then using COUNTIFS and SUMIFS, etc., to analyse data. Pivot Tables take out all the pain.

    Regards, TMS

+ 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. Counters to count up. How can I
    By Larbec in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2013, 02:58 PM
  2. Need to setup 3 different counters
    By vicstone in forum Excel General
    Replies: 4
    Last Post: 05-18-2010, 10:59 PM
  3. if statements and counters
    By lilkatielady in forum Excel General
    Replies: 2
    Last Post: 07-10-2009, 04:00 AM
  4. Counters
    By halem2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-30-2006, 04:59 PM
  5. [SOLVED] INVOICE COUNTERS
    By omega25 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2005, 06:25 PM
  6. INVOICE COUNTERS
    By omega25 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-16-2005, 06:25 PM
  7. [SOLVED] Counters
    By Paul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2005, 10:06 AM

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