COUNTIFS / COUNT combined?

ko1967

New Member
Joined
Jan 3, 2017
Messages
27
I have 2 columns. Column A contains dates. Column B contains a formula that populates a value based on other criteria. Once the criteria in the formula and a value is present in column B I cut/paste the value into the same cell so that column B contains a bunch of formulas or values (i.e. numbers).

I want to count the number instances where column A is between two dates and column B contains a number. The first part is easy.

COUNTIFS(a1:a999,a1:a999,"<"&X,a1:a999">"&Y) ... where x and y are valid dates.

The problem I'm encountering is when I try to add another argument to the above COUNTIFS (i.e. ,b1:b999,"<>" because the non number cells contain a formula) or (,b1:b999,"<0" because the number could be any number including ).

What I really want is to use COUNT with more if arguments.

Thanks to anyone who can solve my challenge.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Will this work for you?

=SUMPRODUCT(--($A$1:$A$999>Y1),--($A$1:$A$999 < X1),--ISNUMBER($B$1:$B$999))<x1),--isnumber($b$1:$b$999))< html=""></x1),--isnumber($b$1:$b$999))<>
 
Last edited:
Upvote 0
Winner winner chicken dinner. That worked Tetra. Thanks so much. I need to keep in mind sumproduct when I want complex counting.
 
Upvote 0
Using a well-known constant of Excel, we can reasonably duplicate an array-processing approach with COUNTIFS...

=COUNTIFS($A$1:$A$999,">"&Y1,$A$1:$A$999,"<"&$X$1,$B$1:$B$999,"<="&9.99E+307)
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,783
Members
449,049
Latest member
greyangel23

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