How to Calculate the Top-Up Needed for a Target Profit Margin in WPS Spreadsheets
Question details
The user needs a formula to calculate how much additional revenue is required to increase a current profit margin to a target percentage, instead of using trial and error.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- The user has current revenue, current cost, and a target profit margin percentage, and wants to determine the required top-up amount directly.
- Observed behavior
- The user wants a formula that returns the required top-up amount from the current revenue, cost, and target margin.
Identify the cells containing current revenue, current cost, and the target profit margin. Format the target cell as a percentage, such as 16.9%, before entering the formula.
Use the rearranged profit-margin formula with a target cell
Use this method when the target margin is stored in a worksheet cell, such as F7, and you want a reusable formula that recalculates whenever the target changes.
The formula rearranges the profit margin equation. If profit margin is (Revenue + Top-up - Cost)/(Revenue + Top-up), setting that equal to the target gives Top-up = Cost/(1-Target)-Revenue.
Click the worksheet cell where you want the required top-up amount to appear.
Type =cost/(1-F7)-revenue in the formula bar, replacing cost and revenue with the actual cell references for your current cost and current revenue.
Make sure the target cell F7 is formatted as a percentage, for example 16.9%, or contains the equivalent decimal value 0.169.
Press Enter to calculate the top-up, then verify it against a simple example to confirm the margin equals your target.

Hard-code the target margin in the formula
Use this method when you do not need a dedicated target cell and want to enter the target percentage directly into the formula.
Calculate a Target Profit Margin Top-Up in WPS Spreadsheets
WPS Spreadsheets handles the same margin formula as Excel. Enter =cost/(1-target)-revenue to calculate the extra amount needed, with percentage formatting and .xlsx compatibility built in.
- 1. Open your workbook in WPS Spreadsheets: Download WPS Office Free, launch WPS Spreadsheets, and open the Excel workbook that has your revenue, cost, and target margin data.
- 2. Select the top-up result cell: Click the cell where you want the required additional amount to be calculated.
- 3. Enter the top-up formula: Type =cost/(1-target)-revenue, replacing cost and revenue with your actual cell references and target with the cell containing the desired margin.
- 4. Check percentage formatting: Select the target cell and confirm it is formatted as Percentage, or enter the target as 16.9% or 0.169.
- 5. Press Enter and verify: Press Enter to calculate and compare the result against the original profit margin equation to ensure it matches the target.

Frequently Asked Questions
What does =cost/(1-target)-revenue actually calculate?
It calculates the top-up revenue amount required to reach a target profit margin. It rearranges (Revenue+Top-up-Cost)/(Revenue+Top-up)=Target into Top-up = Cost/(1-Target)-Revenue.
Can I use a target margin stored as a percentage in another cell?
Yes. If B2 is revenue, B3 is cost, and F7 contains 16.9%, use =B3/(1-F7)-B2. Format F7 as Percentage so WPS Spreadsheets or Excel treats it as 0.169.
What happens if I enter 16.9 instead of 16.9% as the target?
The formula becomes Cost/(1-16.9)-Revenue, which produces a nonsensical or negative top-up because it subtracts 16.9 instead of 0.169. Store the target as a percentage or decimal.
Can this formula be used if profit margin is defined as profit divided by cost?
No. The formula assumes margin = profit/revenue. If your business uses profit/cost, you need a markup formula instead.
Will this formula work the same in WPS Spreadsheets and Excel?
Yes, the formula syntax and percentage handling are compatible in both applications.




