Commercial Real Estate Investing
Market News & Data
General Info
Real Estate Strategies

Landlording & Rental Properties
Real Estate Professionals
Financial, Tax, & Legal


Real Estate Classifieds
Reviews & Feedback
Updated almost 2 years ago on . Most recent reply

How To Make a P&L with Pivot Tables in Google Sheets
Hello!
This is more of a spreadsheet question than a real estate theory question, but I'm asking this group since anyone who has tried to make a P&L this way will have run into this problem!
Problem: How do you insert a calculated ROW into a pivot table in Google sheets?
In my example below, I have a pivot table from a financial database for multiple properties. The pivot table has rows for Income and Expenses by property (simplified for example), with the properties as columns.
I want to insert ROWS (not columns!) into the pivot table to calculate KPIs like Profit (= Income - Expense). (There are more complicated calculations but simplifying here for sake of example).
I know how to insert a Calculated Field, which provides a COLUMN with the specified formula. However, I can't figure out how to insert a calculated field that produces a ROW with a specified formula.
Example below.
Thank you in advance!
Kim
Example Financial Database:

Example Pivot Table:

In the pivot table example above, I would want to add two calculated rows:
- 1. The first would calculate the Net Operating Income (= Income Total - Expense Total). This would be a row inserted between rows 10 and 11 above.
- 2. The second would calculate the Cash Flow (= Net Operating Income - Other Expense Total). This would be inserted after row 13.
Most Popular Reply

Well, @Jeff S. and @Mohammed Rahman, thanks for your interest in this project. You'll be happy to know, or perhaps not care at all :D, that I finally finished this project!
Through a lot of discussions in other spreadsheet forums as well as long conversations with ChatGPT, I was able to set up a Google Sheets template (without using AppsScript!) that creates a dynamic P&L and KPI analysis dashboard for each property as well as across the entire portfolio.
Here are the four main reports it produces:




Here is also a video tour of the template in case anyone is curious. Some final thoughts:
- I'm sure there are much fancier SAAS programs out there but even with the fancy ones, I have found the portfolio wide KPI analysis like this to be lacking.
- Additionally, the accounting programs often summarize data differently than how an investor wants to see it (for example, including depreciation in expenses and excluding interest payments). Many of them also do not contain the property wide analysis functionality.
- I think this is a really nice way for an Asset Manager (NOT a property manager) to see the annual and YOY performance of their portfolio, without having to use a huge property management software that is both expensive and redundant if they have third party property managers.
I hope this post helps other people who may look for this type of solution in the future.
Cheers,
Kim