+ Reply to Thread
Results 1 to 5 of 5

Count Using Multiple Criterias

  1. #1
    Registered User
    Join Date
    11-06-2010
    Location
    Vancouver, Washington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Count Using Multiple Criterias

    Hi All,

    I'm trying to create a formula that will count how many cells in column B fall within/between the range of column C (min) and column D (max).

    Please see attachment. Thanks in advance for any input!

    Thanks,

    Mario
    Attached Files Attached Files
    Last edited by Vancouver; 11-07-2010 at 05:01 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count Using Multiple Criterias

    Simplest to use 2 COUNTIFs

    Please Login or Register  to view this content.
    you could use a single SUMPRODUCT but above is preferable IMO.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,952

    Re: Count Using Multiple Criterias

    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    11-06-2010
    Location
    Vancouver, Washington
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Re: Count Using Multiple Criterias

    Hi All,

    Thank you so much for the inputs!

    DonkeyOte, your formula is just what I was looking for however can you explain how the formula below translates?

    For example, I would think that $B$B:$B$B,">"&$I2 should be $B$B:$B$B,"<="&$I2 because I need the count of all numbers in $B$B:$B$B less than or equal to $I2.

    =COUNTIF($B$B:$B$B,">="&$H2)-COUNTIF($B$B:$B$B,">"&$I2)

    Thanks again,

    Mario

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count Using Multiple Criterias

    Quote Originally Posted by Vancouver
    can you explain how the formula below translates?

    For example, I would think that $B$B:$B$B,">"&$I2 should be $B$B:$B$B,"<="&$I2 because I need the count of all numbers in $B$B:$B$B less than or equal to $I2.
    The function reads as:

    a) Count all transactions greater than or greater than or equal to start date

    This figure will be inclusive of transactions that exceed end date obviously so

    b) Subtract from that value the Count of all transactions that exceed the end date

    The resulting value is thus the count of all transactions between the two dates (inclusive)

+ 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