+ Reply to Thread
Results 1 to 3 of 3

sumproduct or countif

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    29

    sumproduct or countif

    I want to look at a column for a specific entry. Then looking in another column count how many times there is a corresponding entry in a specific range. Example: in column B look for the entry R1. Then look in column C for an entry from 18 to 25 that corresponds to R1 and give a count of the entries. I have been looking at sumproduct and countif and can't figure a way to enter the range criteria. A sample spreadsheet is attached.
    Last edited by mamig; 09-29-2010 at 06:46 PM.

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

    Re: sumproduct or countif

    No attachment but in general:

    =SUMPRODUCT(($B$1:$B$100="R1")*($C$1:$C$100>=18)*($C$1:$C$100<=25))
    (keep ranges as lean as possible)

    In XL2007 and beyond use COUNTIFS in preference to the above.

  3. #3
    Registered User
    Join Date
    10-10-2006
    Posts
    29

    Re: sumproduct or countif

    Thank you. That solved it.

+ 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