+ Reply to Thread
Results 1 to 4 of 4

Multiple CountIf Statements with Wildcard *

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    WI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Multiple CountIf Statements with Wildcard *

    Hello,

    Can someone please help me? I am trying to take 2 CountIf statements and combine them in 1 so they both have to meet in order for it to be counted.

    Here are the two statements and they do work like this.
    =COUNTIF(B3:B2000,"*"&"yes"&"*")
    =COUNTIF(I3:I2000,"*"&"no"&"*")

    I would like to do something like:
    =COUNTIF(B3:B2000,"*"&"yes"&"*") AND COUNTIF(I3:I2000,"*"&"no"&"*")

    Essentially what I want is if cell B10 contains the word “yes” and cell I10 contains the word “no”, then it will count it as a 1. I do need the wildcard * in it as well because the search word could be anywhere within the text.

    Thanks for any help someone can offer,

    Zines

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple CountIf Statements with Wildcard *

    Use countifS

    =COUNTIFS(B3:B2000,"*"&"yes"&"*",I3:I2000,"*"&"no"&"*")

    Also, you don't need to concatenate the *'s with the words

    =COUNTIFS(B3:B2000,"*yes*",I3:I2000,"*no*")

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    WI
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Multiple CountIf Statements with Wildcard *

    Awesome, thanks, I didn't know about the countifs with the S. That worked great. I was trying to use and right after the word countif( and couldn't get anything to work. This is perfect!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple CountIf Statements with Wildcard *

    Great, glad to help out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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