+ Reply to Thread
Results 1 to 8 of 8

Count cells containing keywords with multiple criteria

  1. #1
    Registered User
    Join Date
    04-13-2024
    Location
    Kentucky
    MS-Off Ver
    Office 365
    Posts
    5

    Count cells containing keywords with multiple criteria

    I would appreciate any help. I have managed to come up with a formula that counts them all based on the keywords I'm looking for in cells, but I'm trying to also include additional criteria including a specific date and a specific product.

    So right now it's showing 4 under 4/7/2024 but I need it to show 2 under 4/7/2024, 1 under 3/31 and 1 under 3/24 based on the data provided.

    =SUMPRODUCT(IF($C:$C="No",--ISNUMBER(SEARCH($H2, SUBSTITUTE($D:$D,",",""))),""))

    That's my currently formula.

    How do I fix this so that I can included some additional criteria for it to count?

    excelformula.png
    Attached Files Attached Files
    Last edited by Kailef; 04-13-2024 at 10:47 PM.

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

    Re: Count cells containing keywords with multiple criteria

    Hi Kailef

    Please read and refer to this link, how to upload attachments,follow mathod 2
    https://www.excelforum.com/the-water...his-forum.html

    Please add some manually calculated expected results
    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Registered User
    Join Date
    04-13-2024
    Location
    Kentucky
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Count cells containing keywords with multiple criteria

    Done. Was having issues with the paperclip opening letting me upload but finally got it. Thanks.

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

    Re: Count cells containing keywords with multiple criteria

    Cell I8 formula , Drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell I2 formula , Drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OFFICE 365
    Cell I2 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell I8 formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by wk9128; 04-13-2024 at 11:36 PM.

  5. #5
    Registered User
    Join Date
    04-13-2024
    Location
    Kentucky
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Count cells containing keywords with multiple criteria

    Quote Originally Posted by wk9128 View Post
    Cell I8 formula , Drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cell I2 formula , Drag right
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The one for I2 works, but the one for I8 results in 0 I mean.
    Last edited by Kailef; 04-13-2024 at 11:11 PM.

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

    Re: Count cells containing keywords with multiple criteria

    POST # 4 has already been uploaded, is that the result


    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the word PREFIX on the upper left, press the button to select [SOLVED] select "Mark your thread as Solved".
    - you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help
    was given. By doing so you can add to the reputation(s) of those who helped.

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

    Re: Count cells containing keywords with multiple criteria

    Quote Originally Posted by Kailef View Post
    The one for I2 works, but the one for I8 results in 0 I mean.
    Do you want to know the reason? Because your cell B7 content is Produce 1, not Product 1

    CELL K2 does not consider dates, resulting in 4

    {=COUNT (0/($C $1: $C $8="No") * ISNUMBER (SEARCH ($H2, $D $1: $D $8)))}
    Last edited by wk9128; 04-13-2024 at 11:25 PM.

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,994

    Re: Count cells containing keywords with multiple criteria

    i2=IF(I1<>"",COUNTIFS($A$1:$A$8,I$7,$C$1:$C$8,"no",$D$1:$D$8,"*"&$H$7&"*"),"")


    i8=IF(I7<>"",COUNTIFS($A$1:$A$8,I$7,$B$1:$B$8,$G$7,$C$1:$C$8,"no",$D$1:$D$8,"*"&$H$7&"*"),"")


    copy across

+ 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: 07-05-2016, 06:35 AM
  2. Count cells if any criteria are met, not multiple criteria
    By jesstaylor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2014, 12:50 PM
  3. [SOLVED] VBA looking for multiple keywords and return concatenated keywords, that were found
    By Kpacu007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2014, 06:03 AM
  4. Count number of Rows with multiple criteria (multiple valued cells)
    By garog in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-09-2014, 01:33 PM
  5. [SOLVED] HDI - Return multiple keywords in a text column based on a set of available keywords
    By zneiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-25-2013, 01:32 PM
  6. search multiple columns and count number of rows the keywords appear
    By vincegc8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2013, 02:01 PM
  7. SUMPRODUCT count how many in a range that matches multiple keywords
    By tomlancaster in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2012, 08:13 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