Turn a Bank Statement into a P&L Summary with ChatGPT and Excel
Published by CodeNicely, the product studio founded by Meghal Agrawal and Ujjwal Agrawal in 2017For: An operations manager or founder at a 10–30-person professional services firm who handles basic bookkeeping themselves but has no accounting degree and dreads month-end reporting
In this guide
By the end of this tutorial you'll have a categorized profit-and-loss summary built from your bank statement export, grouped by income and expense category and broken down by month, ready to send to your accountant or leadership team. Plan for about 45 minutes the first time you do it, and roughly 10 minutes each month after that once your ruleset is set.
Last verified: December 2026, against the tools' own documentation. AI tools change often — if a step no longer matches, check the sources at the end.
Who this is for, and what you'll get
You run operations or the whole business at a 10–30-person professional services firm. You export the bank CSV each month, you can navigate Excel, and you want a defensible P&L without paying for full bookkeeping software yet. You are comfortable copying prompts into ChatGPT but you are not writing formulas from scratch.
What you'll walk away with:
- A clean Excel file with one row per transaction, categorized into income and expense buckets that make sense for a services firm.
- A PivotTable P&L summary showing revenue, expenses by category, and net profit by month.
- A reusable categorization ruleset you can apply next month in minutes, not hours.
What you need
| Tool | Plan needed | Cost | Why |
|---|---|---|---|
| ChatGPT | Plus (or higher) for Advanced Data Analysis | $20/month for Plus | Reads your CSV, proposes a categorization ruleset, and can output a categorized file. The Free tier is limited to 3 file uploads per day and does not include full Advanced Data Analysis. |
| Microsoft Excel | Any modern version; Microsoft 365 or Excel 2021 unlocks the PIVOTBY function as an alternative to PivotTables | Check the current plan on Microsoft's pricing page | Imports the CSV cleanly, hosts the categorized data, and builds the P&L summary. |
| Your bank portal | Online banking login | Free | Source of the raw transaction export. |
A note on file limits before you start: ChatGPT accepts CSV and spreadsheet uploads up to about 50 MB per file, and paid plans allow up to 80 file uploads every 3 hours. A monthly bank statement is nowhere near either limit.

Step-by-step
The core idea most tutorials miss: don't paste transactions into ChatGPT and ask it to categorize them one-shot. Instead, use ChatGPT once to design a ruleset tailored to your business, then apply that ruleset inside Excel so you can reuse it every month.
-
Export your bank statement as CSV. In your bank portal, choose the CSV export (sometimes labeled 'Excel' or 'Spreadsheet'). CSV is the most reliable format for Excel import. Avoid the PDF export for this workflow.
-
Open the CSV in Excel the safe way. Do not double-click the file. Double-clicking can silently reformat dates (turning
2024-03-15into a serial number) and convert long account numbers to scientific notation. Instead: open a blank Excel workbook, go to the Data tab → Get Data → From File → From Text/CSV, select your file, check the preview (dates should look like dates, amounts like numbers), then click Load. This matters because any bad data at this step quietly corrupts your P&L later. -
Save a de-identified sample for ChatGPT. Before uploading, make a copy and delete the account number column if your export includes one. The description, date, and amount columns are what ChatGPT needs. This is a reasonable precaution for anything you send to a third-party service.
-
Ask ChatGPT to propose a ruleset, not to do the categorization. Open ChatGPT (Plus or higher), upload the sample CSV, and use a prompt like this:
I run a [professional services firm, ~20 people, mostly consulting revenue]. Attached is one month of our business bank statement as CSV, with columns Date, Description, Amount. I need you to do two things:
1) Propose a chart of accounts suitable for a small services firm, split into Income categories and Expense categories (Payroll, Contractors, Software & Subscriptions, Rent, Travel, Meals, Marketing, Professional Fees, Bank Fees, Taxes, Owner Draws, Other). Keep it short — 12 to 15 categories total.
2) Review the transaction descriptions in the file and give me a categorization ruleset as a table with three columns: Keyword/Pattern, Category, Notes. The keyword should be a substring that appears in the Description field. Order the rules from most specific to most generic. Flag any descriptions that are ambiguous and need my input.You're asking for a reusable rulebook. ChatGPT will return something like 'If Description contains STRIPE then Income – Client Revenue', 'If Description contains GUSTO then Expense – Payroll', and so on.
-
Review and correct the ruleset. This is the one step you cannot skip. Read every row. Fix anything wrong (ChatGPT often miscategorizes vendor names it doesn't recognize), add rules for anything missing, and resolve the ambiguous items it flagged. The ruleset is now yours, tailored to how your business actually spends money.
-
Have ChatGPT apply the ruleset and return a categorized file. In the same conversation, paste the corrected ruleset back and prompt:
Using the ruleset below, add two new columns to the uploaded CSV: 'Category' and 'Type' (where Type is either Income, Expense, or Transfer). Apply rules in order; the first matching keyword wins. For any row that matches no rule, set Category to 'UNCATEGORIZED' so I can review. Return the result as a downloadable .xlsx file.
[paste your corrected ruleset table here]ChatGPT's Advanced Data Analysis will run Python on the file and produce a download link to an .xlsx. Download it.
-
Open the categorized file in Excel and review UNCATEGORIZED rows. Filter the Category column for
UNCATEGORIZED. Either categorize those rows by hand or add new rules to your ruleset for next month. Also spot-check 10–15 categorized rows — treat ChatGPT's output as a first draft, not gospel. -
Build the P&L summary as a PivotTable. Select your data. Go to the Insert tab → PivotTable → place it in a new sheet. In the PivotTable Fields pane:
- Drag Type and then Category into Rows.
- Drag Date into Columns (Excel will auto-group by month, quarter, and year).
- Drag Amount into Values (it will default to Sum, which is what you want).
You now have a P&L: income rows on top, expense rows below, totals by month across the columns. Add a row at the bottom for net profit (Income total minus Expense total).
-
(Optional) Use
PIVOTBYinstead if you're on Microsoft 365 or Excel 2021. If you prefer a formula that updates automatically when you paste in next month's data,PIVOTBY(andGROUPBY) will group and sum by category without the PivotTable UI. Reached broader availability in mid-2025. -
Save the ruleset somewhere safe. Paste the ruleset table into a tab called 'Ruleset' in your workbook, or into a notes doc. Next month, you'll start at step 6 — upload the new CSV, paste the ruleset, get a categorized file back. Minutes, not hours.
A worked example
Say you run a 20-person branding consultancy. You export March as march-2026.csv with 180 rows and columns Date, Description, Amount.

Sample descriptions in the raw file:
STRIPE TRANSFER ACME CO INV-1041 GUSTO PAY 032026 AWS CLOUD SERVICES FIGMA.COM SUBSCRIPTION UBER TRIP 03/14 WEWORK MONTHLY MEMBERSHIP TRANSFER TO SAVINGS CHASE WIRE FEE
After step 4, ChatGPT returns a ruleset including:
STRIPE → Income – Client Revenue GUSTO → Expense – Payroll AWS → Expense – Software & Subscriptions FIGMA → Expense – Software & Subscriptions UBER → Expense – Travel WEWORK → Expense – Rent TRANSFER TO → Transfer (exclude from P&L) WIRE FEE → Expense – Bank Fees
What a good P&L summary looks like after step 8: a two-level row structure with Income at the top showing Client Revenue of, say, $142,000 for March, then Expense rows for Payroll ($78,000), Software & Subscriptions ($4,200), Rent ($9,500), Travel ($1,100), Bank Fees ($120), and a net profit row of $49,080. Transfers between your own accounts should not show up in either Income or Expense.
If any number looks off by an order of magnitude, that's almost always a categorization error or a sign-convention problem (expenses coming through as positive instead of negative). Fix it at the ruleset level, not the PivotTable.
Limits and gotchas
- ChatGPT is not an accountant. The categorized output needs a human sanity check every month. Treat 'UNCATEGORIZED' rows and any row over a threshold you care about (say, $500) as must-review.
- Sign conventions. Some banks export expenses as negative amounts, some as positive in a separate 'debit' column. Confirm your bank's convention before you sum anything, or your net profit will be nonsense.
- Transfers and owner draws. These are not expenses. Make sure your ruleset labels them as Transfer or Owner Draw and that your PivotTable filters them out of the expense total.
- Accrual vs. cash. This workflow produces a cash-basis P&L — it reflects money in and out of the bank, not invoices sent or bills owed. That's fine for a quick internal view; for anything official, hand it to your accountant.
- File handling limits. CSV uploads to ChatGPT are capped at about 50 MB per file, and paid plans allow up to 80 uploads every 3 hours. OpenAI may lower these at peak times.
- Privacy. You're uploading transaction data to a third-party service. Strip account numbers, check your firm's data policy, and consider whether a Business or Enterprise ChatGPT plan is more appropriate than a personal Plus account for recurring use.
- CSV import quirks. Always import through Data → Get Data → From Text/CSV. Double-clicking a bank CSV can silently corrupt dates and long numbers.
When not to use AI for this, and honest alternatives
This workflow is great for a founder or ops lead who wants a monthly internal view of the P&L. It's not the right tool when:
- You need audited or tax-ready books. Use a proper bookkeeping system (QuickBooks, Xero, Wave) and have an accountant review. These platforms also handle accrual accounting, which this workflow does not.
- You already have accounting software. Most platforms have bank feeds and rule-based categorization built in. Use them.
- You have hundreds of thousands of transactions per month. At that volume you need either accounting software or a proper data pipeline, not a chat interface.
- Your transactions include sensitive personal data that your firm's policies don't allow you to send to a third-party AI service. Keep it in Excel and build the ruleset manually using Find & Replace or a lookup table.
Frequently Asked Questions
Do I need ChatGPT Plus, or will Free work?
You need Plus (or higher). Advanced Data Analysis — the feature that lets ChatGPT read your CSV and return a categorized file — is not available on the Free tier, and Free is limited to 3 file uploads per day. Plus is $20/month and is enough for this workflow.
Can I use this with a PDF bank statement instead of a CSV?
ChatGPT can accept PDFs, but bank statement PDFs often have layout quirks that produce messy extracted tables. CSV is far more reliable. If your bank only offers PDF, ask ChatGPT to extract a clean CSV first, then review that CSV carefully before continuing.
How do I handle months where new vendors appear?
Any transaction with no matching rule will be tagged UNCATEGORIZED. Review those rows, decide the right category, and add a new rule to your saved ruleset. Over three or four months your ruleset stabilizes and new entries become rare.
Can Excel do all of this without ChatGPT?
Yes, if you're comfortable with Power Query, lookup tables, and PivotTables — Excel gives you the toolbox, you assemble it. ChatGPT's value is mostly in building the first ruleset quickly and handling messy transaction descriptions. Once the ruleset exists, you could apply it in Excel alone using a VLOOKUP or XLOOKUP against a keyword table.
Is the output good enough to send to my accountant?
As a starting point, yes. As a final deliverable, no — your accountant will want to reconcile against invoices, bills, and payroll records, and may adjust for accrual accounting. Think of this as the summary that saves them (and you) hours of prep work.
If you find yourself running this every month for multiple entities or needing deeper controls, a custom-built internal tool starts to make sense — that's the kind of thing CodeNicely builds.
Sources & further reading
- Uploading files and audio to ChatGPT – OpenAI Help Center
- Analyzing data with ChatGPT – OpenAI Academy
- Improvements to data analysis in ChatGPT – OpenAI Blog
- About ChatGPT Pro tiers – OpenAI Help Center
- ChatGPT Plans 2026: Free, Go, Plus, Pro, Business and Enterprise Compared – IntuitionLabs
- ChatGPT File Upload Limits (2026): Size, Count, Storage – chatgptlimit.com
- ChatGPT Max File Size: Upload Limits Across Plans (2026) – fast.io
- ChatGPT Data Analysis Review 2026 – buildfastwithai.com
- How to Import Bank Statements into Excel – thebricks.com
- Does Excel Have a Built-In Tool for Bank Statement Conversion? – supaclerk.com
Get one practical guide a week
Costs, AI tools, partner selection — written for people who make the decision. No spam, unsubscribe anytime.
Thanks — you're on the list. One practical guide a week, nothing else.
That didn't work — please check the email address and try again.
Building something in Finance & Accounting?
CodeNicely partners with founders and tech teams to ship AI-native products that move metrics. Tell us about the problem you're solving.
Talk to our team Book a 30-min call_1751731246795-BygAaJJK.png)