Google Sheets

Profit and Loss Template Google Sheets: Build a Monthly P&L

This profit and loss template in Google Sheets builds a monthly P&L straight from your bank and card transactions. The example is Harbor Lane Coffee Roasters, a fictional coffee roastery and cafe in Portland, Oregon, with 216 transactions from January to October 2026.

Profit and loss template in Google Sheets with monthly columns
The finished monthly P&L with the check row.

⬇️  Join Free on Skool & Download the Practice File
Free membership · takes 1 minute · the file is in Classroom → Free Downloads from YouTube
Google Sheets · practice tabs and solution tabs · sign in and click Make a copy

Watch the Video Tutorial

Video Overview

The video shows the finished P&L, the red check for a missing transaction and the month snapshot first. Then it builds everything from the practice file: two helper columns, one SUMIFS formula for the whole table, totals and margins, the check row, and a snapshot with a dropdown, cards and a chart.

What Is in the Practice File?

A Transactions tab, a Categories tab with 13 categories in three sections (Revenue, Cost of Goods Sold, Operating Expenses), a P&L layout, a Snapshot tab and finished solution tabs.

Transactions tab in Google Sheets
Date, description, category and amount.

Step 1: Section and Month Helper Columns

=XLOOKUP(D9,Categories!$B$4:$B$16,Categories!$C$4:$C$16,"UNCATEGORIZED")

=TEXT(B9,"mmm yyyy")

Fill both down to row 224. Add a conditional formatting rule that turns UNCATEGORIZED red.

XLOOKUP formula for the section column
XLOOKUP returns the section for each category.
Conditional formatting for UNCATEGORIZED transactions
A mistyped category stands out.

Step 2: Monthly P&L with SUMIFS

=SUMIFS(Transactions!$E$9:$E$224,Transactions!$D$9:$D$224,$B11,Transactions!$G$9:$G$224,C$9)

$B11 locks the line name column and C$9 locks the month header row, so one formula fills every line and month. Google documents the function in its SUMIFS help page.

SUMIFS formula for cafe sales in January
One formula for the whole table.
Copying the SUMIFS formula across months
Paste into revenue, cost and expense lines.

Totals, Margins and Percent of Revenue

=SUM(C11:C13)

=C14-C20

=IF(C14=0,"",C21/C14)

=C21-C32

=IF(C14=0,"",C34/C14)

=IF(C11="","",SUM(C11:L11))

=IF(M11="","",M11/$M$14)

Year to date revenue is about $458,000, the gross margin is 69.6% and payroll is 42% of revenue. January and February show losses in red brackets because of the annual insurance premium paid in February.

Percent of revenue column in the Google Sheets P and L
Year to date and percent of revenue.

Step 3: The P&L Check

=COUNTIF(Transactions!$F$9:$F$224,"UNCATEGORIZED")

=SUMIFS(Transactions!$E$9:$E$224,Transactions!$F$9:$F$224,"UNCATEGORIZED")

=IF(C37=0,"ALL TRANSACTIONS ARE IN THE P&L",C37&IF(C37=1," TRANSACTION"," TRANSACTIONS")&" MISSING - FIX THE CATEGORY")

Custom formula colour rules for the P and L check
Red when something is missing.

One $1,150 repair was typed as Equipment Repair instead of Equipment Repairs. Fix the category and the check turns green. September net income drops to $3,549.

Green check showing all transactions are in the P and L
All transactions are in the P&L.

Bonus: Month Snapshot

Add a dropdown of months with Data validation, then pull each card with XLOOKUP.

=XLOOKUP($C$8,'P&L'!$C$9:$L$9,'P&L'!$C$14:$L$14)

=IF(H11>=0,"PROFITABLE MONTH","LOSS MONTH")

=TRANSPOSE('P&L'!$C$9:$L$9)

Use rows 21, 32, 34 and 35 for the other cards, TRANSPOSE rows 14 and 34 for the trend table, then insert a column chart.

Month snapshot cards in Google Sheets
Cards that follow the dropdown.
Revenue and net income chart in Google Sheets
June 2026: $49,245 revenue and $6,813 net income.

Typed P&L or Formula-Driven P&L?

Task Typed by hand This sheet
Monthly totals Added up by hand SUMIFS from transactions
Missed items Hard to notice Check row shows count and amount
One month view Scroll a long report Pick from a dropdown

Download the Free Practice File

⬇️  Join Free on Skool & Download the Practice File
Free membership · takes 1 minute · the file is in Classroom → Free Downloads from YouTube
Google Sheets · practice tabs and solution tabs · sign in and click Make a copy

Want It Ready Made?

See the ready-to-use Profit and Loss Templates in Google Sheets from Next Gen Templates. To learn these functions properly, join the Google Sheets Course Beginner to Advanced. Code NTN-GS20 gives 20% off, valid till December 31, 2026.

Related Tutorials

Frequently Asked Questions

How do I make a profit and loss statement in Google Sheets?

List your transactions with date, category and amount, map each category to a section, then use SUMIFS by category and month to fill the P&L lines.

Why use text month headers?

The Month helper column is text made with TEXT, so the headers must be text too. A typed month can turn into a date and stop matching.

What does UNCATEGORIZED mean?

The category on that transaction is not in the chart of accounts, usually because of a typing mistake.

Why add a P&L check?

SUMIFS ignores a category it cannot match without showing any error, so the check row counts the missing transactions and their amount.

How do losses show in red brackets?

Use a custom number format such as $#,##0;[Red]($#,##0).

Can I use my own categories?

Yes. Add them to the Categories tab with their section and add the matching line to the P&L tab.

By PK. Harbor Lane Coffee Roasters and all names and numbers are fictional example data for learning. This is not accounting advice.

Conclusion

With two helper columns, one SUMIFS formula and a check row, your profit and loss template in Google Sheets shows every month and tells you when something is missing.

PK
Written by PK (Priyendra Kumar)
Microsoft Certified Professional with 15+ years in data analysis, dashboards and automation. Creator of PK: An Excel Expert and NeoTech Navigators on YouTube. About the author
Tested in the real tool · Last reviewed December 5, 2026
PK
Meet PK, the founder of NeotechNavigators.com! With over 15 years of experience in Data Visualization, Excel Automation, and dashboard creation. PK is a Microsoft Certified Professional who has a passion for all things in Excel. PK loves to explore new and innovative ways to use Excel and is always eager to share his knowledge with others. With an eye for detail and a commitment to excellence, PK has become a go-to expert in the world of Excel. Whether you're looking to create stunning visualizations or streamline your workflow with automation, PK has the skills and expertise to help you succeed. Join the many satisfied clients who have benefited from PK's services and see how he can take your data analysis skills to the next level!
https://neotechnavigators.com