+ Reply to Thread
Results 1 to 5 of 5

How to use Countif with range and specific filter

  1. #1
    Registered User
    Join Date
    04-01-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    15

    How to use Countif with range and specific filter

    Hi -

    Can you please help me, I'm suppose to create a formula that counts the number of row in Column B ranges from 5 - 10 for Column A that is marked 'Pending'.

    Here's the table:

    1 Column A Column B
    2 Pending 10
    3 Pending 3
    4 Overdue 2
    5 Pending 5
    6 Overdue 2
    7 Overdue 2
    8 Overdue 2
    9 Completed 5
    10 Pending 1
    11 Overdue 0
    12 Pending 1
    13 Pending 0
    14 Pending 0

    In this example, I should be getting 2.

    Thanks in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to use Countif with range and specific filter

    sounds like homework?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: How to use Countif with range and specific filter

    Try this...

    =SUM((B2:B14>=5)*(B2:B14<=10)*(A2:A14="Pending"))

    Since this is an array formula, you must use array enter (CTRL-SHIFT-ENTER) instead of just ENTER... (you'll see the magical curly brackets around your formula if you did it right)

    Let me know if this works for you...

    Dennis

    Mabuhay!

    Note: since you only have the Excel 2003, this is one way to do this... SUMPRODUCT might work too... the newer versions, SUMIFS are the new formulas...
    Last edited by djapigo; 01-09-2013 at 05:29 PM.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to use Countif with range and specific filter

    @Fdibbins

    If so, i just point in the right direction.

    Or use sumproduct or sumif or pivot table for that.

    You can also use filter in combination with subtotal.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    04-01-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    15

    Talking Re: How to use Countif with range and specific filter

    Exactly what I want... Mabuhay.

    Thanks all!

    Quote Originally Posted by djapigo View Post
    Try this...

    =SUM((B2:B14>=5)*(B2:B14<=10)*(A2:A14="Pending"))

    Since this is an array formula, you must use array enter (CTRL-SHIFT-ENTER) instead of just ENTER... (you'll see the magical curly brackets around your formula if you did it right)

    Let me know if this works for you...

    Dennis

    Mabuhay!

    Note: since you only have the Excel 2003, this is one way to do this... SUMPRODUCT might work too... the newer versions, SUMIFS are the new formulas...

+ 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