To count QuickBooks Online transaction records, run Transaction List by Date for the intended period, export it, and count the transaction rows after removing report headings and totals. You can do the calculation in Excel or use PowerShell to validate and count a cleaned CSV.
Do not use the row count from Transaction List with Splits as a unique-transaction total. A single transaction can contribute several accounting lines. For an AI data application, preserve the distinction between transaction records and split lines in the answer you submit.
This guide covers QuickBooks Online. Its portal is QuickBooks itself; the Microsoft 365 admin center does not report your accounting transactions. For the surrounding Microsoft tools, use our business data inventory guide.
Choose your method
| Method | Workflow | Best use |
|---|---|---|
| QuickBooks portal and Excel | Export the transaction report and count its data rows | A one-time inventory |
| QuickBooks export and PowerShell | Validate and count the cleaned CSV | A repeatable calculation with date checks |
The PowerShell method here starts after the QuickBooks export. It does not sign into Intuit, call the QuickBooks API or retrieve a company file directly.
Define the transaction scope
Ask which company file and period the buyer wants. Also ask whether it needs invoices and payments only, all transaction types available in the chosen report, or transaction detail lines for a separate dataset.
A report can be filtered, and report availability varies by product and plan. Confirm with the person responsible for the books that the selected report and filters cover the intended records, including any payroll or other categories the buyer specifically asks about.
If the buyer requires an exact unique-transaction count, you need a reliable transaction identity and a checked definition of one record. A reference number alone is not a safe universal key: different transaction types can reuse numbers, and some records may have no number.
Method 1 Count through the QuickBooks portal
Use an account with permission to run and export the relevant reports.
- Sign in to the correct QuickBooks Online company.
- Open Reports, then Standard reports if shown.
- Search for Transaction List by Date.
- Set the report period to All Dates, or use the exact dates requested by the buyer.
- Inspect the filters and run or refresh the report.
- Export to Excel through the report's export control or More actions → Export to Excel, depending on the report view.
- Save the original export, then make a working copy for cleaning and counting.
Intuit documents Transaction List by Date and its All Dates setting. Its list-report guidance explains that these reports can be exported for calculations even when they do not display a total. Intuit report selection steps (opens in a new tab), list report export guidance (opens in a new tab)
This workflow only needs the report selection and export steps. It does not require modifying or voiding any transaction.
Clean the export without losing real records
Remove the report title, company-name headings, blank separators, subtotals and grand-total rows from the working copy. Keep one header row and the actual transaction records. Retain any rows you cannot classify in a separate review sheet rather than deleting them by guesswork.
Check several known examples in QuickBooks against the exported rows: an invoice, a payment, a transfer, a journal entry and a transaction with several splits. Confirm whether each contributes one record or multiple rows under the chosen report settings.
If the export has multiple rows per transaction, a row count is a report-record count until you establish a valid deduplication key. Changing the title of the spreadsheet does not turn it into unique transactions.
Count in Excel
Convert the cleaned range to an Excel table named Transactions. If Date is a real Excel date in every record row, =COUNT(Transactions[Date]) counts those dated rows. Compare it with =ROWS(Transactions[Date]); a difference needs investigation because dates may be blank or stored as text.
Find the earliest and latest valid transaction dates in that same table. Record the report filters and export date beside the result. Those dates describe the selected report's records, not necessarily every record ever held in the company.
Method 2 Validate and count the CSV with PowerShell
Use the same portal export and cleaning process first. Save a CSV with one row per retained report record and these three column names:
Date,TransactionType,Reference
2020-03-19,Invoice,1001
2020-03-20,Payment,1001
2020-03-21,Deposit,This is a made-up format example, not a transaction extract from a business. Map your export's date, transaction type and reference columns to those headings. Save dates as yyyy-MM-dd so day and month are unambiguous. Keep other business columns in your private working file if you need them for review; the count script does not need customer names or amounts.
Run the following in PowerShell 7, replacing the input path. It reads the CSV locally, validates every selected record and saves a summary next to it. No additional module is needed.
$ErrorActionPreference = 'Stop'
$inputPath = Read-Host 'Full path to your cleaned transaction CSV'
$resolvedPath = (Resolve-Path -LiteralPath $inputPath -ErrorAction Stop).Path
$rows = @(Import-Csv -LiteralPath $resolvedPath)
if ($rows.Count -eq 0) { throw 'No transaction records found. Inspect the export.' }
foreach ($column in @('Date', 'TransactionType', 'Reference')) {
if ($column -notin $rows[0].PSObject.Properties.Name) {
throw "Missing column: $column"
}
}
$recordNumber = 0
$parsed = @(foreach ($row in $rows) {
$recordNumber++
$dateValue = [datetime]::MinValue
$validDate = [datetime]::TryParseExact(
$row.Date, 'yyyy-MM-dd',
[System.Globalization.CultureInfo]::InvariantCulture,
[System.Globalization.DateTimeStyles]::None,
[ref]$dateValue
)
if (-not $validDate) { throw "Record $recordNumber has an invalid Date. Use yyyy-MM-dd." }
if ([string]::IsNullOrWhiteSpace($row.TransactionType)) {
throw "Record $recordNumber has no transaction type. Review the source row."
}
[pscustomobject]@{
Date = $dateValue
TransactionType = $row.TransactionType.Trim()
Reference = ([string]$row.Reference).Trim()
}
})
$ordered = @($parsed | Sort-Object Date)
$reviewGroups = @($parsed | Where-Object { $_.Reference } |
Group-Object TransactionType,Reference | Where-Object { $_.Count -gt 1 })
$summary = [pscustomobject]@{
ReportRecords = $parsed.Count
EarliestTransactionDate = $ordered[0].Date.ToString('yyyy-MM-dd')
LatestTransactionDate = $ordered[-1].Date.ToString('yyyy-MM-dd')
RepeatedTypeReferenceGroups = $reviewGroups.Count
Definition = 'Cleaned report rows; unique transaction identity not established by this script'
CountedAt = (Get-Date).ToString('o')
}
$summary | Format-List
$outputPath = Join-Path (Split-Path -Parent $resolvedPath) ('quickbooks-summary-' + (Get-Date -Format 'yyyyMMdd-HHmmss') + '.csv')
$summary | Export-Csv -LiteralPath $outputPath -NoTypeInformationIf the script stops on a date or blank type, inspect the original report. A header or total row may still be present, or a date may have been saved in a different format. Correct the working copy from the source rather than skipping failed rows to get a cleaner-looking count.
Repeated type-and-reference pairs are review flags, not proof of duplication. The script reports them without removing anything. It also does not establish uniqueness for transactions with blank references.
Why split reports inflate the apparent count
In a November 2026 working inventory, Transaction List with Splits produced 157,457 rows. The notes estimated roughly 70,000–80,000 transactions, but an appropriate non-split count had not yet confirmed that estimate.
The usable answer at that stage was “157,457 split lines; unique transaction count pending.” Reporting precisely 75,000 transactions would imply a measurement that had not happened.
A single accounting entry can touch multiple accounts. There is no universal divisor that converts the split-row total into a transaction count. Use the intended report, inspect its record structure and retain the unit you actually counted.
Report historical coverage honestly
Use the earliest and latest valid transaction dates in the checked export. Do not substitute the date the business started or the date someone subscribed to QuickBooks.
Also avoid saying that “All Dates” means no records are excluded. It describes the period setting; other filters, report coverage and historical deletions can still matter. If particular transaction categories are important, reconcile them with the bookkeeper before making a completeness claim.
Paste this into the AI data questionnaire
QuickBooks Online: [count] [transaction report records/verified unique transactions] covering [earliest date]–[latest date]. Source: Transaction List by Date, exported [date] from [company scope]. Filters: [details]. Split lines: [excluded/treatment]. Transaction uniqueness: [validation method or not yet established].
For the rest of the application, return to the business data inventory checklist. Our guide to selling company data explains the wider process, and the data licensing fit page is the next step once your inventory is ready.