CountIF only on visible rows

David Donker

New Member
Joined
Apr 23, 2013
Messages
16
Hi guy's,

The title of this speaks for itself. At the moment I'm using checkboxes to hide some rows, and I want to count the visible rows with a certain value.

Originally I used this formula:
=COUNTIF(Totaal!B3:B10000;"V")

But this also counts the hidden rows. How can I only count the visible rows with this formula?
 
Ha thx a lot, this made the difference!

It only seems that the 'smaller than' formula must be done before the ''=''. So you get:
=SUMPRODUCT((Totaal!C3:C10000<=14)*SUBTOTAL(102;OFFSET(Totaal!C3;ROW(Totaal!C3:C10000)-ROW(Totaal!C3);0)))

Thanks for getting the formula to work and the explanation to why. I think I can get my entire workbook running now!
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,182
Messages
6,123,517
Members
449,102
Latest member
admvlad

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