From Messy Sales Data to Analysis-Ready Data

Introduction

In business operations, sales data often comes from multiple sources. Some transactions are recorded through Point of Sale (POS) applications, others come from online marketplaces, while some are still recorded manually in spreadsheets by the Sales team.

Initially, this situation may not seem problematic. Each department maintains its own transaction records, and reports can be generated using the available data.

However, challenges begin when a company needs to consolidate all these records into a single sales report.

Sales figures from the Sales department may differ from those reported by Finance. The same product may have different codes. Cancelled transactions may still appear in sales records. In some cases, the same transaction may be recorded more than once during the consolidation process.

As a result, preparing reports takes longer, and the company may not fully trust the figures presented.

This case study demonstrates how a company can transform sales data collected from multiple sources into an analysis-ready dataset using Microsoft Excel.

The focus is not on specific data-cleaning techniques, but on the practical process of business decision-making, applying business rules, data reconciliation, and validating transformation results.

Understanding the Case Study

Imagine a distribution company that sells products through three sales channels:

  1. Direct sales handled by the Sales team.

  2. Sales through a Point of Sale (POS) application.

  3. Sales through online marketplaces.

Each department maintains its own transaction records. At the end of each month, all data is collected by the Finance department to prepare the monthly sales report.

The following table illustrates the initial data conditions.

Data SourceCharacteristics
SalesUses spreadsheets with internal product codes
POSUses product codes generated by the POS application
MarketplaceUses SKU codes assigned by each platform

Although all three sources record the company's sales activities, their information is not entirely consistent.

For example:

DateSourceProduct CodeProduct NameQtyAmount
01/10/2026SalesPRD-001Product A5500,000
01/10/2026POS001Product A3300,000
02/10/2026MarketplaceSKU-A01Product A2200,000
02/10/2026SalesPRD-002Product B4800,000

In this example, Product A has three different identifiers, even though all three represent the same business product.

The company also discovers cancelled transactions, returned transactions, and records that have been entered more than once.

These are the conditions that must be resolved before the data can be used for analysis.

Stage 1 — Identifying Sales Data Problems

The first step is not to immediately create a report, but to understand the problems within the available data.

An initial review reveals several issues.

1. Different Product Identifiers

The same product uses different codes across sales channels.

This makes it difficult for the company to calculate total sales by product.

2. Different Transaction Identifiers

Each source has its own transaction numbering system. Therefore, the company needs an identification method that distinguishes transactions while preserving their original references.

3. Transactions That Are No Longer Valid

Not every recorded transaction represents an actual completed sale.

Some transactions were cancelled before delivery, while others were returned after the sale.

4. Different Transaction Values

Recorded sales values may represent amounts before discounts, after discounts, or amounts adjusted for returns.

Without consistent definitions, reports from different departments may produce different figures.

5. Difficulty Tracing Data Differences

When sales totals do not match, the company needs additional time to identify which transactions are responsible for the differences.

These problems demonstrate that data transformation is not simply about producing a visually organized table. Every piece of information must have a clear and consistent business meaning.

Stage 2 — Establishing Business Rules

Before proceeding with further data processing, the company establishes the business rules that will be used in its sales reporting.

This is important because different transaction conditions may affect the reported sales value.

In this case study, the company agrees on the following rules.

Transaction StatusTreatment
CompletedIncluded as sales
CancelledExcluded from sales
ReturnedReturn value reduces sales
DiscountedDiscount reduces sales
PendingNot yet included in final sales

The company also establishes the following sales value definition:

Net Sales = Gross Sales − Discount − Cancellation − Return

In actual implementation, cancellations and returns must be recorded based on the value genuinely cancelled or returned. Transactions cancelled before revenue recognition should not be deducted twice.

The company must also determine whether taxes, shipping charges, and marketplace fees are included in sales calculations or recorded separately.

With these rules in place, every department uses the same calculation principles.

Stage 3 — Resolving Product and Transaction Reference Differences

After establishing the business rules, the company resolves inconsistencies in product identification.

A master product reference is created and used as the primary reference across all sales channels.

For example:

Sales CodePOS CodeMarketplace SKUMaster Product CodeProduct Name
PRD-001001SKU-A01P001Product A
PRD-002002SKU-B01P002Product B
PRD-003003SKU-C01P003Product C

Using this reference, all transactions can be identified through a consistent product identifier.

The company also preserves the original transaction identifiers from each source.

Original transaction references must not be discarded because they are needed to trace records when reporting differences occur.

For consolidation purposes, the company uses a combination of information such as transaction source, transaction number, and transaction line identifier.

This approach helps distinguish genuinely different transactions from duplicate records.

Stage 4 — Reconciling Sales Data

The next stage is data reconciliation.

Reconciliation is the process of comparing records from different sources to ensure that the information used in reporting is consistent and can be verified.

In this case study, the company performs reconciliation across three areas.

1. Transaction Count Reconciliation

The company compares the number of transactions from each source against operational records.

The objective is to ensure that no transactions are missing or recorded more than once.

2. Sales Value Reconciliation

The company compares transaction values against reports from each source.

Any differences must be explainable, for example, because of discounts, cancellations, returns, or differences in recording periods.

3. Transaction Status Reconciliation

The company verifies that transaction statuses reflect their actual conditions.

Pending transactions must not be treated in the same way as completed transactions.

The following table illustrates a sales value reconciliation summary.

ComponentAmount
Gross Sales125,000,000
Cancellation(8,000,000)
Return(3,000,000)
Discount(5,000,000)
Net Sales109,000,000

The figures above are illustrative examples for this case study.

Reconciliation results must be traceable to the original transactions. If differences remain unexplained, they must be documented as exceptions rather than considered resolved simply because the final totals appear to match.

Stage 5 — Producing an Analysis-Ready Dataset

After completing the transformation and reconciliation processes, the company produces a consolidated sales dataset that becomes the primary source for further analysis.

The dataset contains the information needed to understand sales activities.

An example of the final structure is shown below.

DateOrder IDChannelProduct CodeProductQtyGross SalesDiscountReturnNet Sales
01/10/2026ORD001SalesP001Product A5500,00000500,000
01/10/2026POS002POSP001Product A3300,00015,0000285,000
02/10/2026MKT003MarketplaceP001Product A2200,00010,0000190,000
02/10/2026ORD004SalesP002Product B4800,00020,0000780,000

This dataset is more than a collection of cleaned transactions.

Every column has a clear definition, every product has a consistent identifier, and sales values follow the agreed business rules.

Source information is also preserved, allowing each transaction to be traced back to its original record whenever necessary.

Stage 6 — Testing Dataset Readiness for Analysis

Before the final dataset is used for reporting, the company performs several tests to ensure that the transformed data is suitable for analysis.

These tests are intended to verify whether the dataset can reliably answer business questions.

The tests include:

1. Product-Based Testing

Does the total sales value for each product include transactions from all sales channels?

2. Period-Based Testing

Are transactions assigned to the correct reporting period according to the company's sales recognition policy?

3. Sales Channel Testing

Can the company compare the contribution of Sales, POS, and Marketplace channels?

4. Transaction Status Testing

Are cancelled and returned transactions treated according to the agreed business rules?

5. Value Consistency Testing

Does the total Net Sales in the final dataset match the reconciled sales value?

If all these tests are successfully completed, the dataset can be considered ready for analysis.

The dataset can then serve as the source for various reporting requirements in Microsoft Excel, including sales analysis by product, period, and sales channel.

Final Results — Before and After Transformation

The main improvement in this case study is not simply that the tables look more organized.

More importantly, the company has improved its ability to use data as a reliable source of business information.

AspectBefore TransformationAfter Transformation
Data SourcesSeparated across departmentsConsolidated
Product IdentifiersDifferent across sourcesUses master references
Transaction IdentifiersDifficult to traceOriginal references preserved
Transaction StatusInconsistentFollows business rules
Sales ValuesDifferent calculation resultsUses consistent definitions
ReconciliationRequires repeated manual investigationSupported by traceable records
Analysis ReadinessLimitedReady for analysis

With the transformed dataset, the company can begin answering business questions that were previously difficult to address consistently.

For example:

  • Which products generate the highest sales contribution?

  • Which sales channel generates the highest Net Sales?

  • How do sales develop from month to month?

  • How much do discounts affect sales value?

  • What is the impact of returns on sales?

  • Which products are experiencing declining sales?

These questions become easier to answer because the company now has a dataset with consistent definitions and references.

Conclusion

Transforming messy sales data into an analysis-ready dataset is not simply a matter of cleaning tables or correcting number formats.

The process requires an understanding of data sources, transaction identities, business rules, and the consistency of information across different departments.

In this case study, successful transformation is determined not only by the ability to use Microsoft Excel features, but also by the ability to establish how each transaction should be treated and how the final results can be verified.

Microsoft Excel provides various tools to support this process. However, technology is only a tool for executing a process that has been properly designed.

Ultimately, the primary objective of data processing is not to produce visually organized tables, but to generate reliable information that supports business decision-making.

Analysis-ready data is not merely data that has been technically cleaned; it is data that also makes business sense.