Meant this to go to the list as well (accidentally sent only to Jame on
first reply)...

Expanding on Regina's answer... I routinely use subtotal as she suggests. I
insert a row above the rows of interest then put the subtotal formula above
the column that I want to count or sum.

Set the formula range from the first to last row, not including column
title.

To sum the displayed figures the 1st parameter of the function should be
109, to count the rows displayed the value should be 103.

Turn on Autofilter then filter as desired. The formula updates dynamically
as the displayed rows change.

The formula to sum displayed rows would be =subtotal(109,<range>)
Replace <range> with the correct value, e.g. A2:A25

On Mon, Jan 13, 2020 at 6:13 PM James <[email protected]> wrote:

> I've got a spreadsheet of all my bank transactions and I want to filter
> them by type and them the results.
>
> eg.
> Tran Type Amount
> 1     A   1.5
> 2     B   2.0
> 3     A   3.5
>
> I can use Data/More Filters/Standard Filer to get:
> Tran Type Amount
> 1     A   1.5
> 3     A   3.5
>
> but sum(C1:C3) gives 7.0 (the sum of the unfiltered spreadsheet.
>
> I can copy but filtered rows but that is too easy. :-)
> What is the hardest overkill way? :-)
> Maybe a template or macro that I can reuse.
> I just want to filter them so I can add up the interest I got.
>
>
> --
> To unsubscribe e-mail to: [email protected]
> Problems?
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy
>


-- 
Alan Boba
CISSP, CCENT, ITIL v3 Foundations 2011

-- 
To unsubscribe e-mail to: [email protected]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Reply via email to