top of page

Let's practice using AI to extract, clean, process and present data.

You are a finance manager. Your CFO has asked: "Why doesn't System A's sales data match System B's? They should be in sync."

You will be using AI to answer this because the real datasets can have thousands of records, which is too many for a person to compare by hand. Our sample file is small enough that you can check the results against the source rows, so verify the work the same way, even though the full process is what matters for larger files.

Since we don't have access to systems to use AI to extract data, assume you successfully pulled data from System A and System B.

Sample sales data below extracted from System A:

image.png

Sample sales data below extracted from System B:

image.png

Let's use AI to "clean" the data.

​

Use the below buttons to download the above sample data 

In your AI tool (Claude is used in the example below), upload the two files, then paste the prompt below to have AI clean them.

​

AI Prompt:

​

You are helping a finance manager clean up sales data exported from two systems. The data is attached as two files uploaded.

​

Both files have the same four columns: customer_name, sales_amount, item_description, sale_date. The same customers and products are often spelled differently in each system. Your job is to standardize the names so the two datasets can be compared, without changing any amounts or dates.

 

Please do the following:

1. Standardize names - Normalize capitalization, punctuation, spacing, and accents (for example, "Café" and "Cafe"). - Treat common variations as the same entity: "Corp" and "Corporation," "Inc" and "Inc.," "&" and "and," "Co" and "Co.," and hyphens or no hyphens (for example, "Noise-Canceling" and "Noise Cancelling"). - Standardize abbreviations and unit formats (for example, "27in," "27-inch," and "27 in" all mean the same size). - Choose one standard name for each customer and product, and use it consistently.

 

2. Match records across systems - Match transactions by sales_amount and sale_date, then confirm the customer and item names are the same entity after standardization. - Do not merge records unless you are confident they represent the same sale. - If a name match is unclear (for example, "Evelyn Park" vs. "Evelyn Parks"), flag it for review instead of deciding on your own.

 

3. Identify unmatched records - List any transactions that appear in only one system, with the system name, customer, amount, item, and date.

 

4. Do not invent or alter data - Do not change any sales amounts or dates. - Do not add customers, products, or transactions that aren't in the files.

 

Return the following:

A. Standardized customer list: original name(s) from each system mapped to the standard name.

B. Standardized product list: original description(s) from each system mapped to the standard description.

C. Matched transactions: a table showing the standard customer, standard item, amount, date, and which system each record came from.

D. Unmatched transactions: a table of records that appear in only one system.

E. Items to review: any name matches you weren't confident about, with a short explanation.

F. Summary: total record counts for each system, number of matched pairs, number of unmatched records, and total sales amount for each system.

​

image.png

Below are the results of the AI cleaning process:

image.png
image.png

Download the cleaned up file below:

Your data is clean, so now let AI find the insights in it. Upload the clean sales file and use the prompt below: 

​​

Uploaded is a sales reconciliation file containing sales exported from two systems (System A and System B).

It has six tabs:

- Customers: standard customer names mapped to each system's original spellings

- Products: standard product descriptions mapped to each system's original descriptions

- Matched: 17 transactions confirmed in both systems -

Unmatched: 2 transactions that appear in only one system

- Review: 10 pairs with the same amount, date, and item but different customer names, not yet merged

- Summary: record counts, totals, and check rows for each system

 

Please analyze the data and give me:

1. Headline numbers: total sales, matched value, pending value, and unmatched value for each system, and the gap between the two systems' totals and what's driving it.

2. Customer insights: which customers account for the most revenue, which buy from both systems, and which have sales only in one system.

3. Product insights: top products by revenue and by units, and whether any product appears in only one system's records or has inconsistent pricing across matched pairs.

4. Timing: sales by week, and whether either system shows a gap, spike, or late-month concentration.

5. Reconciliation risk: how much revenue depends on the 10 unconfirmed pairs and the 2 unmatched records, and which of those items should be resolved first.

6. Three to five concrete follow-up actions for the finance team, ordered by dollar impact.

7. Create download file of the insights

​

Use only the numbers in the workbook. Don't estimate or invent figures. If something can't be determined from the file, say so. Show totals to the cent, and put the key numbers in a short table.

​

image.png

Output from the insights prompt:

image.png
image.png
image.png
image.png
image.png
image.png

Download the insights below:

Next, turn those insights into an email that summarizes the findings for your CFO. Use the following prompt:

​

Write an email to the CFO summarizing the uploaded sales insights.

 

Use only the figures and findings in that document; don't add figures or assumptions.

The email should:

1. Open with a one-sentence bottom line on the difference between the two systems and what explains it.

2. Include a short table of totals by status (matched, pending, unmatched) for each system. 3. Name the largest pending items and state the total they represent.

4. List the next steps in priority order, with owners left as placeholders.

5. Close by stating when the reconciliation will be final, with the date as a placeholder.

 

Keep it under 250 words. Use a plain, direct tone with no jargon. Start with a subject line.

​

image.png

Results of the email draft AI generated for the CFO:

image.png
bottom of page