Google Sheets Functions

  1. Home
  2. Docs
  3. Google Sheets Functions
  4. GORILLA_PROFITLOSS() – Get detailed financials to build profit loss statement for the account or by SKU/ASIN

GORILLA_PROFITLOSS() – Get detailed financials to build profit loss statement for the account or by SKU/ASIN

Sample Usage

🚨 Use ranges (e.g.A2:A1000) in your formula wherever possible for 
quicker results and to prevent Google from blocking your account for 
24 hrs due to overloading their resources. 
=GORILLA_PROFITLOSS("2022")
=GORILLA_PROFITLOSS("THIS YEAR", "US")
=GORILLA_PROFITLOSS(A2,B2,"MYSKU")
=GORILLA_PROFITLOSS("THIS YEAR", "US", , "Income-Other")
=GORILLA_PROFITLOSS("LAST 30 DAYS", "FR", ,"Amazon fees", "YES")

Syntax description

orilla profitloss function

Description:

Gets the financial data to build a profit and loss statement for your Amazon FBA account or by SKU/ASIN.

Automatically generated a prebuilt table, or pull detailed profit and expense line items to build your own statements.

Syntax:

GORILLA_PROFITLOSS(period, [marketplace], [sku], [category], [details])

for Gorilla AGENCY, the syntax is

GORILLA_PROFITLOSS(sellerID, period, [marketplace], [sku], [category], [details])

period
REQUIRED – Predefined periods and any custom date frames to get the rank history. See full list of predefined periods below.

marketplace
OPTIONAL – Marketplace filter. Use Default for the seller default. Other valid values are country codes US, IT, etc. or Amazon Marketplace ID like ATVPDKIKX0DER.

sku
OPTIONAL – SKU or ASIN to filter the results. Only empty (for seller’s total) or 1 SKU or ASIN can be provided when details is set to “YES” or “NO”.

A range (vertical or horizontal array) can be used when details are ‘totals_only’ to generate a matrix of data.

category
OPTIONAL – specify the line item to get the total value for that single category

  • Sales
  • Discounts/Promotions
  • Amazon Reimbursements
  • Shipping Income
  • Income-Other
  • Amazon Lending
  • Tax
  • Amazon Advertising
  • Storage Fees
  • Amazon COGS
  • Other Amazon Fees
  • Amazon Commission
  • FBA Fulfillment Fees
  • FBA Inventory Removals

 details
OPTIONAL – defaults to “no”:

  • Yes = Will list all the transactions associated with the category
  • No = Will only show the total value of the category

GORILLA_PROFITLOSS Attributes

period Attributes:

TodayThis monthLast 3 Months
YesterdayThis quarterLast 12 Months
Same day last weekThis yearLast 7 Days Week Ago
Same day last monthThis Year-to-Last-MonthLast 7 Days Year Ago
Same day last yearLast WeekLast 30 Days Month Ago
Last 7 DaysLast MonthLast 30 Days Year Ago
Last 14 DaysLast QuarterLast Week Year Ago
Last 30 DaysLast YearLast Month Year Ago
Last 90 DaysLast 60 DaysYYYY-MM (change format to text)
 This weekYYYY YYYYQ1… YYYYQ4
Custom

Examples:

🚨 Use ranges (e.g.A2:A1000) in your formula wherever possible for 
quicker results and to prevent Google from blocking your account for 
24 hrs due to overloading their resources. 
=GORILLA_PROFITLOSS(“2020”)

Will automatically generate a condensed and summarized profit and loss table in the form of:

  • Sales – $xx.xx
  • Refunds – $xx.xx
  • Discounts/Promotions – $xx.xx
  • Amazon Reimbursements – $xx.xx
  • Shipping Income – $xx.xx
  • Income-Other – $xx.xx
  • Amazon Lending – $xx.xx
  • Tax – $xx.xx
  • Amazon Advertising – $xx.xx
  • Storage Fees – $xx.xx
  • Amazon COGS – $xx.xx
  • Other Amazon Fees – $xx.xx
  • Amazon Commission – $xx.xx
  • FBA Fulfillment Fees – $xx.xx
  • FBA Inventory Removals – $xx.xx
=GORILLA_PROFITLOSS("THIS YEAR", "US")

Will generate a table like the example above for the US marketplace profit and loss only.

=GORILLA_PROFITLOSS(A2,B2,"MYSKU")

Using cells A1 and B2 to point to the period and the marketplace. Creates the P&L based on the SKU “mysku”. When a SKU is entered, not all transactions are available like storage costs as it is applied to your account and not the SKU.

=GORILLA_PROFITLOSS("THIS YEAR", "US", , "Income-Other")

Returns the total value only for the line item “Income-Other”. You can specify a category to get single values rather than generate the full table each time.

=GORILLA_PROFITLOSS("LAST 30 DAYS", "FR", ,"Amazon fees", "YES")

List all the transactions that make up the category you specify. In this example, it will list all the expenses that are rolled up inside “Amazon Fees”.

To get quarterly data use the format YYYYQ1, YYYYQ2, YYYYQ3, YYYYQ4 as the preset period.

2020Q1, 2019Q4 etc

To get monthly data, use the format YYYY-MM as the preset period. 2020-04, 2021-07 etc

For Gorilla AGENCY, the formulas will start with the seller ID:

=GORILLA_PROFITLOSS(sellerID, "2020")
=GORILLA_PROFITLOSS(sellerID, "THIS YEAR", "US")
=GORILLA_PROFITLOSS(sellerID, A2,B2,"MYSKU")
=GORILLA_PROFITLOSS(sellerID, "THIS YEAR", "US", , "Income-Other")
=GORILLA_PROFITLOSS(sellerID, "LAST 30 DAYS", "FR", ,"Amazon fees", "YES")

Free Profit Loss spreadsheet template

download button Gorilla ROI

How can we help?