Managing inventory across a large WooCommerce catalog requires more than just knowing the stock level of individual products. You often need to answer broader questions: How many units do we have across the entire “Clothing” category? What is the total available stock for all yellow t-shirts? How much inventory is tied up in products priced between $10 and $50?
This type of total is called aggregate stock, and WooCommerce does not provide a native way to calculate it. In this guide, you’ll learn how to calculate WooCommerce aggregate stock by category, attribute, keyword, product type, and price range using WP Sheet Editor.
What is Aggregate Stock in WooCommerce?
In WooCommerce, aggregate stock is the combined total of available inventory units across a specific group of products. Instead of looking at a single product, you focus on a product grouping (such as a category, a shared attribute, or a keyword match) and calculate the total stock available for that entire group.
Some practical examples of when you need aggregate stock data:
- Checking total inventory for an entire product category before a clearance sale
- Calculating how many units of a specific color or size variant exist across your catalog
- Reviewing the combined stock value of all variable products
- Estimating inventory levels within a specific price range for financial reporting
- Identifying how much stock is associated with a particular keyword group (e.g., all “hoodie” products)
WooCommerce’s built-in reports don’t offer this level of flexibility. You’d normally need to export a CSV and manually calculate totals in Excel, which quickly becomes impractical for large stores.
How to Calculate Aggregate Stock in WooCommerce
To calculate aggregate stock without manual exports or custom code, we’ll use the WP Sheet Editor – WooCommerce Products Spreadsheet plugin.
This plugin displays your entire WooCommerce catalog in an interactive spreadsheet inside your WordPress dashboard. It includes an advanced Search tool that lets you filter products by any field (category, attribute, keyword, price, product type, and more). When products are filtered, the plugin automatically recalculates the aggregate stock total based on what is currently displayed.
You can download the plugin here:
Download WooCommerce Products Spreadsheet Plugin - or - Check the features
After installing the plugin and activating your license, open the spreadsheet by going to WP Sheet Editor > Edit Products. You’ll see all your products loaded into the spreadsheet grid.
View Aggregate Stock for All Products
The aggregate stock calculation happens automatically based on the products currently displayed in the spreadsheet. When no filters are applied, the spreadsheet shows your full catalog, and the inventory summary above the grid reflects your store-wide totals.
In the example below, the store has 15,455 units available, representing a total inventory value of $478,955.00.
This store-wide figure updates dynamically whenever you apply a filter, so you can narrow it down to any product grouping at any time.
Calculate Aggregate Stock by Product Group (Using Filters)
The key to calculating aggregate stock for a specific group is the Search tool. Click the Search button in the plugin’s top toolbar to open the filter panel.
Once you apply a filter and click Run search, the spreadsheet refreshes to show only the matching products, and the aggregate stock total updates automatically to reflect that filtered group.
Here are the most common ways to filter your products for aggregate stock calculations.
a) Aggregate Stock for an Entire Category
Use this filter when you need to know the total inventory for a specific product category; for example, “Electronics”, “Clothing”, or “Accessories”.
In the Search tool, configure the following:
- Enter the category name in the Enter product categories field.
- Click Run search.
The spreadsheet will reload with only the products in that category. The aggregate stock figure displayed above the grid now reflects the total units available within that category only.
This is useful before placing a restocking order, planning a category sale, or reporting on category-level inventory to stakeholders.
b) Aggregate Stock by Product Attribute
Use this filter when you need to calculate inventory across products that share a specific attribute value, such as color, size, brand, or material. For example: how many units of “Yellow” products exist across your entire store, regardless of product category?
In the Search tool, configure the following:
- Enter the attribute value in the Enter product attributes field.
- Click Run search.
In the example below, the products have been filtered by the “Yellow” color attribute, and the aggregate stock for all matching products has been calculated automatically.
You can apply this same approach to any global attribute in your store: small size, Nike brand, cotton material, and so on. Note that this works with global attributes only. Custom (product-level) attributes are not indexed as taxonomies and cannot be used as search filters in the same way.
c) Aggregate Stock for All Variable Products
Variable products store their stock at the variation level, not at the parent product level. This makes it especially useful to filter by product type when calculating variable product inventory.
In the Search tool, configure the following:
- Enter Variable in the Enter product type field.
- Click Run search.
After filtering, the spreadsheet displays only variable products. You may notice the stock column for parent products shows 0. This is expected behavior. In WooCommerce, variable products store stock at the variation level, not on the parent product itself.
To see the individual variations alongside their parent products, click Display variations. This expands the view to show each variation’s stock row, and the aggregate total includes all variation-level stock.
d) Aggregate Stock by Keyword
Use this filter when you want to calculate the total stock across products that share a common keyword in their title or content; for example, all “hoodie”, “shoe”, or “t-shirt” products across multiple categories.
In the Search tool, configure the following:
- Enter the keyword in the Contains keyword field.
- Click Run search.
In the example below, all products containing the keyword “hoodie” have been filtered, and the aggregate stock for that group has been calculated automatically.
Keyword filtering is particularly useful when your products span multiple categories but share a common naming convention. It lets you calculate a cross-category stock total without needing to set up a dedicated attribute or taxonomy.
e) Aggregate Stock by Price Range
Use this filter when you need to calculate inventory within a specific price segment. For example, all products priced between $10 and $50. This is useful for financial planning, promotional pricing decisions, or reviewing the depth of inventory in a given price bracket.
In the Search tool, configure the following:
- Tick the Enable advanced filters checkbox.
- Filter 1:
- Field: Regular price
- Operator: >=
- Value: 10
- Click Add new to add a second filter.
- Filter 2:
- Field: Regular price
- Operator: <=
- Value: 50
- Click Run search.
The spreadsheet will display only products within that price range, and the aggregate stock total will be recalculated automatically for those results.
You can adjust the price boundaries to fit any segment you need to analyze. The same approach works with other numeric fields. For example, filtering by stock quantity range, sale price, or weight.
Combine Multiple Filters for More Precise Results
The examples above use single filters, but the Search tool supports combining multiple conditions at once. This allows you to calculate aggregate stock for highly specific product groups.
Some examples of combined filters:
- All products in the “Clothing” category AND with the “Yellow” color attribute
- All variable products AND priced above $20
- All products containing the keyword “hoodie” AND in a specific category
To add more conditions, tick Enable advanced filters and click Add new to stack additional filter rows. Each condition narrows the results further, and the aggregate stock total updates accordingly.
WooCommerce does not include a built-in tool for viewing aggregate stock by category, attribute, or other groupings. By using WP Sheet Editor, you can filter your product catalog by any combination of fields and read the aggregate stock total directly from the inventory summary above the spreadsheet. No exports, no formulas, and no custom code required.
The same approach works for any product grouping your store uses. As long as you can filter for it using the Search tool, the aggregate stock will be calculated automatically.
You can download the plugin here:
Download WooCommerce Products Spreadsheet Plugin - or - Check the features













