We value your privacy

    We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Read our Cookie Policy for more information.

    InsightDash
    Back to Blog
    P&L Analysis

    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.

    InsightDash TeamDecember 14, 202516 min read
    How to Create a Profit and Loss Statement in Excel: Step-by-Step Tutorial - P&L Analysis analytics guide

    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:

  1. Microsoft Excel or Google Sheets
  2. Your business financial data (sales records, expense receipts, bank statements)
  3. About 30-60 minutes for initial setup
  4. Understanding P&L Structure

    A P&L statement follows a standard format:

  5. **Revenue** (all income)
  6. **Cost of Goods Sold** (direct costs)
  7. **Gross Profit** (Revenue - COGS)
  8. **Operating Expenses** (overhead costs)
  9. **Operating Income** (Gross Profit - Operating Expenses)
  10. **Other Income/Expenses** (interest, one-time items)
  11. **Net Income** (the bottom line)
  12. 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:

  13. **Column A:** Line item descriptions
  14. **Column B:** Current month actual
  15. **Column C:** Budget (optional)
  16. **Column D:** Variance (optional)
  17. **Column E:** Year-to-date (optional)
  18. Format the Header

    In Row 1, create your header:

  19. A1: "Profit and Loss Statement"
  20. A2: "For the Month Ending [Date]"
  21. Apply formatting:

  22. Bold, larger font (14-16pt)
  23. Merge cells A1:E1 for the title
  24. Set Column Widths

  25. Column A: 35-40 characters (for descriptions)
  26. Columns B-E: 15 characters each (for numbers)
  27. 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

  28. Bold the section header (REVENUE)
  29. Bold the total line (Total Revenue)
  30. Add a single underline above totals
  31. Format numbers as currency: Right-click > Format Cells > Currency
  32. 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:

  33. Direct labor
  34. Subcontractor costs
  35. Materials used
  36. 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:

  37. Travel expenses
  38. Vehicle expenses
  39. Bank fees
  40. Software subscriptions
  41. Licenses and permits
  42. 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

  43. Select the variance column
  44. Home > Conditional Formatting > Highlight Cell Rules
  45. Set "Less than 0" to red fill
  46. Set "Greater than 0" to green fill
  47. 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:

  48. Manually enter YTD totals
  49. Link to monthly sheets with formulas like: `=Jan!B5+Feb!B5+Mar!B5...`
  50. Column F: YTD Budget

    Same as above for budgeted amounts.

    Step 10: Professional Formatting

    Visual Improvements

  51. **Borders:**
  52. Single line above totals
  53. Double line below final net income
  54. **Shading:**
  55. Light gray for section headers
  56. Subtle alternating rows (optional)
  57. **Number Formatting:**
  58. Currency with no decimals for whole dollars
  59. Or standard accounting format: (1,234) for negatives
  60. **Alignment:**
  61. Text left-aligned
  62. Numbers right-aligned
  63. Headers centered
  64. Print Setup

  65. Page Layout > Print Titles > Rows to repeat at top: $1:$3
  66. Page Layout > Margins > Narrow
  67. Set to fit on one page wide
  68. 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:

  69. Unlock cells where data entry is needed: Format Cells > Protection > Uncheck "Locked"
  70. Review > Protect Sheet
  71. Save as template (.xltx)
  72. Maintaining Your P&L

    Monthly Process

  73. Copy template to new worksheet
  74. Enter actual figures from your records
  75. Verify totals match bank statements
  76. Review variances from budget
  77. Save and archive
  78. Year-End Process

  79. Create annual summary sheet
  80. Sum all monthly figures
  81. Compare to prior year
  82. Use for tax preparation
  83. Troubleshooting Common Issues

    Formula Errors

  84. **#REF!** - Referenced cell was deleted. Check your SUM ranges.
  85. **#VALUE!** - Text in a number field. Look for stray characters.
  86. **#DIV/0!** - Dividing by zero. Add IF statement: =IF(B8=0,0,B17/B8)
  87. Numbers Don't Balance

  88. Check that all revenue is captured (compare to bank deposits)
  89. Verify expenses match bank withdrawals plus credit card charges
  90. Look for duplicate entries
  91. Check date filters
  92. Beyond Basic Excel

    As your business grows, consider:

  93. **Linking to bank feeds** - Import transactions automatically
  94. **Pivot tables** - Analyze trends across periods
  95. **Charts** - Visualize revenue and expense trends
  96. **Dashboard** - Create a summary view with key metrics
  97. Conclusion

    A well-built Excel P&L statement gives you financial visibility without expensive software. The key is:

  98. Set it up correctly once
  99. Use consistent categories
  100. Update regularly (monthly minimum)
  101. Actually review the numbers and act on what they tell you
  102. **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.

    Share this article:

    Ready to Analyze Your Sales Data?

    Upload your POS export and get instant dashboards with AI-powered insights. Free to try.

    Start Free Analysis

    Related Articles