+ Reply to Thread
Results 1 to 5 of 5

How to use Countif to test if a sequence appears within an array ?

  1. #1
    Registered User
    Join Date
    12-28-2009
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2003
    Posts
    31

    How to use Countif to test if a sequence appears within an array ?

    How do I use Countif to test if a sequence appears within an array ?

    peter.PNG

    As you can see from my screenshot I tried COUNTIF(A28:A31,B28:B30)
    to see if the sequence Peter, glen, greg appears within the array A28:A31.

  2. #2
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: How to use Countif to test if a sequence appears within an array ?

    try this
    =COUNTIF($A$1:$A$4,B1)
    copy down

  3. #3
    Registered User
    Join Date
    12-28-2009
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: How to use Countif to test if a sequence appears within an array ?

    are you sure about this ?

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to use Countif to test if a sequence appears within an array ?

    Masterinex you can do with your formula also you just need to enter the array formula.That's it and you are done.
    =COUNTIF(A1:A4,B1:B3) enter the same with ctrl+shift+enter to make it array formula and just drag

    if you want to sum the result of the total count in one cell then just
    =Sum(COUNTIF(A1:A4,B1:B3)) and hit ctrl+shift+enter, You will get the total no of entry based on your criteria

    if you are satisfied encourage me by clicking SOLVED and if not get in touch.

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: How to use Countif to test if a sequence appears within an array ?

    for better understanding after entering formula see the formula evaluation in formula bar

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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