Clean and Analyze Excel Data with Claude
Use Claude and Excel to clean sales data, verify results, and build dashboards.
Introduction
30 Second Summary
If you use Excel for accounting, sales, or operations, you probably spend hours cleaning rows, checking formulas, and rebuilding the same reports by hand. The work gets done, but these repetitive tasks leave less time to understand what the numbers are saying.
In this project, you will use Claude for Excel to clean the open workbook, check its findings with Excel formulas, build a native dashboard, and write a five-line update for your manager.
What You'll Build
You will watch Claude clean the sales sheet inside Excel, trace its answers back to cited cells, and turn the checked results into a dashboard and manager summary.
By the end of this project, you'll have:
- A clean sales report with 238 invoices and a preserved copy of the original data.
- A set of checked sales findings backed by SUMIFS, XLOOKUP, and clickable cell citations.
- A native Excel dashboard with a region dropdown, a monthly chart, and the best month highlighted.
- Secret Mission: Apply the same safe-copy and formula-checking workflow to a spreadsheet of your own.
Are there any prerequisites?
- A Claude account on the Pro plan or higher.
- The Excel desktop app with a Microsoft 365 subscription on Windows or macOS. Excel 2016 and 2019 are not supported.
- Optional: Excel for the web with a free Microsoft account works too.
- No code or AI experience is needed.
Before We Start
Before you work on the spreadsheet, lock in what you are building and why it matters. You will use Claude for Excel in Excel (desktop app, or Excel for the web) to clean, check, chart, and summarise the data.
Get the Messy Sales File
A spreadsheet can open without errors while hiding problems that make its totals untrustworthy.
You will start with company-sales-messy.xlsx, a sales export from Brightline Office Supply, a made-up company, in Excel. You will inspect its rows before any AI changes them.
You will also add Claude for Excel to the Excel desktop app. Excel for the web remains an optional alternative, and the Claude pane stays beside the sheet throughout the project.
In this step, get ready to:
- Open company-sales-messy.xlsx in the Excel desktop app or the optional web version.
- Spot at least two data problems.
- Add Claude for Microsoft 365 to Excel.
Download and open the workbook
The workbook gives everyone the same 250 invoice rows from January to June 2026. Its Targets sheet contains the target for each of six sales reps.
Excel desktop app
- Download company-sales-messy.xlsx from the sample repository.
- Open your Downloads folder in Finder on macOS or File Explorer on Windows.
- Double-click company-sales-messy.xlsx to open it in Excel.
- Select Enable Editing if a yellow Protected View bar appears.
Excel for the web (optional)
- Download company-sales-messy.xlsx from the sample repository.
- Open OneDrive.
- Sign in to your Microsoft account if asked.
- Select Create or upload.
- Select Files upload.
- Choose company-sales-messy.xlsx from your Downloads folder.
- Select My files.
- Select company-sales-messy.xlsx to open it in Excel for the web.
- Select the Sales sheet if the workbook opens on another sheet.
- Scroll from the header row to the last invoice.
- Select the Targets sheet.
Your source file is in place. You should see 250 invoice rows on the Sales sheet and six sales reps on the Targets sheet.
Workbook not opening?
- Confirm the downloaded file is named company-sales-messy.xlsx.
- Close and reopen the workbook in Excel.
Ask for help with opening the workbook in Excel.
Inspect the data problems
- Return to the top of the Sales sheet.
- Select the A column header.
- Hold Shift and select the J column header.
- Double-click the line between any two selected column headers.
You should see full values in every column, with no ######## in the Invoice Date column
- Look at the Invoice Date column for dates that sit on the left, such as Jan 1, 2026 in row 3.
- Compare the Product Line entries, such as printer in row 7 and Printers elsewhere.
- Check the Region column for blank cells, such as row 5.
- Look at the Discount column, where some discounts show as 5 or 10 instead of 5% or 10%.
- Find invoice INV-2028, which appears twice in a row.
You should find dates stored as text and product lines spelled more than one way. You should also find a blank Region, mixed discount formats, and INV-2028 twice in a row.
Why do these problems matter?
Data cleaning starts by identifying the entries that can distort an answer.
- Duplicate rows count the same sale twice.
- Text dates cannot be grouped by month like real Excel dates.
- Inconsistent product names split one product line across separate groups.
- A discount typed as 10 instead of 10% can wipe out a sale's value.
- Blank Regions leave sales out of the regional comparison.
Add Claude to Excel
Claude for Microsoft 365 opens in a pane beside the workbook. It can read the open sheets, edit cells, and cite the cells it used for an answer.
- Select Home in Excel.
- Select Add-ins.
- Select Tools on macOS if Add-ins is not on the Home tab.
- Select Add-ins from the Tools menu.
- Search for claude.
- Select Add on Claude for Microsoft 365.
- Select Claude on the Home ribbon.
- Select Log in in the Claude pane.
- Select Connect, then Authorize, in the browser tab that opens.
- Return to Excel and select Continue on each setup screen, then I understand.
The same steps work in Excel for the web from Home, then Add-ins. You should see the Claude pane open beside the sheet.
Cannot add Claude?
- Confirm that your Claude account uses the Pro plan or higher.
- Close and reopen Excel, then search the add-in store again.
- Ask your Microsoft 365 administrator whether Office Store add-ins are blocked if you use a managed account.
Ask for help with opening Claude beside your workbook.
Your workbook and Claude pane are ready. Next, you will preserve the original Sales sheet and ask Claude to diagnose every issue before editing anything.
Clean the Sales Data with Claude
Your first inspection exposed problems inside a workbook that initially looked usable. Those problems make every total difficult to trust.
In this step, Claude for Excel will audit the open workbook before changing it. You will preserve a baseline, approve the edit, and check the result in Excel.
In this step, get ready to:
- Duplicate the Sales sheet to preserve its original rows.
- Audit the workbook without changing it.
- Clean the Sales sheet and verify every result.
Preserve the baseline and audit the data
A preserved baseline lets you compare every edit with the source data. The audit then gives you a problem list before data cleaning begins.
- Right-click the Sales sheet tab.
- Select Duplicate.
- Right-click the duplicated sheet tab.
- Select Rename.
- Enter Sales Original.
- Return to the Sales sheet.
- Select the message box in the Claude pane.
- Request a complete audit by sending this exact prompt:
List every data problem you find in this sales spreadsheet. Group them by type, say how many rows each type affects, and give one example row for each. Don't change anything yet.
What does this audit check?
The prompt keeps the workbook unchanged. It asks Claude to separate each type of problem before applying any fixes.
- 12 exact duplicate invoice rows.
- 54 dates stored as text, typed three ways.
- 24 Product Line cells spelled differently.
- 14 Sales Rep names with stray spaces or the wrong capitals.
- 5 blank Region cells.
- 27 discounts typed as text or as whole numbers.
- 5 Quantity cells stored as text.
- 5 blank Unit Price cells.
- Read Claude's problem report in the pane.
- Confirm that the report covers all eight problem types from the audit key.
- Select one of Claude's cell citations.
Excel should jump to an example row for that problem. All eight problem types should appear, and nothing should be fixed yet.
Is a problem type missing?
- Confirm that the Sales sheet is active.
- Resend the exact audit prompt in the same Claude pane.
Ask for help to compare Claude's audit with the eight required problem types.
Clean the Sales sheet
Claude can fill a blank Region from the same rep's other rows. It can also standardize values and calculate Net Sales without touching the preserved Sales Original sheet.
- Request the cleanup by sending this exact prompt in the Claude pane:
Fix every problem you listed. Remove exact duplicate rows. Turn every Invoice Date into a real date. Use one spelling for each product line and each sales rep. Trim extra spaces. Fill a blank Region with that rep's region from other rows. Fill a blank Unit Price with that product line's price from other rows. Turn every Discount into a percentage, so 10 and 10% both mean 10%. Turn every Quantity into a number. Add a Net Sales column that equals Quantity times Unit Price times (1 minus Discount). Keep the Targets sheet as it is. Work on the Sales sheet only, put Net Sales in column K, and show me a short table of every change.
What does this cleaning prompt do?
- Exact duplicate rows are removed.
- Invoice Date values become real dates.
- Product lines and rep names use one spelling.
- Extra spaces are trimmed.
- Blank Regions and Unit Prices are filled from matching rows.
- Discounts become percentages and Quantity values become numbers.
- Net Sales is written in column K.
- The Targets and Sales Original sheets stay unchanged.
Claude warns you before it overwrites existing data. Review that warning so the edit does not feel like a surprise.
- Select Allow once each time Claude asks for permission to edit the Sales sheet. Claude can ask more than once.
- Wait for Claude to finish updating the workbook.
- Read the short change table in the Claude pane.
You should see the Sales sheet updated and a table in the Claude pane explaining what changed. The Sales Original sheet should still show the untouched 250-row baseline.
Verify every cleaning result
- Select the A column header.
- Hold Shift and select the K column header.
- Double-click the line between any two selected column headers.
- Scroll to the last row and check that the last invoice sits on row 239.
- Check that the Invoice Date column shows real dates aligned on the right of each cell.
- Check that each product line has one spelling, such as Printers.
- Check that invoice INV-2004 shows North in the Region column.
Why does the row count matter?
The source workbook contains 250 invoice rows. Removing its 12 exact duplicates leaves 238 distinct invoices.
The smaller count proves that duplicate removal worked. The remaining checks show whether Claude fixed the other problem types too.
- Select a Net Sales cell and check that it equals Quantity × Unit Price × (1 − Discount).
- Press Cmd+F (macOS) or Ctrl+F (Windows).
- Search for INV-2028.
- Confirm that INV-2028 appears only once.
- Compare Claude's change table with the checks you just completed.
You should see 238 invoices, real dates, one spelling per product line and rep, no blank Regions, percentage discounts, and Net Sales in column K.
You completed the important check. Claude's edits now agree with the visible workbook evidence.
You turned a 250-row export into 238 clean invoices while keeping the original rows nearby. Next, you will ask Claude to write formulas that prove the sales findings.
Check Answers with Excel Formulas
Your cleaned Sales sheet now has 238 dependable invoices. A confident answer from Claude for Excel still needs evidence.
In this step, Claude will write four checking formulas directly into the open workbook. You will use its cell citations and Excel results to test every claim.
In this step, get ready to:
- Enter the sales rep that the lookup formula should read.
- Ask Claude to write three sales formulas and one XLOOKUP.
- Compare and correct every result.
Ask Claude for checkable answers
A useful AI answer includes a calculation you can inspect. Writing the formulas into empty cells keeps the evidence beside the data without changing the sales table.
- Select cell M1 on the Sales sheet.
- Type Daniel Kim.
- Press Enter.
- Select the message box in the Claude pane.
- Request the findings and formulas by sending this exact prompt:
Using the cleaned data in the open workbook, answer in plain English: 1. What were total net sales for January to June 2026? 2. Which region grew fastest from Q1 to Q2 2026, and by how much? 3. How much revenue is still unpaid? Write one Excel formula for the first answer directly into M3 of the Sales sheet, one formula for the second answer directly into M4, and one formula for the third answer directly into M5, using SUMIFS where it fits. Write an XLOOKUP formula directly into M6 that reads the sales rep in M1 and returns that rep's H1 Target from the Targets sheet. Cite the cells you used for each answer.
How does this prompt help?
- The three questions give Claude a fixed set of sales claims to calculate.
- The SUMIFS formulas add Net Sales only for rows that meet the requested conditions.
- The XLOOKUP formula reads the rep in M1 and returns the matching target from the Targets sheet.
- The citations show which workbook cells Claude used.
- Select Allow once each time Claude asks to edit cells.
- Read Claude's three plain-English findings.
- Select the citation for the total-sales answer.
- Select the citations for the growth and unpaid-revenue answers.
- Confirm that Excel jumps to the referenced cells each time.
Claude's formula layout can differ between runs. The calculated results provide the fixed point for your check.
Missing a formula or citation?
- Confirm that the cleaned Sales sheet is active.
- Resend the exact prompt in the same Claude pane.
Ask for targeted help to identify which requested formula or citation is missing.
Inspect the written formulas
- Select cell M3 and inspect its formula in the formula bar.
- Select cell M4 and inspect its formula.
- Select cell M5 and inspect its formula.
- Select cell M6 and confirm that its XLOOKUP reads M1.
Excel calculates each formula as Claude writes it. You now have four workbook calculations to compare with the prose answers.
Why use empty cells?
The sales table remains intact when the checks stay in M1:M6. This separation also makes the evidence easy to review.
Compare and correct the results
A mismatch shows that the suggested formula needs another pass. The cleaned Sales sheet provides the data for the correction.
- Compare each result in M3:M6 with Claude's matching plain-English answer.
- Choose the tab that matches what you see.
✔️ All four results match
Your workbook calculations agree with Claude's findings. The evidence now supports each answer.
- Press Cmd+S (macOS) or Ctrl+S (Windows) to save the workbook. Excel for the web saves automatically.
ⓧ A result does not match
A different result means the formula needs correction. Give Claude the cell and returned value so it can repair the workbook directly.
- Select the mismatched cell in M3:M6.
- Read the returned value.
- Select the message box in the Claude pane.
- Request a correction by sending this sentence after the cell reference and returned value:
Fix the formula in this cell so it matches the answer from the cleaned data, then cite the cells you used.
- Confirm Claude's request to update the formula.
- Compare the corrected result with Claude's matching answer.
- Repeat the correction for each remaining mismatch.
Still getting a different result?
- Check that M1 contains Daniel Kim exactly as written on the Targets sheet.
- Confirm that Claude wrote each formula on the Sales sheet.
- Ask Claude to trace the formula from its input cells to the returned value.
Ask for help to diagnose why the Excel result still differs.
- Check that M1 contains Daniel Kim.
- Check the results in M3:M6 against this checkpoint:
Final checkpoint
- Total net sales from January through June 2026 are $251,347.80.
- West is the fastest-growing region, rising from $21,574.25 in Q1 to $36,972.55 in Q2, up 71%.
- Unpaid revenue is $47,060.50.
- The XLOOKUP result for Daniel Kim is 27000, his $27,000 H1 target.
- Results can show as plain numbers, such as 251347.8 for $251,347.80 and 0.713735 for 71%.
That closes the evidence loop. Your four checks now tie Claude's answers to calculations inside the workbook.
Your sales findings now have evidence behind them. Next, you will ask Claude to build a native Excel dashboard that responds to a region dropdown.
Build Interactive Sales Charts
Build a Sales Dashboard in Excel
Your Excel formulas have confirmed the sales answers from Claude for Excel. A dashboard now makes the monthly and regional pattern easier to explore.
Claude will build native Excel elements on a new Dashboard sheet. A pivot table will summarise Net Sales, while a data validation dropdown will control the chart.
In this step, get ready to:
- Create a Dashboard sheet with a pivot table and column chart.
- Test a region dropdown that updates the chart.
- Highlight the best month with conditional formatting.
Build the native dashboard
The dashboard stays inside the workbook, so every chart remains editable in Excel. Claude can build the pivot table, chart, and dropdown from the cleaned Sales sheet.
- Select the message box in the Claude pane.
- Create the dashboard by sending this exact prompt:
Create a new sheet named Dashboard. Build a pivot table of Net Sales by month and Region from the Sales sheet. Add a column chart of monthly Net Sales. Put a data validation dropdown in cell B1 with these options: All, North, South, East, West. Set B1 to All, and make the column chart update when I choose a region from the dropdown.
What does this prompt create?
- The Dashboard sheet keeps the summary separate from the invoice rows.
- The pivot table groups Net Sales by month and region.
- The column chart compares monthly Net Sales.
- The dropdown in B1 switches the chart between all regions and one selected region.
- Confirm Claude's request to create and edit the Dashboard sheet.
- Wait for Claude to finish the workbook changes.
- Select the Dashboard sheet.
You should see a pivot table, a monthly Net Sales column chart, and the region dropdown in B1 with All selected.
Dashboard missing an element?
- Check that the cleaned Sales sheet is still in the open workbook.
- Tell Claude which missing element it needs to add to the Dashboard sheet.
Ask for help to identify which native Excel dashboard element is missing.
Test the region dropdown
The chart's appearance can vary, but its filtering behavior is the reliable test. Selecting one region should leave only that region's monthly values in the chart.
- Select cell B1 on the Dashboard sheet.
- Open the data validation dropdown.
- Select West.
You should see the column chart update to show West only. This proves that the dropdown controls the chart's source values.
Chart not following the dropdown?
- Confirm that West is visible in B1.
- Ask Claude to connect the chart to a SUMIFS helper range that reads the region in B1.
- Test the dropdown again after Claude updates the chart source.
Ask for help to link the chart through a SUMIFS helper range.
Highlight the best month
Conditional formatting makes the strongest monthly result stand out in the dashboard values. The checkpoint uses all regions, so reset the dropdown before checking it.
- Select the message box in the Claude pane.
- Add the highlight by sending this exact prompt:
Use conditional formatting on the Dashboard sheet to highlight the month with the highest total Net Sales. Keep the existing pivot table, dropdown, and chart unchanged.
What does this follow-up change?
The existing dashboard stays in place. Conditional formatting highlights the largest monthly total in the dashboard values.
- Confirm Claude's request to apply the formatting.
- Set the dropdown in B1 to All.
- Find the highlighted month in the monthly totals.
You should see June highlighted as the best month, with $54,255.45 in Net Sales. The highlight colour can differ between workbooks.
Best month not highlighted?
- Confirm that the dropdown in B1 is set to All.
- Ask Claude to apply the rule to the complete monthly total range.
- Check that June shows $54,255.45 before judging the formatting.
Ask for help to correct the conditional formatting range.
Your workbook now turns checked numbers into a native Excel dashboard. Next, you will use Claude's cell citations to ground a five-line summary for your manager.
Write a Manager Summary
Your Dashboard sheet now turns the cleaned workbook into a chart that responds to its region control. The next goal is a manager-ready update.
A clean workbook and dashboard still need a short explanation before a manager can act. Claude for Excel will draft five lines that you will check through its cell citations and your Excel results.
In this step, get ready to:
- Request exactly five lines of plain-English findings from Claude.
- Check every factual claim through its cell citations.
- Rewrite one line in your own voice.
Ask Claude for a five-line draft
- Select the message box in the Claude pane.
- Request the manager summary by sending this exact prompt:
Write a five-line summary of the key findings for my manager: total net sales, the monthly trend, which rep is furthest above target and how they got there, the fastest-growing region, and one thing to watch. Use plain English and no jargon. Cite the cells for each number.
What does this prompt do?
- The five-line limit keeps the update short enough to read in one go.
- The topic list gives each line one job.
- The cell citations give each number a path back to workbook evidence.
- Submit the prompt.
- Read Claude's response once without editing it.
You should see a five-line draft covering the requested findings. Its wording can differ between Claude responses.
Did Claude return extra lines?
- Resend the exact prompt if the response includes an introduction.
- Ask for the same five subjects on five separate lines if Claude returns a paragraph.
Ask for help to turn the response into exactly five plain-English lines.
Check every finding through its citations
Each citation should take you to the cells behind a number. Your checked values and dashboard provide the fixed reference when wording varies.
- Select the citation for the total-sales line.
- Confirm that the line agrees with $251,347.80 in total Net Sales.
- Select the citation for the fastest-growing-region line.
- Confirm that West rises 71% from $21,574.25 in Q1 to $36,972.55 in Q2.
- Select the citation for any unpaid-revenue number.
- Confirm that unpaid revenue is $47,060.50.
- Select the citations for the monthly-trend and rep lines.
- Confirm that June leads with $54,255.45 and Daniel Kim is furthest above his $27,000 target.
Any mismatch belongs in your final rewrite. The checked workbook value wins.
Rewrite one line and read it aloud
A manager-ready summary should sound natural when you say it. Your final version keeps the checked facts while using your own wording.
- Copy Claude's five-line draft.
- Paste it into a new email draft or a note on your computer.
- Rewrite at least one line in your own words.
- Fix any line that disagrees with your checked numbers.
- Read your summary aloud.
- Count the five lines.
What should you hear?
- The summary has exactly five plain-English lines.
- One line reports $251,347.80 in total Net Sales.
- One line describes June as the best month at $54,255.45.
- One line names Daniel Kim as furthest above target.
- One line identifies West as the fastest-growing region.
- One line names an item to watch, such as $47,060.50 still unpaid.
- At least one line uses your own wording.
The communication layer is complete. Your manager now has a concise update backed by cited workbook cells and checked results.
Secret mission
Analyze Your Own Spreadsheet
Remove private details from a safe copy of your own spreadsheet. Open that copy in Excel, ask Claude to analyse it in the workbook pane, and have Claude write a formula that checks one answer.
Clean Up Your Resources
Clean Up Your Resources
Decide whether to keep your workbook, pause and return later, or delete it entirely. This project uses your Claude Pro or higher plan and your Microsoft 365 subscription for the Excel desktop app, while Excel for the web is free.
Resources you used:
- The edited company-sales-messy.xlsx project workbook on your computer, containing the Sales, Sales Original, Targets, and Dashboard sheets.
- The project workbook in OneDrive, if you used Excel for the web.
- The safe personal spreadsheet copy on your computer, if you completed the Secret Mission.
- The safe personal spreadsheet copy in OneDrive, if you completed the Secret Mission with Excel for the web.
✔️ Keep everything running
No action is needed. Choose this if you are still working with the dashboard or want to reuse the workbook.
- Keep company-sales-messy.xlsx on your computer as the edited project workbook.
- Keep the optional OneDrive copy if you used Excel for the web.
- Keep the safe personal spreadsheet copy if you want to continue the Secret Mission.
- Leave Claude for Microsoft 365 installed in Excel.
Your Claude Pro or higher subscription and Microsoft 365 subscription continue until you change or cancel them through their account settings.
✋ Pause - I'll come back to this later
Close the open workbook while keeping the files in place so you can continue later.
- Press Cmd+S (macOS) or Ctrl+S (Windows) to save the workbook. Excel for the web saves automatically.
- Close the project workbook.
- Close the safe personal spreadsheet copy if it is open.
- Leave the files on your computer and any optional OneDrive copies in place.
ⓧ Delete - I don't want to use this again
Deleting the workbooks removes your project data. The Claude add-in can stay installed, or you can remove it from Excel as an optional final action.
- Close the project workbook in Excel.
- Open your Downloads folder in Finder on macOS or File Explorer on Windows.
- Delete company-sales-messy.xlsx, the edited project workbook.
- Delete the safe personal spreadsheet copy from your computer if you created one.
Complete the next actions only if you used Excel for the web. They remove the project workbook and any uploaded safe copy from OneDrive.
- Open OneDrive.
- Select My files.
- Select the circle beside the project workbook.
- Select Delete.
- Repeat the deletion for the safe personal spreadsheet copy if you uploaded one.
Removing the add-in is optional. Do this only if you no longer want Claude available inside Excel.
- Open Excel.
- Select Home.
- Select Add-ins.
- Open your installed add-ins.
- Remove Claude for Microsoft 365.
Nice Work!
Nice Work!
You cleaned a messy sales report with Claude for Excel in Excel (desktop app, or Excel for the web), checked its findings with formulas and cell citations, and built a native dashboard and manager summary.
You've learned how to:
- Use Claude for Excel to edit an open workbook and trace answers through cell citations.
- Check sales findings with SUMIFS and XLOOKUP formulas.
- Build pivot tables, data validation dropdowns, and conditional formatting, then turn the checked results into a five-line manager summary.
- Secret Mission: Apply the same safe-copy workflow to your own spreadsheet and have Claude write a checking formula.
Use Claude inside Excel when a workbook needs cleaning, analysis, or explanation. Follow its citations and verify the important numbers before you share them.
Ready to quiz yourself?