Chapter 8: Audit Analytics in Excel

Accounting Analytics: An Integrated Approach

In this chapter

Part II of V: Accounting Analytics with Excel

Chapter 5 of 5 in this Part

  • 8.1 Audit Analytics and the Internal Auditor
  • 8.2 Reconciling the Population
  • 8.3 Stratification
  • 8.4 Benford’s Law
  • Guided Tutorial 8.1
  • 8.6 Aging and Reconciling Receivables
  • Guided Tutorial 8.2
  • 8.8 Journal Entry Testing
  • Guided Tutorial 8.3
  • 8.10 Duplicate, Gap, and Threshold Tests
  • 8.11 Documenting Audit Analytics
  • 8.12 Looking Ahead

Learning objectives

  1. Explain how internal and external auditors use data analytics on whole populations, and reconcile a population to the general ledger before testing it.
  2. Stratify a population by value and use the strata to direct audit attention.
  3. Perform a first-digit test of Benford’s Law, measure conformity with the mean absolute deviation, and explain a nonconformity that has a legitimate cause.

Learning objectives (continued)

  1. Age receivables at an as-of date, reconcile the aged detail to the general ledger, and select balances for confirmation.
  2. Test journal entries for characteristics of management override, combine the results into a risk score, and record a disposition for each exception.
  3. Design duplicate, gap, and threshold tests, and document audit analytics in a workpaper that another auditor can review.

Can the numbers be relied on?

  • The audit committee has asked internal audit for a data-driven review
  • You review the supplier payments, the receivables and the journal entries
  • The question is not what the numbers mean, but whether they can be trusted
  • Is each population complete, does anything look unusual, does the ledger agree?

8.1 Audit Analytics and the Internal Auditor

Analytics lets auditors test whole populations

  • Internal auditors work for the organization and report to its audit committee
  • External auditors are independent and give an opinion on the statements
  • Both need complete, valid transactions and controls that worked
  • A test of every record returns exceptions, and judgment explains them

An audit analytics workflow

A diagram of six steps in a row, joined by arrows: the objective, which states the risk the test addresses and what an exception would look like; the population, which is imported and agreed to the ledger; the tests, which stratify, profile, and flag records; the exceptions, which are examined against source documents; the disposition, which classifies each exception as expected with evidence, to follow up, or a misstatement; and the workpaper, which records the work for a reviewer. A dashed arrow loops back from the exceptions to the tests, labeled to refine the test and rerun it when most exceptions are false positives.
Figure 8.1 · An Audit Analytics Workflow

Watch out: closing entries cut both ways

  • Year-end closes move each year’s revenue and expenses to retained earnings
  • Leave them out of any analysis of revenue or expenses by period
  • Keep them in a journal entry test: a close is a journal entry like any other
  • Entries at the end of a period are the ones auditing standards single out

8.2 Reconciling the Population

Agree the population to the ledger before testing

  • A population is every record a test’s conclusion covers
  • A test on an incomplete extract can find nothing because records are missing
  • Agree its count and total to the ledger, such as the cash credits of payments
  • Use the same cutoff on both sides; agreement is in total, not record by record

8.3 Stratification

Stratify to see where the dollars are

  • Strata group a population by value, with a count and a total for each
  • Many small items and a few large ones: the few can carry much of the value
  • The largest items are examined one by one, the richest strata most carefully
  • Keep the strata bounds in cells, counted with COUNTIFS and summed with SUMIFS

8.4 Benford’s Law

First digits follow Benford’s Law

  • In many data sets, about three in ten numbers start with 1, and under one in twenty with 9
  • The expected share of first digit d is LOG10(1+1/d)
  • It is plausible for amounts that combine many quantities and span several magnitudes
  • Departures can point to invented or altered amounts (Nigrini and Mittermaier)

Not every population should be expected to conform

  • Assigned numbers, such as invoice or check numbers, are unsuitable
  • A minimum, a maximum or a size-based selection can distort the digits
  • So can amounts people set, such as prices ending in 99
  • A population shaped by them needs a reason to expect the pattern

Judge conformity with the mean absolute deviation

Table 8.1 · Practical first-digit screening ranges for the mean absolute deviation

MAD of the first-digit test Conclusion
0.000 to 0.006 Close conformity
Above 0.006 to 0.012 Acceptable conformity
Above 0.012 to 0.015 Marginally acceptable conformity
Above 0.015 Nonconformity

A nonconformity shows where to look

  • It does not show that anything is wrong
  • The digits that differ most lead to the subsets that need an explanation
  • The explanation is often a feature of the business, such as a way of paying
  • Use the test to point to subsets, not to pick a sample by what it removes

Check your understanding

Should each set of numbers be expected to follow Benford’s Law?

  1. Supplier payment amounts over three years
  2. Check numbers
  3. Only the payments above an approval threshold
  4. Retail prices that end in 99

Measured amounts are the candidates to conform

  1. Likely: measured amounts that span several magnitudes
  2. No: assigned numbers carry no magnitude
  3. Not without a reason: a subset selected by its size
  4. Not without a reason: prices set by people’s preferences

Guided Tutorial 8.1: Stratifying and Testing Supplier Payments

Test the payments in nine steps

  1. Create the audit workbook and import the payments
  2. Reconcile the population to the ledger
  3. Stratify the payments
  4. Examine the top strata in full
  5. Add the first digit of each payment
  6. Compare the first digits with Benford’s Law
  7. Split the payments into full and partial payments
  8. Measure the conformity of each subset
  9. Document the tests

Four payments make up the top strata

A mock of the Strata worksheet, with the COUNTIFS formula of cell C2 in the formula bar. For five strata, from zero to 1,000 dollars up to 100,000 dollars and above, it shows the lower and upper bounds, the number of payments and their share, and the value and its share, with a total row. The smallest stratum holds most of the payments but a small part of the value; the two top strata, outlined, hold only four payments.
Figure 8.2 · Supplier Payments Stratified by Amount

Count the first digits and measure the MAD

Detail of the Benford worksheet, with the COUNTIF formula of cell C2 in the formula bar. The table lists the digits 1 to 9, with the share Benford's Law expects, the count of payments, the actual share and the absolute difference for each digit, then a total row. The outlined MAD, the average of the nine differences, closes the table. The chart is not part of this detail.
Figure 8.3 · A First-Digit Test of Supplier Payments (detail)

Fewer ones, and more high digits, than expected

Detail of the chart of the first digits of the payments, with a column for each digit's actual share of the payments and a line for the share Benford's Law expects. The columns for the first three digits fall short of the line, and the columns for the digits from 4 on reach or exceed it. A legend and a note on how the differences and the MAD were calculated sit below. The table is not part of this detail.
Figure 8.3 · A First-Digit Test of Supplier Payments (detail)

Partial payments explain the nonconformity

Two combo charts side by side, each with actual proportions as columns and Benford's expected proportions as a line. The left chart, for full payments, follows the expected line closely and is labeled with a mean absolute deviation in the acceptable range. The right chart, for partial payments, departs sharply: the digits 2 and 3 are far below the line and the digits 5 to 9 far above it, with a mean absolute deviation in the nonconformity range.
Figure 8.4 · First Digits of Full and Partial Payments

Checkpoint

Check that:

  • the Population worksheet shows no difference in count or total between the Payments Table and the ledger;
  • the stratification totals equal the population, and the top two strata hold four payments;
  • no payment has a LeadDigit of 0;
  • the MAD of all payments is marginally acceptable, the full payments conform acceptably, and the partial payments do not conform.

8.6 Aging and Reconciling Receivables

An aging sorts open balances by days past due

  • Buckets such as current, 1 to 30, 31 to 60, 61 to 90 and over 90 days
  • It serves the credit department and the estimate of uncollectible amounts
  • The FASB’s credit-loss standard requires an estimate of expected losses, often from an aging
  • The as-of date matters: later payments must not reduce the balance

Reconcile the aging to the ledger

  • The open invoices are the detail behind the receivables account
  • A reconciliation lists the ledger balance, the detail and every reconciling item
  • Expected items, such as an unmatched receipt, clear in a later period
  • An item no one can explain is a finding in itself

Confirm the largest balances; sample the rest

  • A confirmation asks the customer to state its balance directly to the auditor
  • The largest balances are confirmed in full, as individually significant items
  • The rest are sampled at random, so every balance can be chosen
  • RANDARRAY and SORTBY shuffle the list; freeze it with Paste Values

Check your understanding

How does each item enter the receivables work?

  1. A payment applied after the as-of date
  2. A difference from the ledger that no one can explain
  3. The customers with the largest balances
  4. All the other customers

Each item has its place

  1. Left out: the balance is aged as of the reporting date
  2. A finding: the aging does not describe the whole balance
  3. Confirmed in full, as key items
  4. Sampled at random, and the selection frozen as values

Guided Tutorial 8.2: Aging Receivables and Reconciling Them to the Ledger

Age and reconcile in eight steps

  1. Import the invoices, receipts, and credit memos
  2. Calculate the open balance of each invoice
  3. Age the open invoices
  4. Summarize the aging
  5. Reconcile the aging to the ledger
  6. Investigate the difference
  7. Select balances for confirmation
  8. Record the findings

The ledger holds a balance with no invoice detail

A mock of the Aging worksheet, with the SUMIFS formula of cell C12 in the formula bar. The as-of date is December 31, 2026. For the five buckets, from current to over 90 days, it shows the number of open invoices, their balance, and their share, with a total; most of the balance is current and the buckets past 30 days hold very little. Below, the open invoices are compared with the balance of account 1020 in the ledger, and the difference, a round amount, is outlined.
Figure 8.5 · The Receivables Aging Reconciled to the Ledger

The difference traces to one journal entry line

A mock of a PivotTable of the LedgerAR query with AccountID and SourceDocumentType in the rows, and the count of rows and the sum of Amount as values. Only AccountID 3 appears, with rows for cash receipt applications and credit memos, which are negative, sales invoices, which are positive, and a single journal entry row, outlined. Below, the Show Details worksheet lists that row: dated January 1, 2024, voucher JE-2024-000001, described as the accounts receivable opening balance.
Figure 8.6 · Accounts Receivable in the Ledger by Source Document

Checkpoint

Check that:

  • about a thousand invoices are open, and no open balance is negative;
  • the aging total equals the sum of the OpenBalance column, and most of it is current;
  • the difference between account 1020 and the open invoices is a round amount, traced to one journal entry line;
  • the PivotTable shows no rows for accounts 1030 and 6170;
  • the Confirmations worksheet lists the key items and a random sample of twenty other customers, pasted as values.

8.8 Journal Entry Testing

Journal entries are where controls can be overridden

  • Managers can bypass controls that work for everyone else: management override
  • Fraud often involves unauthorized entries during the year or at period end (AS 2401)
  • Warning signs: unusual accounts, unusual creators, period-end or post-closing timing
  • Round numbers or a consistent ending number are another

Six characteristics become six tests

Table 8.3 · Characteristics of journal entries and the tests that look for them

Characteristic Charles River columns Test in Tutorial 8.3
Made by individuals who typically do not make journal entries (AS 2401) CreatedByEmployeeID Entries by creator
Recorded at the end of a period or after it (AS 2401) PostingDate, CreatedDate Backdated flag, a partial screen for entries created after their posting date
Round numbers or a consistent ending number (AS 2401) TotalAmount RoundAmount flag
Created at an unusual time CreatedDate Weekend flag
Approved by the person who made it CreatedByEmployeeID, ApprovedByEmployeeID SelfApproved flag
Approved above the approver’s authority TotalAmount, MaxApprovalAmount AboveLimit flag

A risk score ranks entries for review

  • Each flag is TRUE or FALSE, and their sum is a risk score
  • A score ranks entries; it is not a probability of fraud
  • Several flags come first in review, though they can share one cause
  • Equal weights are a judgment too

Every exception gets a disposition

  • Many flagged entries are false positives, legitimate entries that meet the criteria
  • Expected: record the evidence that explains it
  • Follow up: record the question to ask and the document to request
  • A misstatement or control deficiency: report it

Check your understanding

What disposition does each flagged entry get?

  1. Depreciation entries created on month-ends that fell on a weekend
  2. Year-end closes above every approver’s limit
  3. An entry created days after its posting date, with no explanation
  4. An entry approved by the person who created it

Expected, or follow up

  1. Expected timing pattern, but verify the depreciation schedule and approval before clearing
  2. Expected in size, but request the closing-entry authority
  3. Follow up: ask why, and request the support
  4. Follow up, as a possible control deficiency: segregation of duties

Guided Tutorial 8.3: Testing Journal Entries for Management Override

Test the journal entries in seven steps

  1. Import the journal entries with their creators and approvers
  2. Add the five flags
  3. Combine the flags into a risk score
  4. Separate the expected patterns
  5. Record a disposition for each flagged entry
  6. Trace the highest-scoring entry to the ledger
  7. Complete the workpaper

One entry carries four flags

A mock of the JournalEntries Table sorted by RiskScore, with the RiskScore formula in the formula bar. It shows the entries that score two or more, with their entry number, entry type, total amount, the five flags as TRUE or FALSE, and the score. The first row, outlined, is the opening balance entry, with four flags. The entries that follow score two: a rent entry and four debt principal and interest entries, flagged as created on a weekend and backdated, and two debt reclassifications, flagged as above the approver's limit and round amounts.
Figure 8.7 · Journal Entries Sorted by Risk Score

The highest score is the opening balance entry

A mock of the Drilldown worksheet, with the FILTER formula of cell A4 in the formula bar and the entry number JE-2024-000001 in B1. Eighteen spilled rows list the account number, account name, debit, and credit of each ledger line of the entry: cash, accounts receivable, inventories, prepaid expenses, and equipment on the debit side; accounts payable, accruals, accumulated depreciation, common stock, and retained earnings on the credit side. The accounts receivable line is outlined.
Figure 8.8 · The Ledger Lines of the Opening Balance Entry

Its receivables line has no invoice detail behind it

Detail of the top of the Drilldown worksheet, with the FILTER formula of cell A4 in the formula bar and the entry number JE-2024-000001 in cell B1. The first five of the spilled ledger lines show the debits to cash, accounts receivable, finished goods inventory, materials inventory and prepaid expenses, each with a zero credit. The accounts receivable line, the amount no invoice supports, is outlined. The remaining lines of the entry are not part of this detail.
Figure 8.8 · The Ledger Lines of the Opening Balance Entry (detail)

Checkpoint

Check that:

  • the five flag columns and RiskScore calculate for every entry, and only one entry scores 4;
  • the PivotTables show the patterns behind the weekend depreciation entries and the year-end closes;
  • the Dispositions worksheet holds a disposition for every entry with a score of 1 or more;
  • the totals of the JournalEntries and JournalLines Tables agree, the ledger’s debits equal its credits, and the Drilldown worksheet shows the accounts receivable line of JE-2024-000001.

8.10 Duplicate, Gap, and Threshold Tests

Near-duplicates catch what exact duplicates miss

  • A duplicate payment need not repeat a reference number
  • Look for the same supplier and amount on different dates
  • Add the invoice as a criterion to tell a second payment from a second invoice
  • About a hundred such pairs each pay two different invoices: likely ordinary

Gap tests need a series meant to be continuous

  • Check the numbers are unique, then compare the count with largest less smallest, plus one
  • Charles River’s invoice, entry, order and receipt numbers run without gaps
  • A clean result is recorded as carefully as an exception
  • ACH and wire payments explain most check-number gaps, and two gaps relate to reused check numbers

Threshold tests look just below the line

  • People avoiding a control keep amounts just under its threshold
  • Count the items in narrow bands just below and just above each limit
  • Look for consecutive documents with the same requester and amount
  • They may be one purchase split to stay under a limit

Earlier tests join the audit program

  • Requisitions converted to orders without an approver (Exercise 2.5)
  • Invoice numbers whose year differs from their date (Exercise 5.2)
  • Suppliers sharing an employee’s address (Exercise 5.5)
  • Unapproved suppliers and items sold outside their life (Exercise 5.6)

8.11 Documenting Audit Analytics

A workpaper another auditor can follow

A mock of the WP Journals worksheet, with workpaper labels in the first column and entries in the second: the objective, based on AS 2401; the source tables; the population check, which agrees the entries' totals with their ledger lines; the procedure, with the five flags and the risk score; the parameters of each flag; the results, as the number of entries with one, two, and four flags; the exceptions and their dispositions; the conclusion, which leaves the approval of opening and recurring entries open for follow-up; and blanks for the preparer and the reviewer.
Figure 8.9 · A Workpaper for the Journal Entry Tests

Analytics depends on reproducibility and dispositions

  • Record the extract, its as-of date and every test’s parameters
  • Then the workbook can be refreshed and the tests rerun
  • A test is complete only when every exception has a disposition and evidence
  • A test that flags nothing is a result to record, not a test to omit

8.12 Looking Ahead

What the review found

  • Payments: agree with the ledger; the largest identified; the nonconformity plausibly explained
  • Receivables: part of the balance has no invoice detail, and no allowance
  • Journal entries: approval exceptions, led by the opening balance entry
  • Next: the Part II case, then Part III and the database

Summary

  • Reconcile a population to the ledger before testing it
  • Stratification shows where the dollars are; Benford’s Law where to look
  • An aging reconciled to the ledger shows what the detail cannot support
  • Journal entry flags rank entries by risk; every exception gets a disposition
  • Duplicate, gap and threshold tests, documented so another auditor can follow

Key terms

Aging schedule · Allowance for credit losses · Audit workpaper · Backdated entry · Benford’s Law · Confirmation · Control deficiency · Disposition · Exception · False positive · First-digit test · Gap test · Individually significant item · Journal entry testing · Management override of controls · Mean absolute deviation (MAD) · Near-duplicate · Population · Reconciliation · Reconciling item · Risk score · Sampling risk · Segregation of duties · Stratification · Threshold test · Tolerable misstatement

Practice and next steps

  • Financial Accounting
    • Exercise 8.1: Estimating the Allowance for Credit Losses
    • Exercise 8.2: Reconciling Accounts Payable to the Ledger
  • Managerial Accounting
    • Exercise 8.3: Customer Credit Exposure
    • Exercise 8.4: Supplier Concentration and Payment Timing
  • Auditing
    • Exercise 8.5: Testing Purchasing and Payment Controls
    • Exercise 8.6: Testing Pricing Controls

Next: Comprehensive Case: Deciding on the 2027 Promotion Calendar

About these slides

These slides accompany Accounting Analytics: An Integrated Approach, licensed under CC BY-SA 4.0. Every figure and table comes from the chapter:

https://aa.accountinganalyticshub.com/chapters/08-audit-analytics/chapter.html