+ Reply to Thread
Results 1 to 6 of 6

# Times Name Appears given a condition in a table

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    # Times Name Appears given a condition in a table

    Please help!

    In the attached table, I need to count the # of times a person has a condition with a "No". For example, Courtney has 2 reviews (row 2 and row 6) but only 1 review meets the condition of any "No" response to the review criteria (columns E-N). It doesn't matter how many "No" responses are present on a given row, only that at least 1 "No" is present. Then I need to count how many rows have a "No" condition for each person. So the answer for Courtney would be 1. I have tried many CountIF, IF, IFAND statements and I cannot get this to count what I need. Please help!Sample.xlsx

  2. #2
    Registered User
    Join Date
    10-25-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: # Times Name Appears given a condition in a table

    I solved your problem by placing an OR function in the last column of the spreadsheet. I then inserted a new sheet with the list of names with reviews and placed a COUNTIFS function in it to find where the OR statement was true for that name.


    Sample(Review).xlsx

  3. #3
    Registered User
    Join Date
    03-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: # Times Name Appears given a condition in a table

    I can't believe I didn't think of that! Thank you VERY much!!!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: # Times Name Appears given a condition in a table

    Hi and welcome to the forum

    If you use swhitsell's suggestion, male sure you absolute his formula on sheet2 B2, else the references will change when copied...
    =COUNTIFS(Report!O2:O6,Overview!A2,Report!Q2:Q6,TRUE)

    An alternative...
    sheet1 col R (or Q) use this, copied down...
    =IF(COUNTIF(E2:N2,"No")>0,1,0)
    then use this in the next column, copied down...
    =COUNTIFS($O$2:O2,O2,$R$2:R2,1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    03-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: # Times Name Appears given a condition in a table

    I did catch that and made the adjustment. I will try yours as well, I have a much larger set of data to work with and yours may be a good alternative.
    Thank you!!

  6. #6
    Registered User
    Join Date
    10-25-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: # Times Name Appears given a condition in a table

    Yes, I think he solution is more elegant. I'll remember it for myself if I need something similiar.

+ 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