Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Countif

  1. #1
    New Member
    Join Date
    Apr 2002
    Location
    Pittsburgh
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am trying to count the number of values in one column based on a second criteria in a second column. In this case I want to count all "A"s in column B for which there is an "x" in column D.
    Any help would be very appreciated.
    Thanks!

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    {=SUM((B1:B10="A")*(D1:D10="X"))}

    Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. For more on array formulas see the Excel Help Index topic of "About array formulas and how to enter them".

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,647
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-23 09:30, Max wrote:
    I am trying to count the number of values in one column based on a second criteria in a second column. In this case I want to count all "A"s in column B for which there is an "x" in column D.
    Any help would be very appreciated.
    Thanks!
    =SUMPRODUCT((B2:B100="A")*(D2:D100="x"))

    You can also use cell refs instead of "A" and "x" if you have them in cells of their own.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •