Excel File Example: How to Build a Spreadsheet
In this article
To create a working Excel file example, open Excel, type your column headings in row 1, add one sample row of data underneath, select the range, choose Insert > Table, and save the workbook as an .xlsx file with File > Save As. That gives you a file that sorts, filters, totals and prints correctly instead of a loose grid of text. Menu names vary slightly by version, device and region, but the steps below match the current desktop versions of Excel for Microsoft 365 and Excel 2021, on Windows and Mac.
What You'll Need
- A licensed copy of Excel for desktop, or Excel for the web through a Microsoft account. The desktop app is easier because everything sits in one window.
- A clear idea of what your example is for: a budget, a stock list, a contact list or a simple tracker. The column headings depend entirely on this.
- A folder where the file should live, and a name you will recognise later. Avoid saving to Desktop permanently if the file matters.
- Optional: a few rows of realistic sample data so the example looks right when it is shared. Never put real client or financial data in a template you will circulate.
Step-by-Step
- Start a blank workbook. Open Excel and choose Blank workbook. If Excel opens on the Start screen, that template is the first item. Do not start from a template yet; build the layout once by hand so you understand the structure.
- Plan the columns before typing. Click cell A1 and list what each column will hold, one idea per column, so the sheet reads left to right. For a household budget example: Date, Category, Description, Paid To, Amount, Method. Keep headings to one or two words and never merge heading cells. Merged cells break sorting and filtering later.
- Type the headings into row 1. Press Tab to move right across the row, and Enter to drop to the next row. Row 1 is a convention, not a requirement, but every tool that reads the sheet assumes the first row holds labels.
- Make the headings bold and add a background fill. Select A1:F1, then use the Bold button on the Home tab and the Fill Colour bucket next to it. This is cosmetic but it makes the table easy to scan and signals to other people where the data starts.
- Enter two or three sample records. Type dates as real dates such as 03/02/2026, amounts as plain numbers like 42.50 with no currency symbol typed in, and categories consistently, so Groceries is always spelled the same way. Typing the currency symbol into the cell turns the value into text and totals stop working.
- Format the number column. Select the Amount column cells, right-click and choose Format Cells, then pick Currency or Number with two decimal places. Doing this once on the whole column saves fixing every row.
- Convert the range to a real table. Select any cell inside your data and choose Insert > Table. Confirm the range and tick My table has headers. The table now carries banded rows, a header row with filter arrows, and it grows automatically when you type in the row beneath it.
- Add a total row. With a cell in the table selected, go to the Table Design tab and tick Total Row. Excel adds a summary row at the bottom. Click the cell under Amount and choose Sum from the dropdown. Note that Total Row is on the Table Design tab, which only appears while the cursor is inside a table.
- Test that it actually works. Use the filter arrow on Category and tick one category only. The total should recalculate for the filtered rows. Clear the filter, then sort Amount from largest to smallest. If nothing moves, or every row jumps around oddly, your range was probably wrong when you made the table.
- Freeze the header row. With the sheet scrolled to the top, choose View > Freeze Panes and pick Freeze Top Row. Long lists then scroll under a fixed header, which matters for anything past one screen.
- Turn on print-friendly settings. Go to Page Layout and set Orientation to Landscape if your table is wide, and use Print Titles to repeat row 1 on every printed page. Preview it with File > Print before you send the file, since wide tables otherwise split mid-column.
- Save it as .xlsx. Choose File > Save As, pick the folder, set the file name, and keep the file type as Excel Workbook (*.xlsx). Then save a clean copy without your sample rows as a blank template if you plan to reuse the layout. Test opening the saved file once more before you rely on it.
Common Mistakes
- Typing numbers with symbols, spaces or commas attached, which turns them into text. Use Format Cells for formatting instead.
- Leaving blank rows and columns inside the data range. Excel stops treating the range as one block, and sorting leaves half the rows behind.
- Using merged cells for headings or, worse, for data. Merging makes filtering, sorting and copy-paste behave unpredictably.
- Inconsistent category spellings such as Grocery, Groceries and groceries, which splits one category into three in any summary.
- Saving as .csv when you need formatting, formulas or more than one sheet. CSV keeps values only and drops the rest silently.
- Sending an example full of real names, account numbers or pay details. Strip or replace real data before sharing.
Tips
- Name the table in Table Design so formulas read as Sales[Amount] instead of cryptic cell references.
- Use Ctrl+Z or Cmd+Z freely while experimenting, and keep a saved copy before any big restructure.
- Add data validation to a category column so later entries can only pick from your list, using Data > Data Validation with a list of allowed values.
- Keep one table per sheet. Several unrelated tables stacked on one sheet look tidy and are painful to sort, filter or analyse.
- Use a separate sheet for notes rather than writing comments inside the data rows.
- If a colleague will edit the file, tell them not to insert rows above the header or type in the total row.
Troubleshooting
The total will not add up. Click a suspicious cell and look at its alignment: numbers right-align by default, text left-aligns. If the value is left-aligned, it was entered as text. Retype it as a plain number or use the Text to Columns wizard to convert the column.
The filter arrows have disappeared. The cursor is probably outside the table. Click any cell in the data and check whether Table Design appears in the ribbon. If the range was never converted to a table, select it and use Insert > Table again.
Sorting scrambles the data. Either the selected range did not include every column, or blank rows split the block. Press Ctrl+Z or Cmd+Z immediately to undo, then select the whole table, including the header, before sorting.
The file opens in Protected View or as read-only. Protected View is a security feature for files that came from the internet or email; use Enable Editing if you trust the sender. Read-only usually means someone else has the file open or it sits in a read-only sync folder.
The header sits halfway down the screen when scrolling. Freeze Panes was applied at the wrong row. Choose View > Freeze Panes > Unfreeze Panes, scroll to the top, then freeze the top row again.
Printing splits the table awkwardly. Set orientation to Landscape, fit the sheet to one page wide under Page Layout, and turn on Print Titles for the header row. Preview before printing.
If none of that works, sign out and back in to your Microsoft account for a web-based problem, update Excel, and as a last resort copy the values into a fresh workbook, since a corrupt file can misbehave in ways no setting fixes. Keep the old copy until the new one is confirmed, because a reset or reinstall can lose unsaved work.
Frequently Asked Questions
Is an Excel example file the same as a template?
Not exactly. An example is a filled-in spreadsheet you can learn from or copy. A template is a saved shell you open to start new work, usually stored as .xltx so new copies are created each time.
Should I use a table or just plain cells?
Use a table whenever you will sort, filter or add rows. It expands automatically, keeps the header row fixed and gives you a ready total row. Plain cells are fine for a quick one-off calculation.
Why does my file save as .csv when I open it again?
You likely chose CSV at the last Save As. CSV keeps only current values, drops formulas, formatting and extra sheets, and remembers the choice afterwards, so always pick Excel Workbook (*.xlsx).
Can I share the file without exposing real data?
Yes. Delete or replace sensitive rows first, remove any hidden sheets by right-clicking the sheet tab and unhiding, and check the file's Document Inspector for hidden personal information before sending.
Does the example work in Excel for the web and on mobile?
The data and formulas carry over, but some formatting and table options are limited in the browser and the mobile app. Build the file on desktop if it needs to look a particular way.
What if I need columns that behave differently from each other?
Keep each column to one type of value. Mixing dates and notes in the same column forces Excel to treat everything as text, and sorting then runs alphabetically rather than by date.