How to Limit Number of Decimal Places in Formula in Excel?
When using formulas in Microsoft Excel, you may notice results showing many decimal places. This is common in calculations like division, percentages, averages, and financial formulas. If you only want 2 decimal places returned by the formula itself, you need to use specific Excel functions.
In this article, we will explain how to limit the number of decimal places in a formula in Excel using reliable methods like ROUND, ROUNDUP, ROUNDDOWN, and TRUNC. These methods ensure the actual output value is controlled, not just its display.
Why Limit Decimal Places in Excel Formulas
Controlling decimal places directly in formulas helps you:
- Maintain accurate calculations
- Avoid long and messy numbers
- Ensure consistent results across sheets
- Improve financial and statistical reporting
For example, instead of 15.678945, you may want your formula to return 15.68.
Using ROUND Function to Limit Decimal Places
The ROUND function is the most commonly used method to control decimal places in Excel formulas.
Syntax
| Function | Syntax | Description |
|---|---|---|
| ROUND | =ROUND(number, num_digits) | Rounds a number to a specified number of digits |
Example
=ROUND(A1/B1, 2)This formula:
- Divides A1 by B1
- Returns the result rounded to 2 decimal places
Key Points
- Use 2 to keep two decimal places
- Use 0 for whole numbers
- Works well with SUM, AVERAGE, IF, VLOOKUP
Using ROUNDUP and ROUNDDOWN Functions
Sometimes you need more control over how rounding happens.
ROUNDUP Function
The ROUNDUP function always rounds the number upward.
=ROUNDUP(A1/B1, 2)ROUNDDOWN Function
The ROUNDDOWN function always rounds the number downward.
=ROUNDDOWN(A1/B1, 2)Comparison Table
| Function | Behavior | Example (2.345) |
|---|---|---|
| ROUND | Standard rounding | 2.35 |
| ROUNDUP | Always up | 2.35 |
| ROUNDDOWN | Always down | 2.34 |
These functions are useful in pricing, billing, and budgeting calculations.
Using TRUNC Function to Remove Extra Decimals
If you do not want rounding and just want to cut off extra digits, use the TRUNC function.
Syntax
=TRUNC(number, num_digits)Example
=TRUNC(A1/B1, 2)Output Behavior
| Original Value | Result |
|---|---|
| 2.349 | 2.34 |
| 5.678 | 5.67 |
Key Benefits
- Removes extra decimals without rounding
- Useful in data cleaning and controlled calculations
Applying Decimal Control in Complex Formulas
You can combine rounding functions with other Excel formulas.
Example with SUM
=ROUND(SUM(A1:A10), 2)Example with AVERAGE
=ROUND(AVERAGE(B1:B10), 2)Example with IF Function
=ROUND(IF(A1>10, A1*1.1, A1), 2)Why This Matters
- Ensures final output stays consistent
- Prevents hidden decimal errors
- Keeps calculations clean in large datasets
Common Mistakes to Avoid
When limiting decimal places in formulas, watch out for these:
- Using cell formatting instead of formula-based rounding
- Forgetting to wrap the entire formula inside ROUND
- Using TEXT function, which converts numbers into text
- Applying rounding too early in multi-step calculations
Best Practices for Accurate Results
Follow these simple tips to get better results:
- Use ROUND for most calculations
- Use TRUNC when rounding is not needed
- Apply rounding at the final stage of the formula
- Keep decimal consistency across all related formulas
- Test formulas with sample values
When to Use Each Function
| Scenario | Recommended Function |
|---|---|
| Standard rounding | ROUND |
| Always round up | ROUNDUP |
| Always round down | ROUNDDOWN |
| Remove decimals without rounding | TRUNC |
Final Thoughts
Knowing how to limit the number of decimal places in Excel formulas is important for accurate and clean data. By using functions like ROUND, ROUNDUP, ROUNDDOWN, and TRUNC, you ensure that your formulas return values with controlled precision.
For most cases, ROUND is the best choice. Use other functions based on your calculation needs. This approach helps you build professional spreadsheets with consistent and reliable results.
FAQs
How do I limit decimal places in an Excel formula without formatting?
You can use functions like ROUND, ROUNDUP, ROUNDDOWN, or TRUNC directly in your formula. For example, =ROUND(A1/B1, 2) will return the result with only 2 decimal places.
What is the difference between ROUND and TRUNC in Excel?
ROUND adjusts the value based on standard rounding rules, while TRUNC simply removes extra decimal digits without rounding. For example, 2.349 becomes 2.35 with ROUND and 2.34 with TRUNC.
Can I force Excel formulas to always return 2 decimal places?
Yes, you can use the ROUND function to limit the result to 2 decimal places. However, Excel may still display fewer decimals if formatting is not applied, even though the stored value is rounded correctly.
Which function should I use to always round numbers up in Excel?
You should use the ROUNDUP function. It always rounds numbers upward to the specified number of decimal places, such as =ROUNDUP(A1/B1, 2).
How do I remove decimal places without rounding in Excel?
Use the TRUNC function to remove decimal places without rounding. For example, =TRUNC(A1/B1, 2) will cut off extra decimals and return only two digits after the decimal point.
Can I use ROUND with other Excel functions like SUM or IF?
Yes, you can combine ROUND with functions like SUM, AVERAGE, and IF. For example, =ROUND(SUM(A1:A10), 2) ensures the final result is limited to 2 decimal places.

Vaishvi Desai is the founder of Excelsamurai and a passionate Excel enthusiast with years of experience in data analysis and spreadsheet management. With a mission to help others harness the power of Excel, Vaishvi shares her expertise through concise, easy-to-follow tutorials on shortcuts, formulas, Pivot Tables, and VBA.
