+ Reply to Thread
Results 1 to 8 of 8

Countif Exception Advice Needed!

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    U.S.A.
    MS-Off Ver
    Excel 2016
    Posts
    11

    Countif Exception Advice Needed!

    Hi, thank you for reading this.

    I'm trying to count individual cells in a range that count "this", but not the cells (ignore the cells) in that range that contain "that".

    My attempts are failed as when excel sees a row with my <> (exception) in it, it seems to not be counting the row.

    In more depth, count column A1:L60 (these ranges are actually a month of a calendar) that includes B1(is actually a persons name) but don't include cells that say "holiday". The "holiday" cells are also green, which could be used as a deterrent for the count as well but that looks a little more advanced than my boundaries as well.

    Using Excel 2016.

    Thank you SO much.

    Al

  2. #2
    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
    28,169

    Re: Countif Exception Advice Needed!

    Attach a sample workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Countif Exception Advice Needed!

    Actually, to count B1 in range:

    =COUNTIF(A1:L60,"*"&B1&"*")

    and count "holiday":

    =COUNTIF(A1:L60,"*holiday*")

    so the expected formula should be:

    =COUNTIF(A1:L60,"*"&B1&"*")-COUNTIF(A1:L60,"*holiday*")
    Quang PT

  4. #4
    Registered User
    Join Date
    12-09-2013
    Location
    U.S.A.
    MS-Off Ver
    Excel 2016
    Posts
    11

    Re: Countif Exception Advice Needed!

    Thank you.

    We're not quite there...sorry.

    I need to count only the cells that do not include the text "holiday". So in other words, how many times in a range is Joe populated (listed) OTHER THAN those days (cells) that include the text "holiday".

    The above example will count Joes, and holidays and sum them...I only need to count Joes days that are not a...Joe holiday.



    I'll upload a desensitized example here, thanks guys for taking the time to help.
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Countif Exception Advice Needed!

    something like that?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-09-2013
    Location
    U.S.A.
    MS-Off Ver
    Excel 2016
    Posts
    11

    Re: Countif Exception Advice Needed!

    Sandy,

    Thank you but again, we your example is subtracting all ("holidays"), from (all cells). I'm trying to count how many cells Joe is in except for cells that also include the word holiday.

    Al

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

    Re: Countif Exception Advice Needed!

    try =COUNTIF(A1:N30,"*joe*")-COUNTIFS(A1:N30,"*joe*",A1:N30,"*holiday*")

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Countif Exception Advice Needed!

    so you want count how many "Joe" minus "Joe" and "Holiday"?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or if you need another way - change criteria.
    Or I am too stupid to understand

+ 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 with exception formula
    By martin10 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-24-2015, 09:20 AM
  2. [SOLVED] A Countif Function with Exception
    By alyaahmed in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2013, 02:56 PM
  3. VB/ Formula advice needed
    By DanUK86 in forum Excel General
    Replies: 4
    Last Post: 09-10-2009, 07:57 AM
  4. help advice needed
    By stevencarroll19 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-30-2006, 12:00 PM
  5. [SOLVED] advice needed
    By Duncan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-27-2005, 07:06 PM
  6. [SOLVED] Advice needed...
    By Duncan in forum Excel General
    Replies: 3
    Last Post: 01-27-2005, 05:06 PM
  7. advice needed
    By Duncan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2005, 04:06 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