+ Reply to Thread
Results 1 to 3 of 3

Aggregate Countif question

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    22

    Aggregate Countif question

    This question is cross posted at http://www.mrexcel.com/forum/showthr...=1#post2507661.

    So I've searched probably about two hours for a solution but can't find one.

    I'm trying to get a cell ('Results'!$G$3) to look at the row of a table on the a raw data tab ('Raw Data'!$A$2:$U$2), with a header row of ('Raw Data'$A$1:$U:$1) and check it against the list of names ('Results'!$B$22:$B$31). Then, if the name is in the list AND the header from the raw data, and the answer on that row is a Yes, then tell me what the total count of those yeses is.

    Can you please help? Thanks!

    By the way, this is what my mess of a code looks like right now.
    =COUNTIFS('Raw Data'!B1:U1,Results!B22,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Result+s!B23,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B24,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B25,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B26,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B27,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B28,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B29,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B30,'Raw Data'!B2:U2,"YES")+COUNTIFS('Raw Data'!B1:U1,Results!B31,'Raw Data'!B2:U2,"YES")
    Attached Files Attached Files
    Last edited by DonkeyOte; 11-11-2010 at 03:05 AM. Reason: revised title

  2. #2
    Forum Contributor BlastRanger's Avatar
    Join Date
    09-02-2010
    Location
    Indonesia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    238

    Re: Another Countif question

    Hi,
    I can see that the 'Results'!$G$3 would be the same with those result in Column C

    The formula of column C :
    =COUNTIF('Raw Data'!B2:U2,"YES")

    That will count those YES,

    AND
    of course it's the same with the criteria you want with the 'Results'!$G$3
    if the name is in the list AND the header from the raw data, and the answer on that row is a Yes, then tell me what the total count of those yeses is.
    Logically your purpose still want to count those YES

    Or maybe you want to get something different?
    Please give a Reputation as a gift for a thanks.
    By clicking the second icon at the top right corner of a user post or reply

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Another Countif question

    In your sample you had:

    Please Login or Register  to view this content.
    all you need do is encase the above within a SUMPRODUCT to aggregate based on the B22:B31 criteria

    Please Login or Register  to view this content.
    the above will give you the breakdown by question of the 109 YES'

    (on an aside please try to keep titles as specific as possible - I modified the title slightly on this occasion)

+ 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