+ Reply to Thread
Results 1 to 4 of 4

Count if column 1 contains Y AND column 2 contains specific word

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Cheltenham, UK
    MS-Off Ver
    2010
    Posts
    25

    Count if column 1 contains Y AND column 2 contains specific word

    Hello again. :D

    Similar to my last request, I would like a formula that again counts how many "Y's" appear in one column, but only when the matching rows in another column also contain the words "staff" or "tutor".

    Here is the formula I have tried, which I modified from the previously supplied formula, but it only returns a 0:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In the attached example, there are 4 people who match the criteria (2 members of staff and 2 tutors), but I only need to count those out of the 4 who have a Y in the other column.

    Can someone please help with that formula? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Count if column 1 contains Y AND column 2 contains specific word

    how about this... =COUNTIFS(B:B,"y",A:A,"*staff*")+COUNTIFS(B:B,"y",A:A,"*tutor*")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    03-09-2017
    Location
    Cheltenham, UK
    MS-Off Ver
    2010
    Posts
    25

    Re: Count if column 1 contains Y AND column 2 contains specific word

    Worked like a charm. Thank you so much.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Count if column 1 contains Y AND column 2 contains specific word

    You're welcome and thanks for the rep!

+ 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 word if date in other column is a specific month (July)
    By nicimcd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2015, 11:19 AM
  2. Replies: 4
    Last Post: 04-23-2013, 05:34 AM
  3. formula to count a specific word only once in each cell in a column
    By Bastet34 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-13-2013, 01:10 PM
  4. [SOLVED] Formula to count number of times specific word used in column range
    By flammer4 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-07-2012, 01:42 PM
  5. how to count the total number of specific word in a column
    By darkhorse4321 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-27-2010, 09:26 AM
  6. how to count the total number of specific word in a column
    By darkhorse4321 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2010, 09:16 AM
  7. [SOLVED] count the number of times a specific word appears in a column
    By BAR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 12:10 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