Function Problems

Build Excel Formulas for Store and Product Sales Goals

Bushra ParveenBushra Parveen Nov 18, 2026 869 views

Question details

Create formulas that allocate product sales goals across stores while considering inventory, availability, and store goal limits.

Build Excel Formulas for Store and Product Sales Goals
Product
Microsoft Excel
Device & OS
not provided
Scenario
A sales planner needs to distribute product targets among stores without allocating more than each store's goal or available inventory.
Observed behavior
The desired allocation should follow defined business rules and be checked against both store and product goals.
Before you start

Define how store goals are calculated from inventory, whether targets are measured in units or currency, and how unavailable products are represented. Prepare several store-product examples with expected results, including a case where a target cannot be fully allocated.

Solution 1Recommended

Allocate Goals Proportionally With Inventory and Store Limits

Use this starting formula when each store-product row has available units, a store goal, and a product goal.

This example assumes one row per store-product combination, nonnegative values, and goals and inventory measured in the same units. Repeat the same store goal on every row for that store and the same product goal on every row for that product.

The formula takes the smallest of available units, the store goal weighted by the row's share of store inventory, and the product goal weighted by the row's share of product inventory. It respects those limits but may leave goals unallocated; it does not automatically redistribute the remainder.

1
Set up the columns

In row 1, enter Store in A1, Product in B1, Available Units in C1, Store Goal in D1, Product Goal in E1, and Allocation in F1. Enter zero in column C when a product is unavailable at a store.

2
Enter the allocation formula

In F2, enter =IFERROR(MIN(C2,D2*C2/SUMIFS($C$2:$C$100,$A$2:$A$100,A2),E2*C2/SUMIFS($C$2:$C$100,$B$2:$B$100,B2)),0), then drag the fill handle down. Adjust the row 100 endpoints to cover your data.

3
Test an example

Enter two rows for the same product, one for each store, with 10 available units and a store goal of 8 on each row. Enter a product goal of 12 on both rows; F2 and F3 should each return 6.

4
Check the totals

Use =SUMIFS($F$2:$F$100,$A$2:$A$100,A2) to check a store's allocation and =SUMIFS($F$2:$F$100,$B$2:$B$100,B2) to check a product's allocation. Compare the totals with the corresponding goals and investigate any shortfall.

Allocate Goals Proportionally With Inventory and Store Limits
Check rounding and errors: The formula can return fractional units. If allocations must be whole units, use ROUNDDOWN around the result and recheck the totals. IFERROR returns zero for division errors, so verify that zero allocations are expected and that input values are valid.
WPS Spreadsheet

Plan Store Sales Goals in WPS Spreadsheet

Use WPS Spreadsheet to enter store and product targets, calculate a proportional allocation, and check the totals against your limits.

  1. 1. Open a workbook: Open WPS Spreadsheet and create a workbook or open an existing Excel XLSX file.
  2. 2. Enter the planning data: Add columns for Store, Product, Available Units, Store Goal, Product Goal, and Allocation. Use one row for each store-product combination.
  3. 3. Calculate allocations: Enter the proportional MIN and SUMIFS formula from the solution in the first Allocation cell, then drag the fill handle down the column.
  4. 4. Review and save: Use SUMIFS to check totals by store and product, compare them with the goals, and select File > Save As to save the workbook.
Calculate allocations using MIN and SUMIFS.Check store and product totals against their goals.Open and save Microsoft Excel XLSX workbooks.Work in a familiar spreadsheet interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I need sample results before writing the formula?

Sample rows show how you expect inventory, availability, and goals to interact. Include the desired allocation for several store-product combinations so you can compare it with the formula's output.

How do I prevent an allocation from exceeding available inventory?

Include the available-units cell as an argument to MIN. In the example formula, MIN(C2, ...) ensures that the allocation for the row does not exceed C2.

Will the proportional formula always reach every product goal?

No. Inventory and store limits can leave a product goal partly unallocated, and the example formula does not redistribute the remainder. Use SUMIFS on the Allocation column by product to identify shortfalls.

How can I allocate only whole units?

Wrap the allocation formula in ROUNDDOWN with 0 digits, then use SUMIFS to recheck store and product totals. Rounding down can create additional shortfalls.