Cost of Sales (Historical)

Direct costs attributable to goods sold.

Syntax

=hf_Cost_of_sales(Symbol, Year, [Quarter], [TTM])
Excel Desktop (Windows)

Parameters

symbolstringRequired
yearstringRequired
quarterstring
TTMstring

Returns

number

Cost of sales in USD

Examples

=hf_Cost_of_sales("WMT", 2023, 4)

When to Use

  • Gross margin analysis
  • Cost structure evaluation

When NOT to Use

Scenario Use Instead
Operating expenses hf_Operating_Expenses()

Common Issues & FAQ

Classification varies by industry.

Excel Templates Using Cost of Sales (Historical)

These ready-made MarketXLS templates call hf_Cost_of_sales() in their worksheet formulas. Open one to see the function working inside a complete model.

Get Access to 1 Billion Usable Market data points IN YOUR EXCEL SHEETS WITH EASY TO USE EXCEL FUNCTIONS

Get started today
MarketXLS Excel Add-in Tutorial - How to Use Cost of Sales (Historical) and Other Financial Formulas
How does MarketXLS work?