Function Problems

WPS Spreadsheet Recipe Costing and Ingredient Lookup System

Steven ParkerSteven Parker Nov 12, 2026 868 views

Question details

The user needs a structured workbook that looks up ingredient prices and calculates the cost of recipes and sub-recipes.

Build a WPS Spreadsheet Recipe Costing and Ingredient Lookup System
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
Create an ingredient database with purchasing units, conversion information, and procurement prices, then use it to calculate direct ingredient and sub-recipe costs.
Observed behavior
The workbook design and formulas for linking ingredient prices to recipe quantities have not yet been established.
Before you start

List each ingredient’s purchasing unit, recipe unit, conversion factor, and current procurement price. Confirm that the conversion factor uses one consistent definition, such as recipe units per purchasing unit, before creating the formulas.

Solution 1Recommended

Create ingredient and recipe tables with lookup-based costing

Use this method for a maintainable workbook that automatically retrieves ingredient costs when prices or recipe quantities change.

Keep ingredient data separate from recipe lines so each ingredient has one authoritative price. If the conversion factor is the number of recipe units contained in one purchasing unit, calculate unit cost as purchase price divided by that factor.

1
Create the Ingredients table

In WPS Spreadsheet, enter columns for Ingredient, Purchase Unit, Recipe Unit, Conversion Factor, Purchase Price, and Unit Cost. Select the range, choose Insert > Table, and name the table Ingredients from the Table Design tab.

2
Calculate normalized unit cost

In the Unit Cost column, enter a formula such as =[@[Purchase Price]]/[@[Conversion Factor]]. This converts each procurement price into the recipe-unit cost used by the costing sheet.

3
Create the recipe lines table

On a recipe sheet, add Ingredient, Quantity, Unit, Unit Cost, and Extended Cost columns. Select the range through Insert > Table and name it RecipeLines.

4
Look up each ingredient cost

In the RecipeLines Unit Cost column, enter =XLOOKUP([@Ingredient],Ingredients[Ingredient],Ingredients[Unit Cost],0). This returns the normalized cost for the selected ingredient.

5
Calculate line and recipe totals

In Extended Cost, enter =[@Quantity]*[@[Unit Cost]]. Add the column with =SUM(RecipeLines[Extended Cost]) to display the total direct ingredient cost.

Keep ingredient names consistent: Use the same spelling and unit convention in both tables. A missing or differently spelled ingredient will return the XLOOKUP fallback value, such as 0.

Build a flexible recipe-costing workbook in WPS Spreadsheet

WPS Spreadsheet can organize ingredients and sub-recipes in structured tables, retrieve normalized unit costs with lookup formulas, and calculate line, component, and total recipe costs in a familiar spreadsheet interface.

  1. 1. Set up the ingredient database: Open WPS Spreadsheet and choose New > Blank Spreadsheet. Create the Ingredients table with purchasing details, conversion factors, and unit-cost formulas.
  2. 2. Build the recipe costing sheet: Choose Insert > Table on a new sheet, create the RecipeLines table, and add ingredient quantities, lookup-based unit costs, and extended-cost formulas.
  3. 3. Add sub-recipes: Create a SubRecipes table for prepared components, calculate each component’s total and cost per unit, and reference those values from the main recipe.
  4. 4. Verify the totals: Change a purchase price or recipe quantity and confirm that the Unit Cost, Extended Cost, sub-recipe totals, and final recipe total update automatically.
Automatically updates recipe costs when procurement prices changeSupports structured ingredient lookups, unit conversions, and sub-recipe totalsWorks with Microsoft Excel .xlsx files for easy sharing and migrationProvides a familiar table and formula workflow without requiring a custom script
microsoft office alternative - wps office

Frequently Asked Questions

How should ingredient purchasing prices be converted into recipe costs?

Store the purchase price and a conversion factor in the Ingredients table. If the factor represents recipe units per purchasing unit, calculate Unit Cost with =Purchase Price/Conversion Factor, then use that normalized value in recipe calculations.

Which WPS Spreadsheet formula can retrieve an ingredient price?

Use XLOOKUP, for example =XLOOKUP([@Ingredient],Ingredients[Ingredient],Ingredients[Unit Cost],0). The formula searches the ingredient name and returns its normalized unit cost; the final 0 is used when no match is found.

How can a recipe include a sauce or another sub-recipe?

Calculate the sub-recipe separately, divide its total cost by its yield, and add it to a SubRecipes table. The main recipe can then use XLOOKUP to retrieve the sub-recipe cost per unit and multiply it by the required quantity.

Why does the ingredient lookup return zero or an incorrect cost?

Check for spelling differences, extra spaces, duplicate ingredient names, and mismatched units. Also verify that the conversion factor and purchase price are numeric and that the lookup range points to the correct Ingredients table columns.