+ Reply to Thread
Results 1 to 3 of 3

Exclude word from countif formula

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Exclude word from countif formula

    Hi guys,

    If cell A2 has this written: "Adhoc - Task 1" how can I write a countif formula like this:

    =COUNTIF('Test Spreadsheet'!$A$2:$A$20, "On Hold", <>"Adhoc*") - basically do not count cells that include the word Adhoc.... I want to count the cells that say on Hold in B2 onwards except cells with the word: Adhoc as part of the cells
    Last edited by rayted; 05-05-2020 at 04:25 AM.
    Thanks,

    R.



  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Exclude word from countif formula

    I assume you know that * include strings with anything before or after depending where it is placed
    =COUNTIFS('Test Spreadsheet'!A1:A20,"*On hold*",'Test Spreadsheet'!A1:A20,"<>*adhoc*") may be along the lines of what you want

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: Exclude word from countif formula

    thank you this works!

+ 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] COUNTIF to exclude certain text
    By jambog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2018, 01:12 AM
  2. SUMPRODUCT + COUNTIF but exclude blanks
    By finnvalor in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-26-2017, 03:50 PM
  3. Help with countif Formula to exclude 0
    By WEBBOOO in forum Excel General
    Replies: 9
    Last Post: 06-06-2017, 02:21 AM
  4. [SOLVED] Formula Query - COUNTIF? Column A contains word and Column B contains word
    By HelenJH in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-14-2013, 11:23 AM
  5. [SOLVED] Exclude zero from COUNTIF MAX
    By 90Shilling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2013, 07:15 PM
  6. Countif exclude error
    By Bobby82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2012, 08:50 AM
  7. Exclude value with countif?
    By Shirohana in forum Excel General
    Replies: 2
    Last Post: 04-16-2007, 07:22 AM

Tags for this Thread

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