+ Reply to Thread
Results 1 to 4 of 4

counting with relative criteria

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    counting with relative criteria

    Hi, I have a problem that I have no idea how to approach.

    I have two columns of data, B2:B40 and D2:D40. I wish to count every occurrence where Bx is equal to 5, AND Dx is equal to 400. (x indicates the same row) I expect this spreadsheet to grow a few hundred values every week . Any pointers? I am using Excel 2003.

    Thanks
    Last edited by quaaark; 10-23-2009 at 11:55 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: counting with relative criteria

    Try this with a range sufficient to allow for some period of expansion before you adjust it:

    =SUMPRODUCT(--($B$2:$B$1000=5), --($D$2:$D$1000=400))

    ...and welcome to the forum!
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-23-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: counting with relative criteria

    Wow, I never would have thought of using SUMPRODUCT like that. Ah well, now I will.

    Thanks!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: counting with relative criteria

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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