Skip to content

Reclassify Miscoded Expenses in Excel with AI

What the source describes

In this Journal of Accountancy Tech Q&A, a CPA and accounting professor shows an accountant uploading a journal entry log where every expense was coded to Office Supplies. ChatGPT scans the Description column for keywords like laptop and monitor and builds a formula that adds a Reclassified Account column, for example moving those items to Computer Equipment. The author stresses checking the AI's work and never entering client or confidential information into ChatGPT.

Result or outcome

According to the source, this approach makes it easy to automate account corrections across hundreds or thousands of transactions and improves accuracy and audit readiness, provided the accountant verifies the formula's results.

How to run it

  1. Export the expense or journal entry log to Excel and remove client names and any confidential details before sharing it with an AI assistant.
  2. List the keywords that identify miscoded items, such as laptop or monitor, and the account each group of items should move to.
  3. Paste the prompt on this page into ChatGPT, Claude, Grok or Gemini, or upload the de-identified log, to get a keyword formula that adds a reclassified account column.
  4. Ask the assistant to break the formula down if it is complex, then filter rows where the suggested account differs from the original.
  5. Review each changed row against its source document, then prepare reclassification entries for the confirmed changes only.

Try it yourself

Copyable prompt

I have an Excel expense log where many purchases were coded to one catch-all account, [account name]. Columns are: Date (A), Vendor (B), Description (C), Amount (D), Account (E). Please write an Excel formula for column F, "Suggested Account", that checks the Description for keywords and returns a better account. Use these mappings: [keyword list] = [account], [keyword list] = [account]. If no keyword matches, return the original account from column E. Also explain how the formula works in plain language and give me a quick way to filter for rows where F differs from E so I can review each change before posting. I have removed all client names from the data.

Replace the [bracketed] placeholders. Remove client names, account numbers, and personal data before pasting into any AI tool.

What to review

The author stresses checking the AI's work, so test the formula on rows you already know the answer to and confirm keyword matches did not catch unrelated items, such as a monitor stand or a laptop bag. Confirm the reclassified totals tie back to the original account balance, and check equipment capitalization questions with the client's accountant before posting.

Related free download: 50 AI Prompts for Bookkeepers (Prompt pack (PDF))

Source: Journal of Accountancy

See also

Not professional advice. This is general information, not accounting, tax, legal or financial advice. Check AI output yourself and consult a licensed professional for your situation. See our Terms of Use.

This entry summarizes a public source. Features, plans, and availability change, so confirm details with the vendor. Tool names are trademarks of their respective owners.

  • Reporting and Analysis

    Build Horizontal, Trend and Ratio Analysis in Excel with AI

    A Journal of Accountancy technology Q&A shows how ChatGPT-4o can create Excel spreadsheets from scratch and analyze uploaded files. In the financial analysis example, the author pasted raw financial data and ChatGPT returned a workbook with tabs for Raw Financials, Horizontal Analysis, Trend Analysis and Ratio Analysis. The author advises being specific in the prompt if you want working formulas rather than values.

    Works in ChatGPT, Claude, Grok, Gemini

    Microsoft Excel

    Journal of Accountancy
  • Receipts and Expenses

    Chase Clients About Uncoded Transactions with an AI-Drafted Email

    The Firm's guide to ChatGPT prompts for bookkeepers argues that bank feeds and ledger rules already handle matching, so chat assistants are most useful for the writing around the ledger, starting with the email asking a client to explain transactions the bookkeeper cannot code. It recommends grouping similar items, numbering questions, requesting receipts, and following up with a shorter, firmer second chase. The article also says to strip names, tax identifiers and account numbers before pasting, use a firm-approved tier, and never let the assistant decide tax treatment or code from memory.

    Works in ChatGPT, Claude, Grok, Gemini

    The Firm (accounting publication)
  • Reporting and Analysis

    Benchmark a Client P&L Against Industry Norms by NAICS

    This TechNews.Tax newsletter post describes how a tax firm reviews Profit and Loss statements from clients who do their own books, using an AI prompt that compares the P&L to typical expense categories and percentages for the client's NAICS code. The prompt asks for a NAICS summary, a category and percentage comparison, a judgment on whether expenses are in line (within a 10% variance), and a risk explanation for outliers. The author uses the OpenAI API but notes the same process works in ChatGPT, Gemini, Copilot or similar tools.

    Works in ChatGPT, Claude, Grok, Gemini

    TechNews.Tax (newsletter)
  • Receipts and Expenses

    Categorize Leftover Expenses with AI After Bank Rules

    This Brocent guide argues that QuickBooks and Xero bank rules should handle recurring transactions deterministically, and that ChatGPT is best used for the residue of unrecognised payees, split transactions and anomaly review. It recommends exporting uncategorised transactions to CSV with the real chart of accounts, asking for a suggested category with a confidence note and flags, and reviewing everything before posting. It stresses never auto-posting AI output, keeping an audit trail and leaving tax judgements to an accountant.

    Works in ChatGPT, Claude, Grok, Gemini

    QuickBooks Online, Xero

    Brocent Blog