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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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