- A practical guide to turning messy data into a polished Excel report using Claude Code, no coding required. Steps, sample prompts, formulas, charts, and FAQs.
According to the Anaconda State of Data Science survey, data professionals spend roughly 45% of their time preparing and cleaning data, not on analysis itself.
Claude Code (Claude Code) turns messy data into a clean, formatted Excel report, without you writing a single line of code. You describe what you need in plain language, and it reads the file, writes and runs the code, and returns a clean, formatted file. In this guide: the steps, example prompts, and how to save the process for repeated use.
What is Claude Code? Claude Code is a tool by Anthropic that runs the Claude model directly on your files and system. It reads files, writes code, runs it, and returns a result, so you can give it a task like "clean up this file" and it actually does it, rather than just explaining how.
Why messy data costs you time and money
Because most of the work with data is cleaning, not analysis. According to the Anaconda (State of Data Science) survey, data professionals spend roughly 45% of their time on preparation, loading, and cleaning, with data cleaning alone accounting for more than a quarter of the workday. In the 2021 survey, preparation and cleaning consumed 39% of time, more than model training and deployment combined.
And it is not just slow, it also introduces errors: Panko research on human errors in spreadsheets points to a typical error rate of 1% to 5% in manual entry, climbing under heavier workloads. The takeaway: every hour spent "cleaning a spreadsheet" is an hour not spent on insights. Claude Code cuts precisely that hour short.
Do you need to know how to code to do this?
No. You describe what you want in plain language, and Claude Code writes and runs the code itself. You stay on the "what needs to come out" side, and it handles the "how." That is the fundamental difference from learning advanced Excel or Python. Instead of learning formulas, you explain the need the same way you would explain it to an employee.
What do you need to get started?
- A Claude account (a plan that supports Claude Code).
- Claude Code installed, via the terminal or the Claude desktop app.
- Your messy file: Excel, CSV, JSON, or even a table you copied from a PDF.
After installation, open Claude Code in the folder containing the file, and everything happens from there in conversation. (New to this? Start with the free Claude Code course.)
6 steps: how to actually produce a clean report
- Put the file in one place: save the messy file in a folder and open Claude Code in that folder.
- Ask for a review before processing: "Read the file and tell me what the data problems are." Claude will identify duplicates, inconsistent formats, and missing columns before anything is touched.
- Describe the report you want: which columns, what order, which summaries, and how the output should look.
- Let Claude do the work: it writes and runs the code that cleans and organizes the data, and returns a new Excel file without overwriting the original.
- Review and correct in conversation: if something is off: "Merge the city names written in multiple forms" or "Remove empty rows." A correction is just another sentence.
- Save the process for repeated use: ask Claude to save the instructions as a script or a Skill, so next month you can run the same report on new data with one click.
What data problems does Claude Code fix?
- Duplicates: rows that repeat, customers appearing twice with different spellings.
- Broken formats: dates in multiple patterns, numbers saved as text, extra spaces.
- Missing values: empty cells that need to be filled, completed from an average, or flagged.
- Name inconsistencies: "Tel Aviv", "T.A.", "Tel-Aviv" all become one value.
- Merging sources: combining multiple files or sheets into one table using a shared key.
- Filtering and grouping: keeping only what is relevant, and summarizing by category, month, or rep.
How do you write a prompt that returns an accurate result?
The more specifically you describe the output, the more accurate the report you will get on the first try. Define source, action, and result:
"Take the file
sales.xlsx. Remove duplicate rows by order number, standardize city names to a single consistent spelling, and convert all dates to DD/MM/YYYY format. Create a new filereport.xlsxwith a clean sales table, and on a second sheet a summary of sales by month and by rep."
Notice that this is written like an instruction to an employee, not like code. That is the whole idea.
A professional report: formulas, pivot tables, charts, and formatting
Claude Code does not just clean data, it also produces a formatted, presentation-ready file. You can request all of the following in the same conversation:
| What to ask for | What you get |
|---|---|
| Formulas and summaries | Total rows, percentages, month-over-month growth, calculated in the file |
| Pivot table | Interactive summary by category, region, or time |
| Charts | Bar or line charts embedded in the sheet |
| Brand formatting | Header colors, currency format, frozen top row |
Will my sensitive data stay private?
Claude Code processes the file using code that runs in your own environment, rather than "uploading" the entire spreadsheet as an image. Even so, when dealing with customer data or financial information, exercise caution: remove personal identifiers that are not needed, ensure compliance with your organization's policies, and for especially sensitive data work on a copy rather than the original.
How long does it take and what does it cost?
A single table with thousands of rows typically gets sorted out in minutes. Work that would take half a day of manual cleaning usually shrinks to a few minutes of describing and running. The cost is measured in Claude usage tokens and is generally negligible compared to the hours saved, especially when you save the process and run it again every month as an automation.
Claude Code vs. uploading a file to ChatGPT: what is the difference?
| Parameter | Claude Code | Uploading a file to chat |
|---|---|---|
| Working with local files | Directly in the folder | A single file you upload |
| Repeated runs | Script/Skill for monthly use | Manual repetition each time |
| Data volume | Suitable for large files | More limited |
| Integration into a business process | Part of an automation | One-off |
For a one-time report, chat is enough. For a report that recurs every week or month, Claude Code saves you the repetition.
The bottom line
Most of the time spent staring at a spreadsheet goes to cleaning, not insights. Claude Code turns a plain-language description of the report you need into a clean, formatted, reusable Excel file, without writing a single line of code. Start with one messy file that has been annoying you this week, and let it sort things out.
Continue: What is Claude Code · Free Claude Code course · AI automations for business · Ready-made Skills for Claude Code

