Sample Sales Excel File: How to Build One
In this article
To create a sample sales Excel file, open a new workbook and set up five columns: Date, Product, Quantity, Unit Price, and Total. Enter a few rows of realistic test data, add a formula in the Total column (=C2*D2), then format the range as a table with headers. That gives you a working sample you can filter, sort, and total. The steps below build a clean, reusable file you can share with a team or use to test a sales tracker.
What You'll Need
- Microsoft Excel (desktop or web), or a free alternative like LibreOffice Calc or Google Sheets — the formulas are the same.
- A blank workbook and about 10–20 rows of made-up sales data (dates, product names, quantities, prices).
- Basic familiarity with typing formulas and selecting cell ranges.
Step-by-Step
- Open a new workbook. In Excel, go to File > New > Blank workbook. In Google Sheets, open a new spreadsheet. Save it immediately with a clear name like sample-sales.xlsx so you do not lose work.
- Set up the header row. In row 1, type these labels across columns A to E: Date, Product, Quantity, Unit Price, Total. Bold the row and add a fill color so it stands out. Keep headers in one row only — merged cells above headers cause sorting and filtering problems later.
- Enter sample data. Starting in row 2, type realistic test rows. For example: 2024-01-05, Widget A, 3, 19.99. Use actual dates (Excel recognizes them if you type them as dates) and plain numbers for Quantity and Unit Price — no currency symbols or text in those cells. Add 10–20 rows so formulas and totals have something to work with.
- Add the Total formula. Click cell E2 and type
=C2*D2, then press Enter. This multiplies Quantity by Unit Price. Drag the small square at the bottom-right corner of E2 down to fill the formula for every data row. Check one row manually to confirm the result is correct. - Format the numbers. Select the Unit Price and Total columns, then use Home > Number Format to apply Currency. Select the Date column and apply a date format like Short Date. This makes the file readable and prevents dates from displaying as random numbers.
- Convert the range to a table. Select any cell in your data, then go to Insert > Table (or press Ctrl+T on Windows, Cmd+T on Mac). Confirm the range and tick “My table has headers.” A table gives you filter arrows, banded rows, and automatic expansion when you add new rows. If you prefer not to use a table, apply filters manually via Data > Filter.
- Add a totals row. With the table selected, go to Table Design and tick Total Row. Excel adds a row at the bottom; set the Total column to Sum so you see overall sales. You can also add a sum below the table with
=SUM(E2:E21)if you are not using a table. - Create a simple summary. In an empty area to the right, add labels like “Total Sales,” “Number of Orders,” and “Average Order Value.” Use =SUM(Table1[Total]) , , and =AVERAGE(Table1[Total]) — or plain range references if you skipped the table. This turns raw rows into a quick snapshot.
- Freeze the header row. Go to View > Freeze Panes > Freeze Top Row so headers stay visible when you scroll. This is especially useful if you expand the sample to hundreds of rows.
- Save and test. Save the file, then try sorting by Total (largest to smallest) and filtering by Product. If anything breaks — totals change, rows misalign — undo and check that formulas reference the correct cells. A sample file is only useful if it behaves predictably.
Common Mistakes
- Typing numbers as text. If Quantity or Unit Price cells are left-aligned, Excel may treat them as text and formulas return errors or zero. Fix by retyping without spaces or apostrophes, or use Data > Text to Columns.
- Leaving blank rows inside the data. Blank rows break sorting, filtering, and table expansion. Keep the data contiguous.
- Hard-coding totals. Typing a total instead of using a formula means it will not update when data changes. Always use
=C2*D2style formulas. - Mixing date formats. Some rows as text dates and others as real dates cause sorting errors. Apply one date format to the whole column.
- Forgetting to save as .xlsx. Saving as .csv strips formulas and formatting. Keep the master as .xlsx and export a copy if you need CSV.
Tips
- Use consistent product names — “Widget A” and “widget a” are treated as different items in filters and pivot tables.
- Add a Notes column for context (e.g., “online order,” “in-store”) without cluttering the main columns.
- Keep a separate “Read Me” sheet explaining what the sample contains, so colleagues know it is test data.
- Use cell comments or data validation to guide anyone who edits the file later.
- If you plan to analyze the data, insert a PivotTable (Insert > PivotTable) to summarize sales by product or date.
Troubleshooting
- Formula returns #VALUE!: One of the referenced cells contains text instead of a number. Check the Quantity and Unit Price cells for stray characters.
- Totals do not update: Calculation may be set to Manual. Go to Formulas > Calculation Options and choose Automatic.
- Table won't expand: Type new data directly in the row immediately below the table; Excel should auto-expand. If not, drag the table's bottom-right corner.
- Dates show as numbers: The cell format is General or Number. Select the column and apply a Date format from the Home tab.
- Filter arrows missing: If you are not using a table, select the header row and go to Data > Filter.
- File opens with errors in another program: Save a copy as .xlsx and avoid special characters in sheet names; some apps do not support advanced table features.
Frequently Asked Questions
Can I use Google Sheets instead of Excel?
Yes. The formulas and table features are nearly identical. Google Sheets uses Format > Convert to table in newer versions, or you can apply filters manually. The file can be downloaded as .xlsx for Excel users.
How many rows should a sample sales file have?
Ten to fifty rows is enough to demonstrate formulas, sorting, and filtering without becoming unwieldy. Add more only if you need to test performance or pivot tables.
Do I need a table, or can I just use plain cells?
Plain cells work fine for a simple sample. Tables add automatic formatting, filter buttons, and structured references that make formulas easier to read, but they are optional.
How do I share the file without exposing real data?
Use entirely made-up names and numbers. Avoid real customer names or email addresses. If you must use realistic data, replace identifying details before sharing.
Why does my Total column show zero?
Either the Quantity or Unit Price cell is blank or contains text. Check both cells and retype the number if needed.
Can I add a chart to the sample?
Yes. Select your data range and go to Insert > Chart. A column chart of sales by product or a line chart over dates works well and updates automatically if the data changes.