How to Set Decimal Places for Excel Formula Results
Explain how to keep two decimal places, one decimal place, or integers in Excel formulas, distinguishing between changing only the display and actually rounding the value, and give the ROUND function steps, verification methods, and how to write significant digits.
Key Points of This Article
- If you only want the table to display two decimal places, just set the cell format; the original value in the formula bar stays unchanged, and calculations still use the original value.
- When the result will be used in later sums or references, use =ROUND(formula,2) to truly round it; subsequent calculations will then be based on the processed value.
- Setting the format only changes the display, while ROUND changes the actual value. Do not mix the two when judging whether a result is correct.
- When checking, look at the value in the formula bar first, then the sum result; text-formatted numbers and negative numbers should be checked separately.
If you've ever calculated averages, discounted prices, or unit conversions in Excel, you've likely run into this: the formula returns 3.33333, but the spreadsheet requires only two decimal places. Many people instinctively change the numbers by hand or shift the decimal point, only to redo the whole thing the next time the data changes. This article explains how to make formula results keep a specified number of decimal places.
After reading this, you should be able to tell apart three things: changing only the display, actually rounding the value, and keeping only integers or significant digits. Each of these calls for a different operation, and if you pick the wrong one, sums and references later on will not match your hand calculations.
In Excel there are two main approaches. One is to control the display through cell formatting, so calculations still use the original value; the other is to use functions such as ROUND to change the result itself, so what gets stored is the processed number. Below, we first look at how to choose between them, and then at the specific steps.
How do I keep two decimal places in an Excel formula? One-sentence answer
If you'll use this result in further calculations, use the ROUND function; if you only want the spreadsheet to display two decimal places, setting the cell format is enough.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| I only want it to display two decimal places, but I still need precise calculations afterward. | Set the cell format to Number, with the number of decimal places set to 2 | Change only the display; the formula bar and calculations still use the original values. |
| The result needs to participate in a sum or be referenced by other formulas, so it must actually be rounded to two decimal places. | =ROUND(formula,2) | The result itself has now become two digits; subsequent calculations will be based on it. |
| Simply truncate the extra decimal places, without rounding up. | =ROUNDDOWN(number,2) | Truncation toward zero, suitable for certain scenarios where amounts are required by regulation to be taken as whole units only. |
| Only integers | =ROUND(formula,0), or =INT(formula) | ROUND rounds to the nearest integer (half away from zero); INT rounds down to the nearest integer, so watch out for negative numbers. |
Before You Begin: Confirm These Points First
1. First, distinguish between the "displayed value" and the "actual value." Click the target cell and look at the formula bar. If the formula bar still shows a long string of decimals, then what you see in the table is only a display effect, and the actual value has not changed. This step determines whether you should next use formatting or a function.
2. Check whether this result will be used again. If it is only a final displayed number, formatting the cells is usually enough. If it will be referenced by SUM, AVERAGE, or other formulas, use ROUND so that every step of the calculation works with the processed values, avoiding discrepancies of a few cents when totaling.
3. Confirm the number of digits to keep and the rounding rule. Financial and contract data often come with explicit requirements: some must be rounded, others truncated. Before you start, clarify the rule, because a different rule can produce a different result.
4. Check whether the raw data contains text-formatted numbers. Text-formatted numbers often appear left-aligned, and a green triangle may appear in the corner of the cell. Such values are ignored during summation, so the calculated results will not match expectations. Convert them to numeric values before rounding.
5. If the data comes from a PDF table, convert it to Excel first. You can use the PDF editor in the OmniDoc desktop client to export the PDF to Excel format, then adjust the number of decimal places in the spreadsheet. This way, you don't have to copy the numbers down manually.
Steps to Keep Two Decimal Places Using the ROUND Function
In the following, take the amount calculated as "unit price × quantity" as an example, assuming the unit price is in column B and the quantity is in column C, and the result should be rounded to two decimal places.
- In the first cell of the result column, type an equals sign and write out the original formula, for example
=B2*C2. - Wrap the entire original formula in the ROUND function, written as
=ROUND(B2*C2,2), where 2 means keep two decimal places. - Press Enter to confirm. ROUND returns a numeric value, so 12.5 will not automatically become 12.50.
- If you want trailing zeros to be displayed as well, select the result column, open the cell format settings, choose Number, and set the decimal places to 2. This step only changes the display and does not change the value.
- Fill the formula downward: drag the fill handle or double-click it to apply the formula to the whole column.
- Click on a few result cells and check in the formula bar that the value already has two decimal places, which shows that the rounding has actually taken effect.
To keep one decimal place, replace 2 with 1. For whole numbers only, replace 2 with 0. The same approach works for other formulas: just replace B2*C2 with your own calculation expression.
Verify each item after completion
Filling in the formula doesn't mean the result must be correct. I suggest checking the following items once.
| Inspection items | How do you see it? | What should I do if I have a problem? |
|---|---|---|
| Value of the edit field | Click the result cell and check whether the formula bar already shows two decimal places. | If it still shows long decimals, that means only the number format was set. Use the ROUND function instead. |
| Number of display digits | Does the number of decimal places match the requirement, and does the trailing zero need to be added? | Fill in the missing digits using cell formatting, or check the decimal places setting in the number format. |
| Total results | Add up the results in each row and compare them with the total cell. | If there is a difference of a few cents, check whether every item was rounded first and then summed. |
| Negative numbers | Find a negative number and look at its rounding direction | INT rounds toward the smaller value. If you need rounding instead, use ROUND. |
| Text-based numbers | Look for left-aligned text and a green triangle. | Convert with the VALUE function, or re-enter as a number. |
| Critical value | Numbers like 2.675 that sit exactly on a rounding boundary | Computers store decimals in binary, so results at boundary values may differ from intuition. Important data should be spot-checked with a calculator. |
📊 Core Comparison
There is more than one way to control decimal places in Excel, and they handle values differently:
| Method | Does it change the actual value? | Processing Rules | Suitable scenarios |
|---|---|---|---|
| Cell formatting | No | Change only the display; rounding applies only to the display. | Report beautification; subsequent calculations require exact values |
| ROUND | Yes | Round half away from zero: 0.5 is rounded away from zero. | Amount, statistical results, figures that need to be summarized |
| ROUNDUP | Yes | Regardless of the size of the remainder digits, always round away from zero. | The quantity may only be more, never less, according to the rule. |
| ROUNDDOWN or TRUNC | Yes | Truncate the extra decimal places directly | Scenarios where only the whole-segment amount is taken, per regulations |
| INT | Yes | Round down to an integer; for negative numbers, round toward the smaller value. | Integers only, and all data are positive numbers. |
❓ Frequently Asked Questions (FAQ)
1. How do I keep one decimal place in an Excel formula?
Use =ROUND(公式,1), and the result will be a decimal number. If you only want the display to show one decimal place, set the cell format to Number and set the decimal places to 1.
2. What does "Excel keep .0" mean? How do I set it?
It usually means that integer results should also be displayed in a style like 12.0, with a decimal point and a 0. Set the cell format to Number and the decimal places to 1 to keep the .0; if you want integers displayed without .0, change the format back to General or set the decimal places to 0.
3. How do I keep a number to a certain number of significant figures in Excel formulas?
Significant figures and decimal places are different: significant figures are counted according to the order of magnitude of the number. Keeping 2 significant figures can be written as =IF(A1=0,0,ROUND(A1,2-1-INT(LOG10(ABS(A1))))). For example, 1234.5 rounded to two significant figures is 1200, and 0.01234 becomes 0.012. To use a different number of digits, just change the 2 in the formula.
4. Why doesn't 2.5 display as 2.50 after ROUND?
ROUND returns a numeric value, and trailing zeros in a number are not stored, so 2.5 and 2.50 are exactly the same in calculations. If you need to display two decimal places, separately set the cell format to Number with 2 decimal places.
📝 Summary
How to keep two decimal places in Excel formulas: the key is first deciding whether you want the display effect or the actual value. If you only want to change the display, set the cell format. If the value needs to take part in further calculations, use the ROUND family of functions. After finishing, click into the formula bar to check, and the results will be less likely to go wrong.


