Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

Calc • Re: Count visible rows with criteria

$
0
0
Hi, and welcome to the forum.
I will like to calculate some data results where the formula will calculate the amount of cells from the column that is more than 0 after being applied some filters.
The only function I know of which can detect if a row has been filtered is SUBTOTAL with first operand 3. You can use that with SUMPRODUCT to get your count. I think you'll need to use an auxillary column to hold the SUBTOTAL formulas.

I don't know any way for a formula to know whether an empty filtered cell is visible.
 Edit: Use an auxillary column with formula =ROW() and have SUBTOTAL check that to determine which rows are filtered. 

[Tutorial] The SUMPRODUCT function

If you need any additional assistance attach a spreadsheet demonstrating the situation (remove confidential information then use Post Reply, not Quick Reply, and don't attach a picture instead of the spreadsheet itself). I will not help further unless you attach a spreadsheet document.

If this solved your problem please go to your first post use the Edit ✏️ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know

Statistics: Posted by MrProgrammer — Thu Oct 17, 2024 5:38 pm



Viewing all articles
Browse latest Browse all 1281

Trending Articles