+ Reply to Thread
Results 1 to 4 of 4

COUNTIF formula excluding large list of values from count

  1. #1
    Registered User
    Join Date
    01-25-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    19

    COUNTIF formula excluding large list of values from count

    Dear, I am looking for a formula where I can use countif excluding a large list of values.

    Example in attach: Tab results shows in result 0 if in the value column one of the characters appears from my 'lookup exclusions' tab. If the characters doesn't appear in my lookup list it should return 1.

    In reality the lookup list and data set is a lot bigger - this is just an example.

    Thank you!
    Tupelo
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: COUNTIF formula excluding large list of values from count

    worksheet name : Results

    Cell B2 array formula , Drag down

    HTML Code: 

  3. #3
    Registered User
    Join Date
    01-25-2021
    Location
    Spain
    MS-Off Ver
    365
    Posts
    19

    Re: COUNTIF formula excluding large list of values from count

    Hi wk9128! Thank you so much this works! I actually forgot to add an additional requirement...Hope you can help me with this.
    Apart from the lookup table I also wish the count to return 0 is the value cell only consists of one character (such as A,B,C...), and also would like to score 0 for a list of values missing.

    I attached the new file with similar data, including the:

    - original 'exclusions table' = to return 0 if this character is in the cell
    - new 'inclusions table' = to return 0 if this character is missing in the cell

    And then i would need the additional condition to return 0 if there is only one character in the cell.

    I hope I explain well...thank you so much for all your help.
    Attached Files Attached Files
    Last edited by Tupelo1984; 07-14-2021 at 11:07 AM.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,872

    Re: COUNTIF formula excluding large list of values from count

    The following modification to wk9128's array formula** replicates the values in column B:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  2. Replies: 1
    Last Post: 01-10-2014, 01:55 PM
  3. Replies: 4
    Last Post: 11-08-2013, 05:01 AM
  4. [SOLVED] Sum Large values along with Count Condition - Array Formula
    By acsishere in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-28-2013, 05:45 PM
  5. [SOLVED] need formula to count number of cells that contain any of a LARGE list of zip codes
    By Security in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-14-2012, 10:37 AM
  6. excluding values using countif
    By hooha2012 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2012, 06:04 PM
  7. Replies: 4
    Last Post: 12-24-2008, 02:53 AM
  8. [SOLVED] How do I use countif to count values excluding blank cells
    By Glenda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2006, 12:30 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