How to Create a Profit and Loss Statement in Excel: Step-by-Step Tutorial
Learn how to build a professional P&L statement in Excel from scratch. This tutorial covers formulas, formatting, and templates for any small business.
How to Create a Profit and Loss Statement in Excel: Step-by-Step Tutorial
Creating a Profit and Loss statement doesn't require expensive accounting software. With Excel (or Google Sheets), you can build a professional P&L that tracks your business finances effectively. This tutorial walks you through the entire process.
What You'll Need
Before starting:
Understanding P&L Structure
A P&L statement follows a standard format:
We'll build each section step by step.
Step 1: Set Up Your Spreadsheet
Create the Basic Layout
Open a new Excel workbook and set up your columns:
Format the Header
In Row 1, create your header:
Apply formatting:
Set Column Widths
Step 2: Build the Revenue Section
Starting in Row 4:
Row Setup
| Row | Column A | Column B |
|-----|----------|----------|
| 4 | **REVENUE** | |
| 5 | Product Sales | [enter amount] |
| 6 | Service Revenue | [enter amount] |
| 7 | Other Income | [enter amount] |
| 8 | **Total Revenue** | =SUM(B5:B7) |
Key Formula
The Total Revenue formula sums all revenue line items:
`=SUM(B5:B7)`
**Pro Tip:** Use named ranges for easier formula management. Select B5:B7, go to Formulas > Define Name, call it "Revenue_Items".
Then your total formula becomes: `=SUM(Revenue_Items)`
Formatting Revenue Section
Step 3: Build the Cost of Goods Sold Section
Starting in Row 10:
| Row | Column A | Column B |
|-----|----------|----------|
| 10 | **COST OF GOODS SOLD** | |
| 11 | Beginning Inventory | [enter amount] |
| 12 | Purchases | [enter amount] |
| 13 | Freight-In | [enter amount] |
| 14 | Less: Ending Inventory | [enter amount] |
| 15 | **Total COGS** | =B11+B12+B13-B14 |
The COGS Formula
For businesses with inventory:
`=Beginning_Inventory + Purchases - Ending_Inventory`
For service businesses, COGS might include:
Calculate Gross Profit
Row 17:
| Row | Column A | Column B |
|-----|----------|----------|
| 17 | **GROSS PROFIT** | =B8-B15 |
This is Revenue minus COGS - the profit before operating expenses.
Step 4: Build the Operating Expenses Section
This is usually the longest section. Starting in Row 19:
| Row | Column A | Column B |
|-----|----------|----------|
| 19 | **OPERATING EXPENSES** | |
| 20 | Rent | [enter amount] |
| 21 | Utilities | [enter amount] |
| 22 | Salaries & Wages | [enter amount] |
| 23 | Payroll Taxes | [enter amount] |
| 24 | Insurance | [enter amount] |
| 25 | Marketing & Advertising | [enter amount] |
| 26 | Office Supplies | [enter amount] |
| 27 | Professional Services | [enter amount] |
| 28 | Repairs & Maintenance | [enter amount] |
| 29 | Depreciation | [enter amount] |
| 30 | Other Expenses | [enter amount] |
| 31 | **Total Operating Expenses** | =SUM(B20:B30) |
Customize for Your Business
Add or remove line items based on your actual expenses. Common additions:
Calculate Operating Income
Row 33:
| Row | Column A | Column B |
|-----|----------|----------|
| 33 | **OPERATING INCOME** | =B17-B31 |
Step 5: Add Other Income and Expenses
For items outside normal operations. Starting in Row 35:
| Row | Column A | Column B |
|-----|----------|----------|
| 35 | **OTHER INCOME/EXPENSES** | |
| 36 | Interest Income | [enter amount] |
| 37 | Interest Expense | [enter amount] |
| 38 | Gain/Loss on Asset Sale | [enter amount] |
| 39 | **Total Other Income/Expenses** | =B36-B37+B38 |
Step 6: Calculate Net Income
The bottom line! Row 41:
| Row | Column A | Column B |
|-----|----------|----------|
| 41 | **NET INCOME** | =B33+B39 |
This is your profit (or loss) for the period.
Step 7: Add Helpful Calculations
Gross Profit Margin
Add this below your main P&L (Row 44):
`=B17/B8`
Format as percentage. This shows gross profit as a percentage of revenue.
Net Profit Margin
Row 45:
`=B41/B8`
Format as percentage. This shows what percentage of revenue becomes profit.
Expense Ratios
For each major expense, you can calculate percentage of revenue:
`=B22/B8` (Salaries as % of revenue)
Step 8: Add Budget and Variance Columns
To compare actual vs. budget:
Column C: Budget
Enter your budgeted amounts for each line item.
Column D: Variance
For revenue items (more is better):
`=B5-C5` (positive = good)
For expense items (less is better):
`=C20-B20` (positive = good)
Conditional Formatting for Variances
Now favorable variances show green, unfavorable show red.
Step 9: Add Year-to-Date Columns
For a complete picture, add YTD tracking:
Column E: YTD Actual
You can either:
Column F: YTD Budget
Same as above for budgeted amounts.
Step 10: Professional Formatting
Visual Improvements
Print Setup
Sample Template Summary
Here's the complete structure:
```
Row 1: Title (Profit and Loss Statement)
Row 2: Period (For Month Ending XX/XX/XXXX)
Row 3: (blank)
Row 4: REVENUE (header)
Rows 5-7: Revenue line items
Row 8: Total Revenue (formula)
Row 9: (blank)
Row 10: COST OF GOODS SOLD (header)
Rows 11-14: COGS line items
Row 15: Total COGS (formula)
Row 16: (blank)
Row 17: GROSS PROFIT (formula)
Row 18: (blank)
Row 19: OPERATING EXPENSES (header)
Rows 20-30: Expense line items
Row 31: Total Operating Expenses (formula)
Row 32: (blank)
Row 33: OPERATING INCOME (formula)
Row 34: (blank)
Row 35: OTHER INCOME/EXPENSES (header)
Rows 36-38: Other items
Row 39: Total Other (formula)
Row 40: (blank)
Row 41: NET INCOME (formula)
Row 42: (blank)
Row 43: (blank)
Row 44: Gross Margin % (formula)
Row 45: Net Margin % (formula)
```
Common Excel Formulas for P&L
| Purpose | Formula |
|---------|---------|
| Sum a range | =SUM(B5:B10) |
| Percentage of total | =B5/$B$8 |
| Variance | =B5-C5 |
| Percentage change | =(B5-C5)/C5 |
| Running total | =SUM($B$5:B5) |
| If negative, show in parentheses | =IF(B41<0,"("&ABS(B41)&")",B41) |
Protecting Your Template
Once built, protect your template:
Maintaining Your P&L
Monthly Process
Year-End Process
Troubleshooting Common Issues
Formula Errors
Numbers Don't Balance
Beyond Basic Excel
As your business grows, consider:
Conclusion
A well-built Excel P&L statement gives you financial visibility without expensive software. The key is:
**Your next step:** Build your P&L template this week using the structure above. Enter last month's numbers. Calculate your gross and net margins. How do they compare to industry benchmarks?
The numbers don't lie - but they only help if you look at them.
Ready to Analyze Your Sales Data?
Upload your POS export and get instant dashboards with AI-powered insights. Free to try.
Start Free Analysis