Countif with Filter

JW

Board Regular
Joined
Mar 17, 2002
Messages
72
I should know this, but it's escaping me right now, so..

I've got c13000 rows, with an IF function in Column D that I've filtered to show the #N/A results. From these, I want to count the number of rows where Column A shows Y. A Countif highlighting the filtered cells of column A picks up ALL of the Ys between the first and last filtered cells - how can I write this to show the total of Ys in Column A when Column D has #N/A?

TIA
 

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
Hi JW

You will no doubt be shown various array formulas for this, I suggest strongly againts them!!

Try this better method:

Copy the heading of Column A to Cell G1, Copy the heading of column D to cell H1
In G2 put Y
In H2 put #N/A

In any cell put:

=DCOUNTA(A1:D5000,4,G1:H2)


I ahve some more advanced examples of these great function here:
http://www.ozgrid.com/download/default.htm

Under:
DFunctionsWithValidation.zip
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,558
Latest member
aivin

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