Build Excel Formulas for Store and Product Sales Goals
Question details
Create formulas that allocate product sales goals across stores while considering inventory, availability, and store goal limits.

- 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.
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.
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.
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.
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.
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.
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.

Define Allocation Rules Before Building a Custom Formula
Use this approach when store goals, priorities, or redistribution rules differ from the proportional example.
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. Open a workbook: Open WPS Spreadsheet and create a workbook or open an existing Excel XLSX file.
- 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. 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. 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.

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.




