Google Sheets Functions

⌘K
  1. Home
  2. Docs
  3. Google Sheets Functions
  4. 1.Seller Central Data/Fun...
  5. GORILLA_COGSTOTAL() – Display total COGS if COGS has been entered via your Gorilla ROI account

GORILLA_COGSTOTAL() – Display total COGS if COGS has been entered via your Gorilla ROI account

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_COGSTOTAL("TOY STORE", "2023")
=GORILLA_COGSTOTAL("TOY STORE", "2023", A1:A100)
=GORILLA_COGSTOTAL("TOY STORE", "2023-12", "IPHONE", "TOTAL")

Syntax Description

COGSTOTAL2 Gorilla ROI

Description:

Display total COGS if COGS has been entered via your Gorilla ROI account

Syntax:

GORILLA_COGSTOTAL(Seller ID, period, [sku], [output], [marketplace], [count], [sort], [start_date], [end_date], [status], [mcf])

Seller ID – REQUIRED
Enter the seller ID or nickname you entered in your Gorilla account.

PERIOD – REQUIRED
Predefined period to get Total COGS. Supports array input when the ‘OUTPUT’ is set to ‘TOTAL’. If ‘DUMP’ is used, only a single time period can be used. Not an array.

SKU – OPTIONAL
SKU or ASIN to filter the results. Can be a range.

OUTPUT – OPTIONAL
Use to select the type of data output required. Use ‘TOTAL’ to get a single value output of the Total COGS (units sold x COGS). Use ‘DUMP’ to generate a table of the SKU, ASIN, Units Sold, unit COGS and Total COGS. Valid values: ‘TOTAL’ or ‘DUMP’ (default is ‘DUMP’).

MARKETPLACE – OPTIONAL
Marketplace country filter. Country codes are US, CA, MX, BR, BE, UK, DE, ES, IT, FR, NL, PL, TR, IN, SE, AE, AU, SG, JP, EG, SA. Use ALL to combine values from a single account, ‘EU’ for all Europe markets EXCEPT UK, ‘EURO’ to combine countries using EURO currency.

COUNT – OPTIONAL
Number of data rows to display when using ‘DUMP’ mode (not ‘TOTAL’). This is recommended for sellers with tens of thousands of SKUs.

SORT – OPTIONAL
Sorting criteria for ‘DUMP’ output. Sort by SKU or by date. Valid values: ‘SKU_Asc’ (DEFAULT), ‘Date_Asc’, ‘SKU_Desc’, ‘Date_Desc’.

START_DATE – OPTIONAL
Starting date for the data when period is ‘CUSTOM’.

END_DATE – OPTIONAL
Ending date for the data when period is ‘CUSTOM’.

STATUS – OPTIONAL
Order Status. Valid values are:

  • AllButCanceled (default)
  • All
  • PendingAvailability (JP only)
  • Pending
  • Unshipped
  • PartiallyShipped
  • Shipped
  • Shipping
  • InvoiceUnconfirmed
  • Canceled
  • Unfulfillable

MCF – OPTIONAL
MCF Orders processing.
Valid values are:

  • Exclude (default)
  • Include
  • Only (Only MCF orders)

GORILLA_COGSTOTAL() 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_COGSTOTAL("TOY STORE", "2023")

This will provide a DUMP of COGS in a table like manner for all the SKUs under this seller, consisting of SKU, ASIN, Name, Market, Currency, Units Sold, COGS, Total COGS, Date for year 2023.

=GORILLA_COGSTOTAL("TOY STORE", "2023", A1:A100)

This will provide a DUMP of COGS in a table like manner for SKUs from A1 till A100, consisting of SKU, ASIN, Name, Market, Currency, Units Sold, COGS, Total COGS, Date for year 2023.

=GORILLA_COGSTOTAL("TOY STORE", "2022-12", "IPHONE", "TOTAL")

The output result will be a Total COGS incurred against ‘IPHONE’ in December, 2023.

Tags