+ Reply to Thread
Results 1 to 4 of 4

Count cells if a range contains month of January and another range is greater than zero

  1. #1
    Registered User
    Join Date
    08-10-2018
    Location
    Minnesota
    MS-Off Ver
    Office 2016
    Posts
    4

    Count cells if a range contains month of January and another range is greater than zero

    Hello,

    I am trying to figure how to count cells if a range contains a date that is in the month of January and another range in the same row is greater than zero.

    I have read online that a blank cell will make Excel think that the blank cell is in the month of January. I do have a formula that will count the number of January cells that aren't blank correctly:

    =SUMPRODUCT((MONTH('Region'!$C$11:$C$101)=1)*('Region'!$C$11:$C$101 <>""))

    I want to add an extra criteria that will count cells in another range that are greater than 1

    =SUMPRODUCT((MONTH('Region'!$C$11:$C$101)=1)*('Region'!$C$11:$C$101 <>"")) and ('Region'!$G$11:$G$101>0)

    I have no idea how to do this. I have tried many combinations of things and cannot get it to work. I also cannot find anything online that covers this specific scenario.

    Any help would be greatly appreciated! Thanks!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells if a range contains month of January and another range is greater than zer

    Does this work for you?
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note in your description you state you want to count those in G that are greater than 1, but in your example formula you've put greater than 0.

    BSB

  3. #3
    Registered User
    Join Date
    08-10-2018
    Location
    Minnesota
    MS-Off Ver
    Office 2016
    Posts
    4

    Re: Count cells if a range contains month of January and another range is greater than zer

    This ended up doing it. Thanks for the help! I just had my parentheses in the wrong place and it was making the formula not work.

    =SUMPRODUCT((MONTH('Region'!$C$11:$C$101)=1)*('Region'!$C$11:$C$101 <>"")*('Region'!$G$11:$G$101>1))

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Count cells if a range contains month of January and another range is greater than zer

    Happy to help

    BSB

+ 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. [SOLVED] Count if row range contains a value greater than 0
    By Groovicles in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-18-2016, 06:55 AM
  2. [SOLVED] find value which is greater than in a range of cells and return the greater value
    By green369 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2015, 02:46 AM
  3. [SOLVED] Count number of cells in range since last number greater than zero
    By whitfieldcraig in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2015, 06:38 AM
  4. [SOLVED] Count cells in a range greater than cells in another range
    By D.Lovell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2013, 03:20 PM
  5. [SOLVED] again count for range greater than another
    By besbesmany in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-03-2012, 04:27 AM
  6. Replies: 6
    Last Post: 02-24-2012, 01:15 PM
  7. Count if Value in Range 1 greater than value in Range 2
    By solnajeff in forum Excel General
    Replies: 5
    Last Post: 11-24-2009, 08:34 PM

Tags for this Thread

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