Cost of Sales (Historical)
Direct costs attributable to goods sold.
Syntax
=hf_Cost_of_sales(Symbol, Year, [Quarter], [TTM])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.
Related Formulas
More MarketXLS Historical Fundamentals formulas you can use in the same worksheet:
