[GNC] How to count transactions for time period

Stan Brown (using GC 4.14) stan+gc at fastmail.fm
Mon May 18 11:55:12 EDT 2026


On 2026-05-18 08:35, gnucash_2022 at michaelaltfield.net wrote:
> How can I get the total number of transactions in a GNU Cash DB for a given time period?
> 
> I need to determine the total number of transaction entries in my GNU Cash DB for the last accounting year. I don't want to manually count them.
> 
> I couldn't find a built-in GNU Cash report that includes the count of the transactions for the selected accounts for the selected time range.
> 
> Is there some report (or python script) that I can use to sum the total number of transactions for all accounts for a given time range in GNU Cash?
File » Export » Export Transactions to CSV

The wizard that opens says there will be one row for each transaction,
so all you have to do is open the exported file and look at the number
of the last row used.

It also says "While a transaction may have splits in several of the
selected accounts it will only be exported once" so you don't have to
worry about double counting.

Stan Brown
Tehachapi, CA, USA
https://BrownMath.com




More information about the gnucash-user mailing list