+ Reply to Thread
Results 1 to 4 of 4

Excluding a countif if text doesn't match

  1. #1
    Registered User
    Join Date
    07-13-2019
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    4

    Excluding a countif if text doesn't match

    Is there a code or a way to do the following:

    =COUNTIF(MGR!I2,"*X*")+ COUNTIF(TL!I2:I5,"*X*") +
    COUNTIF(EMP!I2:I5,"*X*")

    "X" symbolizes a "day off" so if it finds an X then I want it to mark as one. This code is working for me, but I'm trying to make it better. Instead of having to divide a schedule between all different titles, I'm trying to input it once and have it automatically search or exclude keywords...

    Example would be: If it shows "manager" in A1:A40 then do not COUNTIF(MGR!I2,"*X*") or if it shows "manager" in A1:A40 then COUNTIF(MGR!I2,"*X*")

    I hope this makes sense.

    Thanks in advance

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... based in Ireland... but I could be anywhere in the world
    MS-Off Ver
    Office 365 for PC.
    Posts
    34,810

    Re: Excluding a countif if text doesn't match

    Not to me!!!

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn



  3. #3
    Registered User
    Join Date
    07-13-2019
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    4

    Re: Excluding a countif if text doesn't match

    Thanks for your response. I will submit my excel sheet so you can see when I get home. I removed most everything and made it small.

  4. #4
    Registered User
    Join Date
    07-13-2019
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    4

    Re: Excluding a countif if text doesn't match

    I figured it out... Using =SUMPRODUCT did the trick. Thanks again for your reply.

+ 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. [SOLVED] COUNTIFS and excluding some text + excluding some data in a calculation
    By trolle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2019, 01:45 PM
  2. [SOLVED] COUNTIF - excluding n.A
    By rayted in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2019, 07:31 AM
  3. Create an "other" countif bucket when value doesn't match range
    By MattyIce63 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-24-2017, 01:07 AM
  4. [SOLVED] countif/index match using text string
    By Groovicles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2015, 10:47 AM
  5. Index + Match doesn't work with text
    By blueturnaround in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-19-2014, 01:18 PM
  6. Replies: 3
    Last Post: 10-30-2013, 10:30 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