COUNTIF in a filtered list with an "IF" formula...HELP!

vllevy

New Member
Joined
Mar 23, 2011
Messages
1
I need help creating a formula that will count cells with a specific value after the list is filtered. The added issue I'm running into is the COUNTIF AND SUMPRODUCT functions do not work for me when the value showing in the cell is the result from the formula assigned to the cell, rather than the value just being typed in. For example, I have an "IF" formula that returns the value "YES" for a specific calculation, but countif or sumproduct functions will not count that cell with the formula in it that results in "YES" being displayed. But they will count the cell if I type the letters 'YES' in there. Can someone tell me how to adjust my formula so it will count the cell with the formula in it that gives me the result/value I am looking for? :banghead:

Here's the formula I am using to count the cells in the filtered list:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(K6:K9400,ROW(K6:K9400)-ROW(K6),0,1)),--(K6:K9400="YES"))

Thank you. 8-)
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Make sure that there's no extra space within the text value "YES" returned by your formula. If there's no extra space, try posting a sample of the formula being used to return "YES".
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,915
Members
452,949
Latest member
beartooth91

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