+ Reply to Thread
Results 1 to 4 of 4

counting unique values across several criteria and date (month/year)

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    normal, il
    MS-Off Ver
    Excel 2010
    Posts
    66

    counting unique values across several criteria and date (month/year)

    Greetings!

    I need to capture whether or not a group during a specific month/year and CP has had any problems. If the group has had one or more problems, it is counted.

    I also need it so if there are no groups that occur in a month/year, the result is a blank "".

    I have included a spreadsheet with mock data (on the left) and what the results should be in a table (on the right). I have also included notes explaining the different scenarios.


    Thanks for taking the time to assist me!!
    Joanne
    Attached Files Attached Files
    Last edited by joannelittell; 10-30-2013 at 05:11 AM. Reason: corrected results information in the spreadsheet

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: counting unique values across several criteria and date (month/year)

    Hope it works as desired


    Azumi
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    normal, il
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: counting unique values across several criteria and date (month/year)

    @ Azumi
    My apologies for not being clear. given the data i have is just dummy data the contents of the Group column cannot be used within the formula.

    I really appreciate your quick formula, unfortunately the group data is not fixed.

    Joanne

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: counting unique values across several criteria and date (month/year)

    Hi,

    Try this array** formula in AC8 and copy across and down:

    =IF(SUM((TEXT($X$6:$X$47,"mmm yyyy")=$AB8)*($W$6:$W$47=AC$7))=0,"",SUM((TEXT($X$6:$X$47,"mmm yyyy")=$AB8)*($W$6:$W$47=AC$7)*($Z$6:$Z$47="x")*(ROW($W$6:$W$47)-MIN(ROW($W$6:$W$47))+1=IFERROR(MATCH($W$6:$W$47&TRIM(LEFT($Y$6:$Y$47,FIND(" ",$Y$6:$Y$47)))&"x",INDEX($W$6:$W$47&TRIM(LEFT($Y$6:$Y$47,FIND(" ",$Y$6:$Y$47)))&$Z$6:$Z$47,,),0),""))))

    Regards


    **Array formulas are entered differently than a regular formula. After you type in a regular formula you hit the ENTER key. With an array formula you *must* use a combination of keys. Those keys are the CTRL key, the SHIFT key and the ENTER key. That is, hold down both the CTRL key and the SHIFT key then hit the ENTER key.

    When done properly Excel will enclose the formula in squiggly brackets { }. You can't just type these brackets in, you *must* use the key combo to produce them. Also, anytime you edit an array formula it *must* be re-entered as an array using the key combo.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. unique occurances per multiple criteria (including month/year)
    By joannelittell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2013, 04:54 PM
  2. Replies: 2
    Last Post: 11-15-2011, 07:02 PM
  3. [SOLVED] Counting distinct entries based on meeting month & year criteria
    By jennifer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2006, 10:00 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