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
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:
Today | This month | Last 3 Months |
Yesterday | This quarter | Last 12 Months |
Same day last week | This year | Last 7 Days Week Ago |
Same day last month | This Year-to-Last-Month | Last 7 Days Year Ago |
Same day last year | Last Week | Last 30 Days Month Ago |
Last 7 Days | Last Month | Last 30 Days Year Ago |
Last 14 Days | Last Quarter | Last Week Year Ago |
Last 30 Days | Last Year | Last Month Year Ago |
Last 90 Days | Last 60 Days | YYYY-MM (change format to text) |
This week | YYYY | 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.