COUNTIFS / COUNT combined?

ko1967

New Member
Joined
Jan 3, 2017
Messages
26
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.
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,631
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:

ko1967

New Member
Joined
Jan 3, 2017
Messages
26
Winner winner chicken dinner. That worked Tetra. Thanks so much. I need to keep in mind sumproduct when I want complex counting.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,511
Messages
5,596,576
Members
414,079
Latest member
Frills

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
Top