+ Reply to Thread
Results 1 to 3 of 3

Formula that counts the number of times a certain set of conditions are met

  1. #1
    Forum Contributor
    Join Date
    10-05-2016
    Location
    orange, ca
    MS-Off Ver
    0365 2209
    Posts
    144

    Formula that counts the number of times a certain set of conditions are met

    Hello again all

    I am trying to create a formula that counts the number of times (in the specified example) in a range the below set of conditions are met

    1. When the specified number appears in column C in a string of text (in the example, the numbers are 5,6,7)
    2. In the same row of the specified number, a 0 appears column BC, BD, BE, or there is a number in column BI

    In the example, I try to create my own formula, but it appears not be working. The correct numbers are in red row 13-15 column F. I highlighted the numbers 5,6,7 in blue, green, and red respectively

    The harder part is row 11 column c that says 1u/5d. I would like to exclude the specified number like 5 when it is next to / like this.

    Let me know if any farther clarification is required and thank you.
    Attached Files Attached Files
    Last edited by lar9149; 06-29-2021 at 10:10 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formula that counts the number of times a certain set of conditions are met

    There is a mass of clutter in your file. Please simplify it to show the raw data and your (manually calculated) expected answers and (preferably) nothing else. As it stands... I do not follow it at all!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  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
    28,148

    Re: Formula that counts the number of times a certain set of conditions are met

    What about "a5/a6" vs "1u/5d": is "5/" valid vs "/5" invalid ?

    Try

    in C13

    =SUM(IF((--ISNUMBER(SEARCH($B13,$C$5:$C$12))*(--(NOT(ISNUMBER(SEARCH("/" &$B13,$C$5:$C$12)))))*(($BD$5:$BD$12=0)+($BE$5:$BE$12=0)+($BF$5:$BF$12=0))*(--ISNUMBER($BI$5:$BI$12))),1,0))

    Enter with Ctrl+Shift+Enter
    Last edited by JohnTopley; 06-29-2021 at 05:09 AM.

+ 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. Array formula for unique counts with OR conditions
    By bubba930 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2018, 03:27 PM
  2. [SOLVED] Formula that counts how many times does a 0 repeat in a column of 1 and 0
    By MrW00dy in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-02-2016, 07:50 AM
  3. [SOLVED] Counts number of times word is found in cell
    By bdrilling33 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-16-2015, 02:33 PM
  4. Looking for a formula that counts between two times
    By scott3294 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-19-2013, 05:15 PM
  5. Replies: 4
    Last Post: 11-28-2012, 01:43 PM
  6. Counts how many times i enter a number in a particular cell
    By j0hn in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-13-2010, 02:25 PM
  7. A cell that counts the number of times...
    By TPD in forum Excel General
    Replies: 1
    Last Post: 02-14-2005, 11:31 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