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

philalethes

New Member
Joined
Aug 10, 2018
Messages
6
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!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the Board!

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

Does this work?
Code:
[COLOR=#333333]=SUMPRODUCT((MONTH('Region'!$C$11:$C$101)=1)*('Region'!$C$11:$C$101 <>"") *[/COLOR][B][B]('Region'!$G$11:$G$101>1))[/B][/B]
Note that you said "greater than 1", but had written ">0", so I am not sure which one you really want.
 
Upvote 0
That did it. I swore I tried that before, but I think I just had my parentheses in the wrong the place. Thanks!


Also, I did mean > 0. Sorry for the confusion.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top