AI for Excel Accounting: A Practical Guide
Most accounting work still runs through Excel. That covers reconciliations, accrual schedules, flux analysis, the management pack, and the workbook someone built years ago that nobody wants to touch. AI doesn't replace any of it. What it does well is take the slow parts off your plate: working out the right formula, explaining an error, cleaning a messy export, and drafting the first version of a report you'll then check and polish.
This guide covers how to use AI in Excel for accounting in everyday work. We'll look at which tools to use, how to ask for what you need, and where you still have to check the output yourself. Each of the six core tasks gets a short section with prompts you can copy. Each task also has its own detailed guide if you want to go further. If most of your Excel work happens at period end, our guide to AI for month-end close shows how these tasks fit into the wider close.
Excel and data with AI: Get formulas, cleanup and analysis help without the guesswork.
See the Excel courseWhat "AI in Excel" actually means
When people talk about Excel AI for accounting, they usually mean one of three setups. Most accountants end up using more than one.
Copilot in Excel. Microsoft's assistant lives inside Excel. You open a pane and ask in plain English, and it can read your workbook, suggest formulas, add columns, build PivotTables and charts, and highlight or sort data. Its default editing mode goes further and carries out several steps in a row inside the workbook, such as building a whole schedule. Copilot works best on files saved to OneDrive or SharePoint with AutoSave turned on, and on data formatted as an Excel table.
A general AI chat assistant beside Excel. Tools like ChatGPT, Claude and Gemini usually work in their own window rather than inside your workbook (ChatGPT and Claude also offer Excel add-ins), but they're very good at writing and explaining formulas, drafting Power Query M code, writing VBA, and talking through how to structure a model. You describe your layout, they give you something to paste back in. Several of them can also open an uploaded spreadsheet and analyze it directly.
AI built into your accounting stack. Your ERP, close-management software or reporting tool may have its own AI features that feed Excel. These are worth exploring, but this guide focuses on Excel itself. Our guide to how to use AI in accounting covers the wider picture.
Before you start: protect client and company data
Read this part before you paste a single number. Financial data is sensitive, and the AI tool you use matters.
- Use the version your firm has approved. A work account under Microsoft 365 Copilot, or a business or enterprise plan of another assistant, usually comes with commitments that your data won't be used to train models. A free personal account often doesn't come with the same protections.
- Strip what you don't need. For formula help, the AI rarely needs real figures. Describe the columns, or paste a few rows with names and amounts changed.
- Keep a human in the loop. You sign off on the numbers, not the AI. Everything below assumes you'll check the output.
How to ask Excel questions so you get useful answers
The single biggest improvement you can make is giving the AI your layout. "Write a formula to match invoices" gets you something generic. Tell it exactly which sheet, which columns, which rows and what the result should look like, and you'll usually get a formula you can paste straight in.
A good request usually includes:
- Where the data lives. Sheet names, column letters, header row, and whether it's a table (and the table's name).
- What you want. The result, in plain words, and where it should go.
- Your Excel version. Microsoft 365 has functions like
XLOOKUP,FILTER,LETandLAMBDAthat older versions don't. If a colleague uses Excel 2016, say so. - The edge cases. Blanks, duplicates, credit notes shown as negatives, text that looks like numbers.
Here's a reusable opener that sets the AI up properly:
I'm an accountant using [Excel version, e.g. Microsoft 365]. My workbook has a sheet called [sheet name] with headers in row [row number]. [If the data is an Excel table: It's a table called [table name].] The columns are: [column letter] = [what it holds] [column letter] = [what it holds] [column letter] = [what it holds] Data runs from row [first row] to about row [last row] and grows each month. Edge cases: [e.g. blanks, duplicates, credit notes as negatives, numbers stored as text, or "none"]. I need help with [task, in plain words, and where the result should go]. Use only functions available in my Excel version, and don't assume anything about the data I haven't described. Ask me questions first if anything is unclear.
That last line is worth keeping. A good AI assistant will often ask exactly the question you forgot to answer.
Writing formulas with AI
This is where most people start, and for good reason. Lookups, conditional sums, aging buckets and date logic are all things AI handles well. Describe the outcome and it gives you the formula and explains how it works.
In Copilot, select a cell in your table and ask for a new calculated column. In Plan mode, Copilot shows you its plan to confirm before it changes anything, so you can check it does what you meant.
In a chat assistant, describe the layout and ask for the formula plus a plain-English explanation. Asking for the explanation is not optional. It's how you catch the formula that looks right but sums the wrong range.
I'm using [Excel version]. On sheet [sheet name], headers are in row [row number], column [letter] has invoice dates and column [letter] has open balances. Data starts in row [first row] and grows each month. Write one formula for column [letter], starting in row [first row], that puts each invoice into one of these aging buckets, based on its age in days at the date in cell [cell reference]: Current, 1-30, 31-60, 61-90, 90+. - Return blank if the invoice date is blank. - [Say how to treat credit notes or zero balances, e.g. age them by date like any other invoice.] Give me: 1. The formula, ready to paste and fill down. 2. A plain-English explanation of each part, one line per part. 3. Three sample invoice dates with the bucket each should return, so I can test it. If anything about my layout is unclear, ask before writing the formula.
I'm using [Excel version]. On sheet [summary sheet], account numbers are in column [letter] starting in row [first row], and cell [cell reference] holds a date in the month I'm reporting. Write a SUMIFS formula for column [letter] that totals [amount column name] from the table [table name] where: - [account column name] equals the account in column [letter] on the same row - [date column name] falls between the first and last day of the month in cell [cell reference] Use structured references for the table. Return 0 instead of an error when nothing matches. Give me the formula, ready to fill down, and a plain-English explanation of each part. Flag anything that could make it miss rows, such as account numbers stored as text in one place and numbers in the other.
A few habits that help:
- Ask for structured references if your data is in a table.
Table1[Amount]is easier to audit than$D$2:$D$4000and expands automatically. - Ask for
LETon long formulas so each piece gets a readable name. - Test on rows where you already know the answer. Pick three or four lines, work them out by hand, and confirm the formula agrees.
Our detailed guide to writing Excel formulas with AI covers lookups, date logic, LAMBDA functions and more prompts.
Fixing formula errors with AI
#N/A, #VALUE!, #REF!, #SPILL! and the quieter problem of a formula that returns a wrong number without any error at all. AI is a patient debugger. It's especially good at spotting the usual causes: text-formatted numbers, trailing spaces, mixed absolute and relative references, and ranges that stopped short of the newest rows.
Copy the formula exactly, say what it returns, and say what you expected. Include a sample of the data it's looking at.
This formula in cell [cell reference] on sheet [sheet name] returns [error, e.g. #N/A, or the wrong result it gives]: [paste formula exactly] I expected it to return [expected result]. I'm using [Excel version]. The lookup value in [cell reference] is [value]. The data it searches looks like this (sensitive values changed): [paste 5-10 rows, with headers and column letters] Using only the formula and rows above: 1. Name the cause. If more than one cause is possible, list them, most likely first. 2. Give me the corrected formula, ready to paste. 3. Explain what was wrong in plain English, in two or three sentences. 4. Tell me how to check the fix worked. If you can't tell the cause from what I've given you, say what else you need instead of guessing.
For the silent kind of error, ask the AI to walk through the logic instead:
This formula in cell [cell reference] should total [what it should total], but the result is off by [amount]: it returns [result] and I expected [expected result]. I'm using [Excel version]. [paste formula] The ranges it refers to hold: [describe each range, e.g. Data!B:B = account numbers, Data!E:E = amounts]. The data currently runs to row [last row]. 1. Walk through what each part of the formula does, one line per part. 2. List every reason it could be including or excluding the wrong rows, most likely first, with how to check each one in Excel. 3. If one of those reasons is clearly an error, give me the corrected formula. Work only from what I've given you, and say what else you'd need to see to be sure.
In Copilot, you can select the cell and ask it to explain the formula. That's a fast way to understand an inherited workbook before you change anything. Excel's own Evaluate Formula tool (on the Formulas tab) is still worth using alongside AI. It steps through the calculation so you can see exactly where it goes wrong.
Our detailed guide to fixing formula errors with AI goes through each error type with worked examples.
Let AI handle the formula you can't remember
This course covers using AI to write and explain Excel formulas, clean messy exports, and analyze data, including Copilot in Excel and working with AI chat tools alongside your spreadsheets.
Power Query cleanup steps with AI
If you pull the same messy export every month, whether it's a bank statement, a GL detail report or a subledger dump, Power Query is the right tool. You build the cleanup once and refresh it every period. The hard part for most accountants is the M language behind the steps. AI writes M well.
You don't need to write the code from scratch. Describe what the raw file looks like and what the clean version should look like:
I'm importing a [system name] export ([file type, e.g. CSV or XLSX]) into Power Query in [Excel version]. Raw file: - [number] header rows to skip - Columns: [list columns in order] - Problems: [e.g. dates stored as text in DD/MM/YYYY format, debits and credits in separate columns, subtotal rows mixed in, blank rows between accounts] Clean table I want: - Columns: [list final columns], one row per transaction - A single signed Amount column: [sign rule, e.g. debits positive, credits negative] Write the full Power Query M code so I can paste it into a blank query in the Advanced Editor: - Add a comment on each step explaining what it does. - Set date and number types with an explicit locale of [locale, e.g. en-GB or en-US]. - Don't remove any rows except the ones described under Problems. After the code, tell me how to compare the row count and total amount before and after cleanup. If anything about the file is unclear, list your assumptions at the top instead of guessing.
To paste the result in, open Data > Get Data > Launch Power Query Editor, create a blank query, open the Advanced Editor, and replace the contents. Each step then shows up in the Applied Steps pane, so you can click through and see the data change.
If you already have a query that's misbehaving, paste its code from the Advanced Editor and ask the AI to explain it or fix it:
Here's the M code for a Power Query that cleans our [report name]. It fails with this error: [paste error message exactly]. [If you know it: The error appears at the step called [step name] in Applied Steps.] [paste M code from the Advanced Editor] Using only this code and error: 1. Explain what each step does, one line per step. 2. Name the step causing the problem and say why. 3. Give me the full corrected code, ready to paste back into the Advanced Editor, with each changed line marked by a comment. If the cause depends on the source data, tell me what to check in the file instead of guessing.
Two cautions. Locale matters: ask the AI to set date and number types with an explicit locale so a US-format date doesn't flip day and month. And always compare the row count and total amount before and after cleanup, so you know nothing was dropped.
Our detailed guide to Power Query cleanup with AI covers bank feeds, GL exports and how to combine a folder of monthly files.
Checking a workbook agrees with the trial balance
Every schedule, reconciliation and reporting pack should tie back to the trial balance. AI is useful here in two ways. It helps you build the check, and it helps you investigate the differences.
Start by getting a mapping and a tie-out formula. A typical setup is a check sheet that pulls each balance from your schedule, pulls the matching balance from the TB, and shows the difference.
I'm using [Excel version]. My trial balance is on sheet [TB sheet], headers in row [row number], with account numbers in column [letter] and closing balances in column [letter]. My [schedule name, e.g. fixed asset register] is on sheet [sheet name], and its totals for accounts [list account numbers] are in [where the totals sit, e.g. column F, rows 40-45]. Build me a check sheet: 1. A layout with columns: Account, Description, Schedule balance, TB balance, Difference, Status. 2. The formula for each column, using references to my sheets. Status shows "Check" when the absolute difference is larger than [threshold] and "OK" otherwise. 3. A total row, and TB balance formulas that show "Not in TB" if an account is missing from the trial balance. Explain each formula in one line. If my layout is unclear, ask rather than guessing.
When something doesn't agree, describe the difference and ask for likely causes. AI is good at producing a checklist of where to look: unposted journals, a timing cutoff, a sign convention mismatch, an account mapped to the wrong line, or a TB run from the wrong period.
My [schedule name] shows [schedule amount] for account [account number] and the trial balance shows [TB amount], a difference of [difference]. The schedule was last updated on [date] and the TB was run on [date] for the period ending [period end date]. 1. Check the difference from my two figures and show the working. 2. List the most likely causes, in order. For each, say why it fits these facts and exactly what to check in Excel to confirm or rule it out. 3. Say what the size or sign of the difference suggests, e.g. a reversed sign, a doubled entry or a transposition. Base this only on the facts above. If you need more information to rank the causes, say what.
With Copilot, you can also ask it to highlight rows above a threshold, or compare two columns and flag mismatches. That's quicker than building conditional formatting by hand. Keep the formula-based check as your record, though. It stays in the file and reruns every period, and a reviewer can follow it.
Our detailed guide to tying a workbook out to the trial balance includes a reusable check-sheet template.
Building a dashboard from a trial balance
A trial balance has everything you need for a simple management dashboard: revenue, gross margin, operating expenses, cash and working capital. The steps are always the same. Map accounts to reporting lines, summarize by period, then chart the results. AI speeds up each one.
Step 1: Map the accounts. Add a mapping column that assigns each account to a reporting line. AI can draft this from your chart of accounts, and you then review it.
Here's my chart of accounts, with account numbers and names: [paste account list] Assign each account to exactly one of these reporting lines: [list lines, e.g. Revenue, Cost of Sales, Payroll, Rent, Other Opex, Cash, Receivables, Payables]. Return a table I can paste into Excel with columns: Account number, Reporting line, Note. Include every account, in the order I gave them. Use only the account numbers and names above. Flag any account you're unsure about instead of guessing: put "Unsure" in Reporting line and say why in Note. If an account fits none of the lines, put "Not found" and say why.
Step 2: Summarize. Put the TB and mapping into a table, then use a PivotTable or SUMIFS to total each reporting line by month. Copilot can create the PivotTable for you if you tell it which fields go in rows, columns and values.
Once the TB and mapping are in one table, ask for the PivotTable like this:
Using the table [table name] on sheet [sheet name], which has columns [list columns, e.g. Account, Reporting line, Month, Balance], create a PivotTable on a new sheet called [new sheet name] with: - Rows: [reporting line column] - Columns: [month column] - Values: sum of [balance column] Show the reporting lines in this order: [list lines]. Include grand totals. Don't change the source table. If you can't edit my workbook directly, give me numbered steps to build this PivotTable myself instead.
Step 3: Chart and calculate. Ask for the ratios and charts that matter to your readers:
I'm using [Excel version]. On sheet [sheet name], reporting lines are in column [letter], rows [first row] to [last row], and months run across columns [letter] to [letter], with month names in row [row number]. Revenue is the line called [revenue line name], cost of sales is [cost of sales line name], and operating expenses are [list opex lines]. 1. Add rows below the summary for: - Gross margin % - Operating expenses as % of revenue - Month-over-month revenue change % Give each formula for the first month column, referencing my cells (no typed-in figures), and say how to fill it across. Return blank instead of an error when revenue is zero or there's no prior month. 2. Suggest three charts for a one-page dashboard for [audience, e.g. the owner of a small business]. For each: the chart type, the exact rows and columns it uses, why it matters to this reader, and the steps to build it in Excel. Keep the whole answer under 400 words. If a line you need isn't in my summary, say so instead of guessing.
Keep the design simple. One page with a handful of KPIs, a trend chart, and a short variance commentary is usually more useful than a crowded screen. AI can draft that commentary too. Treat the draft as a starting point, and check every number it quotes against the summary.
To get a first draft of the commentary, paste your summary into a prompt like this:
Here's my summary by reporting line for [current period] and [comparison period, e.g. prior month or budget]: [paste summary table with reporting lines and amounts] Known reasons for movements: [any explanations you already have, or "none"]. Write a variance commentary for [audience] of no more than [number] words, in plain business English: - Cover the [number] largest movements by amount, plus any line that moved more than [threshold %]. - For each, give the line, both figures, and the change in amount and %, showing the working, e.g. 52,000 - 47,000 = 5,000 (10.6%). - Use only the figures and reasons above. Where I haven't given a reason, write "Reason: to confirm" instead of suggesting one. - Flag any figure that looks inconsistent or unclear.
Our detailed guide to building a dashboard from a trial balance walks through the full build, including slicers and a monthly refresh.
Checking what Copilot changed in your workbook
When Copilot edits your workbook, you need to know exactly what it did before the file goes anywhere. It may add columns, write formulas, reformat ranges or build new sheets. That's normal review discipline, the same as checking a junior's work.
Here's how to see the changes:
- Read Copilot's own summary. Copilot describes what it did in the chat pane. Ask it directly for a list, as in the prompt below.
- Use Undo straight away if something looks wrong. Undo works on Copilot's edits like any others, as long as you haven't closed the file.
- Use Show Changes. On the Review tab, Show Changes lists recent edits to cells, including which cells changed and their old and new values, for workbooks stored in OneDrive or SharePoint.
- Use Version History. If the file is in OneDrive or SharePoint, you get version history automatically. Go to File > Info > Version History to open an earlier version alongside the current one, or restore it.
- Compare files formally when it matters. If you have the Spreadsheet Compare tool (available only with Microsoft 365 Apps for enterprise), you can save a copy before Copilot works and then compare the two files cell by cell, including formulas.
List every change you just made to this workbook, as a table with columns: Sheet, Cell or range, Type of change, Before, After. Include: - Formulas added or changed (show the full formula) - Values entered or overwritten - Formatting changes - New or deleted sheets, tables, PivotTables and charts Then answer in one line each: Did anything you did overwrite or delete existing data? Does any formula you wrote use a fixed range that could miss rows added later? If you can't tell what a cell held before, write "Not known" rather than guessing.
Then spot-check. Click into a few new formulas, check that ranges cover all the rows, and confirm the totals still agree with the trial balance using the check sheet from earlier. For anything going to a client, a lender or an auditor, keep a pre-Copilot copy so you can always show what changed.
Our detailed guide to reviewing Copilot's changes covers audit trails and documenting AI-assisted work for review.
Where AI in Excel still needs a careful eye
AI is fast and usually right on routine tasks. It's also capable of being confidently wrong. Watch for these:
- Plausible but wrong ranges.
- A formula that covers rows 2 to 500 when your data now runs to 612.
- Made-up functions or options.
- Occasionally an assistant suggests a function your Excel version doesn't have. Telling it your version up front prevents most of this.
- Arithmetic in chat.
- Ask the AI to give you formulas rather than doing the sums itself. Excel calculates, and the AI should write the instructions.
- Accounting judgment.
- AI can explain revenue recognition or suggest a mapping, but the classification decision is yours.
A good rule: the AI drafts, Excel calculates, and you review.
Frequently asked questions about AI for Excel Accounting
Can AI be used in Excel for accounting?
Yes. Accountants use AI in Excel to write and explain formulas, fix errors, clean imported data with Power Query, build reconciliation checks, summarize trial balances, and draft reports and commentary. Copilot works inside Excel, and assistants like ChatGPT, Claude and Gemini work alongside it.
How do I use AI in Excel for accounting if I don't have Copilot?
Use a general AI assistant in your browser. Describe your sheet layout, column by column, and ask for the formula, Power Query code or VBA you need, along with an explanation. Then paste it into Excel and test it on rows where you already know the answer. Stick to an account your firm has approved, and change sensitive figures before sharing samples.
Is Copilot in Excel included with Microsoft 365?
It depends on your plan. Business users can use it with a Copilot Chat-eligible Microsoft 365 business or enterprise subscription or a Microsoft 365 Copilot license, subject to their organization's settings. Microsoft 365 Personal and Family include it with an AI credits plan, and Microsoft 365 Premium includes it. Check with your IT team or your Microsoft 365 admin center to see what you have.
Is it safe to put client data into AI tools?
It's safe only when the tool and plan have the right data protections, and your firm and clients allow it. Work accounts on enterprise AI plans typically don't use your data for training. Free consumer accounts may not offer the same terms. When in doubt, use made-up or anonymized sample data. The AI rarely needs real figures to write a formula.
Can AI do a bank reconciliation in Excel?
It can do much of the work. AI can write the Power Query steps to clean your bank export, build the matching formulas, and flag unmatched items. You still review the exceptions, investigate differences and sign off on the reconciliation.
What's the best AI for Excel accounting?
If your firm uses Microsoft 365 and has Copilot, start there. It works directly in your workbook. For writing complex formulas, Power Query M code or VBA, a general assistant like ChatGPT or Claude is often just as strong, and many accountants use both. The best choice is the one your firm has approved for client data.
Will AI replace accountants who use Excel?
No. AI takes over repetitive building and fixing work, which leaves more time for review, analysis and advice. Someone still has to understand the numbers, apply judgment and stand behind the results, and that's the accountant's job.
Make your spreadsheets work harder
Excel and Data with AI covers:
- Writing, fixing and explaining formulas like XLOOKUP, SUMIFS and dynamic arrays
- Cleaning up messy exports from your accounting software
- Building pivot tables and summaries with AI help
- Using Copilot in Excel and other AI tools for analysis
- Testing results so a wrong formula doesn't slip into a report
Membership is $19.99 a month and includes all courses, with a 3-day free trial.
Sources
All pages checked on 2026-11-28.
- Microsoft Support, Get started with Copilot in Excel: https://support.microsoft.com/office/agent-mode-in-excel-a2fd6fe4-97ac-416b-b89a-22f4d1357c7a
- Microsoft Support, What is Copilot in Excel?: https://support.microsoft.com/en-us/Excel/copilot/frequently-asked-questions-about-copilot-in-excel
- Microsoft Support, COPILOT function: https://support.microsoft.com/en-us/excel/copilot-function
- Microsoft Support, Review the change history of your workbook with Copilot in Excel: https://support.microsoft.com/en-US/Excel/copilot/copilot-in-excel-change-history
- Microsoft Support, Show changes made in a workbook: https://support.microsoft.com/en-us/office/show-changes-that-were-made-in-a-workbook-978ceea7-bbf6-4337-bca7-22e7cc9892e8
- Microsoft Support, Get help with Show Changes in Excel: https://support.microsoft.com/excel/get-help-with-show-changes-in-excel
- Microsoft Support, Overview of Spreadsheet Compare: https://support.microsoft.com/en-US/Excel/overview-of-spreadsheet-compare
- Microsoft Support, Frequently asked questions about Copilot in Microsoft 365 subscriptions: https://support.microsoft.com/microsoft-365-copilot/frequently-asked-questions-about-copilot-in-microsoft-365-subscriptions
- Microsoft Support, Get started with Microsoft Copilot: https://support.microsoft.com/en-us/topic/get-started-with-microsoft-copilot-61033adf-484d-45f5-a8c3-b89876963bd8
- Microsoft Excel Blog, What's new in Excel (November 2026): https://techcommunity.microsoft.com/blog/excelblog/whats-new-in-excel-november-2026/4573867
- Microsoft Support, Evaluate a nested formula one step at a time: https://support.microsoft.com/en-us/office/evaluate-a-nested-formula-one-step-at-a-time-59a201ae-d1dc-4b15-8586-a70aa409b8a7
- Microsoft Support, Create, load, or edit a query in Excel (Power Query): https://support.microsoft.com/en-us/Excel/create-load-or-edit-a-query-in-excel-power-query
- Microsoft Support, LAMBDA function: https://support.microsoft.com/en-us/office/lambda-function-bd212d27-1cd1-4321-a34a-ccbf254b8b67
- OpenAI Help Center, ChatGPT for Excel and Google Sheets: https://help.openai.com/en/articles/20001063-chatgpt-for-excel-and-google-sheets
- OpenAI Help Center, Data analysis with ChatGPT: https://help.openai.com/en/articles/8437071-data-analysis-with-chatgpt
- OpenAI Help Center, Apps in ChatGPT: https://help.openai.com/en/articles/11487775
- Claude Docs, Claude for Excel: https://claude.com/docs/office-agents/excel
- Claude Help Center, Create and edit files with Claude: https://support.claude.com/en/articles/12111783-create-and-edit-files-with-claude
- Google Gemini Help, Upload and analyze files in Gemini Apps: https://support.google.com/gemini/answer/14903178?hl=en