ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counting dates in filtered column (https://www.excelbanter.com/excel-worksheet-functions/448322-counting-dates-filtered-column.html)

curleyy

Counting dates in filtered column
 
Hi all,

I'm trying to count the number of cells that contain a date in a filtered column. I've been using the following formula, but it keeps coming back with a value of 0, even though there are 3 in the filtered row;

=SUMPRODUCT(--('Fixture Status'!J3:J1000="=0"),SUBTOTAL(3,OFFSET('Fixture Status'!J3,ROW('Fixture Status'!J3:J1000)-ROW('Fixture Status'!J3),0)))

Any suggestions as to where I'm going wrong??

Ron Rosenfeld[_2_]

Counting dates in filtered column
 
On Tue, 5 Mar 2013 16:01:43 +0000, curleyy wrote:


Hi all,

I'm trying to count the number of cells that contain a date in a
filtered column. I've been using the following formula, but it keeps
coming back with a value of 0, even though there are 3 in the filtered
row;

=SUMPRODUCT(--('Fixture
Status'!J3:J1000="=0"),SUBTOTAL(3,OFFSET('Fixtur e
Status'!J3,ROW('Fixture Status'!J3:J1000)-ROW('Fixture Status'!J3),0)))

Any suggestions as to where I'm going wrong??


why not just use the Subtotal(Count .... function?

=subtotal(2,'Fixture Status'!J3:J1000)


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com