Percentage Remaining Formula in Excel
In this article
The percentage remaining formula in Excel is =1-(completed/total), formatted as a percentage. You enter the completed amount and the total amount, and Excel returns the share of the total that has not yet been done, spent, or used.
What the Formula Actually Does
At its core, the formula subtracts the fraction of work already finished from 1 (which represents 100%). If you have completed 30 out of 50 tasks, the completed fraction is 30/50 = 0.6. Subtracting that from 1 gives 0.4, or 40% remaining. The same logic applies to budgets, inventory, time, or any quantity where you know how much has been used and how much exists in total.
The formula is deliberately simple because Excel stores percentages as decimal values. When you type =1-(B2/A2) and then apply the percentage number format, Excel multiplies the decimal by 100 and adds the % symbol for display only. The underlying cell value remains a decimal, which is important if you use that result in further calculations.
How to Write It Step by Step
- Put the total amount in one cell (for example, A2) and the completed or used amount in another (B2).
- In a third cell, type =1-(B2/A2).
- Press Enter. The cell will show a decimal like 0.4.
- Select the cell, go to the Home tab, and click the % symbol in the Number group. Alternatively, press Ctrl+Shift+% on Windows or Cmd+Shift+% on Mac.
- Adjust decimal places with the Increase Decimal or Decrease Decimal buttons if you want more precision.
That is the whole process. The formula works with any positive numbers, including decimals, and handles large ranges without issue.
Common Variations and When to Use Them
The basic version assumes you want the percentage of the total that is left. But real spreadsheets often need slightly different forms:
- Percentage completed: =B2/A2 formatted as a percentage. This is the inverse of what you asked for, but it is frequently needed alongside it.
- Amount remaining (not percentage): =A2-B2. This gives the raw number left, which you can then divide by A2 if you want the percentage.
- Remaining with a minimum threshold: =MAX(0, 1-(B2/A2)). This prevents negative percentages if you accidentally enter a completed value larger than the total.
- Remaining when total is zero: =IF(A2=0, 0, 1-(B2/A2)). Dividing by zero returns an error, so this checks for that case.
Choose the version that matches your data. If you are tracking a budget, the total is the original budget and the completed is what you have spent. If you are tracking a project, the total is the number of tasks and the completed is the number finished.
Formatting Percentages Correctly
A frequent mistake is typing =1-(B2/A2)*100 and then also applying the percentage format. That double-counts the conversion, giving you 4000% instead of 40%. The % format in Excel multiplies by 100 automatically, so you should never manually multiply by 100 unless you plan to keep the result as a plain number.
Another formatting trap is using a cell that is already formatted as text. If you type the formula into a text-formatted cell, Excel shows the formula as text instead of calculating it. Fix this by selecting the cell, changing the number format to General or Number, then re-entering the formula.
For consistent results, apply the percentage format to the entire column before entering formulas. That way, every result displays the same way, and you avoid the confusion of some cells showing decimals and others showing percentages.
Real-World Example: Project Budget
Imagine you manage a project with a $10,000 budget. You have spent $3,750 so far. In Excel, put 10000 in A2 and 3750 in B2. The formula =1-(B2/A2) calculates 1 - (3750/10000) = 1 - 0.375 = 0.625. Formatted as a percentage, that is 62.5% remaining. You can then multiply that by the total to see the dollar amount left: =A2*(1-(B2/A2)) returns $6,250.
This same pattern applies to inventory (units sold vs. units in stock), time tracking (hours worked vs. total hours), or any allocation. The formula does not care what the numbers represent, only that one is a subset of the other.
Why the Formula Breaks and How to Fix It
The most common error is #DIV/0!. This happens when the total cell (A2) is empty or zero. Excel cannot divide by zero. To avoid it, use =IF(A2=0, 0, 1-(B2/A2)) or ensure your total cells always have a value.
Another issue is a negative percentage. If you enter a completed value larger than the total, the formula returns a negative number. That may be intentional (for example, overspending), but if not, wrap the formula in =MAX(0, 1-(B2/A2)) to cap it at zero.
If the result looks like 0.4 instead of 40%, the cell is not formatted as a percentage. Select the cell and press Ctrl+Shift+% (Windows) or Cmd+Shift+% (Mac). If it still shows a decimal, check that the cell is not formatted as Text.
Finally, if you copy the formula down a column, check the cell references. Using =1-(B2/A2) and dragging down will change both row numbers correctly. If you need a fixed total (for example, always divide by A2), use =1-(B2/$A$2) with dollar signs to lock the reference.
Comparing to Other Percentage Formulas
The percentage remaining formula is one of three basic percentage calculations in Excel. The other two are:
- Percentage change: =(new-old)/old. This tells you how much a value increased or decreased relative to its starting point. It is different from percentage remaining because it compares two points in time, not a part to a whole.
- Percentage of a total: =part/total. This gives the share that one number represents of another, without subtracting from 1. Percentage remaining is simply 1 minus this value.
Knowing which one to use matters. If you want to know how much of a pizza is left after eating three of eight slices, you use percentage remaining: 1 - (3/8) = 62.5%. If you want to know how much more pizza you ate this week compared to last week, you use percentage change.
Frequently Asked Questions
How do I show the percentage remaining as a number with one decimal place?
After applying the percentage format, click the Decrease Decimal button in the Home tab until only one decimal shows. For example, 62.5% will display as 62.5%. If you want the underlying value rounded to one decimal, use =ROUND(1-(B2/A2), 3) because one decimal place in a percentage is three decimal places in the raw decimal value.
Can I use this formula with dates to see how much time is left?
Yes, with a small adjustment. If A2 is the start date, B2 is the end date, and C2 is today's date, the fraction of time elapsed is =(C2-A2)/(B2-A2). The percentage remaining is =1-((C2-A2)/(B2-A2)). Format the result as a percentage. Ensure all three cells contain real dates, not text.
Why does my formula return 100% when I have not started?
That is correct. If the completed value is 0, the formula becomes 1 - (0/total) = 1 - 0 = 1, which is 100%. If you want to show a blank cell instead of 100% before you enter any data, use =IF(B2="","",1-(B2/A2)).
What if I have multiple rows and want a single overall percentage remaining?
Sum the completed and total columns separately, then apply the formula to the sums. For example, =1-(SUM(B2:B10)/SUM(A2:A10)). This gives the correct overall percentage because it treats all rows as one combined pool, rather than averaging the individual percentages.
Is there a way to do this without a formula?
You can use Paste Special to divide, but it is more cumbersome. Copy the total column, select the completed column, right-click, Paste Special, and choose Divide. That replaces the completed values with fractions. Then subtract each from 1 using a formula or another Paste Special operation. For most users, the direct formula is simpler and easier to audit.
Does the formula work with negative numbers?
It works mathematically, but the result may be confusing. If your total is negative, the fraction becomes negative, and subtracting from 1 gives a value greater than 1. That rarely makes sense for a percentage remaining. For typical use, keep both inputs positive, or use the MAX and IF safeguards described above.