+ Reply to Thread
Results 1 to 6 of 6

Counif with criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    9

    Counif with criteria

    Hi guys

    As a new user, I, first of all, wanna say that i love this board and have been using it extensively for the past few months. I've now come across a question I can't find an answer for - so hope you guys can help me out with this one (it should be a simple one ).

    I've got 3 coloumns:

    A = numbers 1-4 repetitively

    B = random numbers

    In C i want to find the number of times a specific number occurs in B if A is say 3:

    I believe it should be something like: C = if(a1=3,countif(b1:b##,

    Thx in advance.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: Counif with criteria

    =SUMPRODUCT((A1:A100=3)*(B1:B100=?))
    try this one
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    09-21-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Counif with criteria

    Thanks a lot man. It worked.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counif with criteria

    Here's another one...


    Data Range
    A
    B
    C
    D
    E
    F
    1
    2
    3
    10
    3
    10
    4
    3
    2
    63
    4
    4
    54
    5
    3
    69
    6
    4
    85
    7
    3
    10
    8
    1
    14
    9
    3
    5
    10
    4
    17
    11
    3
    63
    12
    3
    10
    13
    2
    66
    14
    3
    10
    15
    4
    36


    Count how many times A=3 and B=10

    This formula entered in F2:

    =COUNTIFS(A2:A15,D2,B2:B15,E2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-21-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Counif with criteria

    Thanks Tony Valko. That was the exact function I was looking for.

    Cheers!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counif with criteria

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Counif for row
    By amarrb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2011, 07:45 PM
  2. Counif calculation based on 2 criteria
    By Stuand in forum Excel General
    Replies: 10
    Last Post: 08-30-2011, 06:22 AM
  3. Counif
    By moglione1 in forum Excel General
    Replies: 5
    Last Post: 09-23-2005, 09:05 AM
  4. counif but not all the cells
    By thanks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. [SOLVED] counif but not all the cells
    By thanks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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