+ Reply to Thread
Results 1 to 8 of 8

COUNTIFS forumulas that can exclude criteria in a range

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    COUNTIFS forumulas that can exclude criteria in a range

    Good Morning,

    I was wondering what I could add onto my existing formula below to exclude certain criteria of text in a column?

    Currently, I am counting [element titles] "Encore at Platform" during the [Install date] date range of January 1 [R38] through January 31 [S38].

    I now need to add more criteria to eliminate entries that were made in the column "Type of Branch" with the text (New Branch Opening 2016 and New Branch Opening 2017). Since these are future dates, I don't want to include them in my totals.


    =COUNTIFS(Table_owssvr[Install Date],">="&Formulas!R38,Table_owssvr[Install Date],"<="&Formulas!S38,Table_owssvr[Element Title],"=Encore at Platform")

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: COUNTIFS forumulas that can exclude criteria in a range

    In your formula, you are using ">=" (greater than or equal to), and "<=" (less than or equal to), but have you also considered using "<>" (not equal to) to exclude what you don't want?

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,694

    Re: COUNTIFS forumulas that can exclude criteria in a range

    Try

    =COUNTIFS("Table_owssvr[Install Date]",">="&Formulas!R38,"Table_owssvr[Install Date]","<="&Formulas!S38,"Table_owssvr[Element Title]","=Encore at Platform","Table_owssvr[Type of Branch]","<>New Branch Opening 2016","Table_owssvr[Type of Branch]","<>New Branch Opening 2017")

  4. #4
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    Re: COUNTIFS forumulas that can exclude criteria in a range

    Hi Tony,

    I tried the formula you suggested and I am getting an error message "The formula you typed contains an error". Could we possibly be missing an sign or something?

  5. #5
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: COUNTIFS forumulas that can exclude criteria in a range

    =COUNTIFS("Table_owssvr[Install Date]",">="&Formulas!R38,"Table_owssvr[Install Date]","<="&Formulas!S38,"Table_owssvr[Element Title]","=Encore at Platform",Table_owssvr[Type of Branch],"<>New Branch Opening 2016",Table_owssvr[Type of Branch],"<>New Branch Opening 2017")

    I think the only issue was the quotation marks around the reference. Try this edited version of John's solution.

    edit: If that still doesn't work, the first place I would look is to make sure the reference Table_owssvr[Type of Branch] is actually referencing the column it should.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,694

    Re: COUNTIFS forumulas that can exclude criteria in a range

    try

    =COUNTIFS(Table_owssvr[Install Date],">="&Formulas!R38,Table_owssvr[Install Date],"<="&Formulas!S38,Table_owssvr[Element Title],"=Encore at Platform",Table_owssvr[Type of Branch],"<>New Branch Opening 2016",Table_owssvr[Type of Branch],"<>New Branch Opening 2017")

  7. #7
    Registered User
    Join Date
    08-22-2014
    Location
    San Diego, Ca
    MS-Off Ver
    2010
    Posts
    33

    Re: COUNTIFS forumulas that can exclude criteria in a range

    Yippie! That worked perfectly.... I knew we were half way there. Thanks everyone for your help...

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,694

    Re: COUNTIFS forumulas that can exclude criteria in a range

    I am not sure how the erroneous quotes arose - so apologies _ but glad it's solved.

+ 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. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  2. [SOLVED] COUNTIFS with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2015, 01:04 PM
  3. COUNTIFS having a range as criteria
    By Ramya anbu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2015, 10:53 AM
  4. Replies: 5
    Last Post: 05-04-2014, 10:56 AM
  5. [SOLVED] =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this manner
    By nscarritt in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-26-2014, 04:00 PM
  6. [SOLVED] COUNTIFS with many criteria in same range
    By asterobelix in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2014, 12:10 AM
  7. COUNTIFS with Multiple Criteria in One Range
    By mphillips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2013, 02:43 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