KutoolsforOffice — One Suite. Five Tools. Get More Done.February Sale: 20% Off

How to count (identify) and change decimal place in Excel?

AuthorXiaoyangLast modified

This article provides detailed guidance on how to count and identify the number of decimal places in Excel, as well as several practical ways to change decimal places for numbers within a specific range or throughout the entire worksheet. Understanding and adjusting decimal places is crucial in data analysis, financial reports, and scientific calculations where precision is required and consistency in number formatting improves readability and accuracy.

Suppose you need to count and adjust decimal places for numbers in Column A, as shown below:

sample data

Count and identify the decimal place of a number

Change the decimal place in a given range

Change the decimal place in the whole worksheet

Excel Formula - Use ROUND, ROUNDUP, or ROUNDDOWN functions to change actual values


Count and identify the decimal place of a number

In spreadsheets, it's common to encounter numbers with varying numbers of decimal places, especially when importing data from different sources. To standardize or analyze such data, you may need to count the digits after the decimal point for each value. Here is an effective approach:

In any blank cell, for example, cell B2, input the formula:

=IF(A2=INT(A2),0,LEN(MID(A2-INT(A2),FIND(".",A2,1),LEN(A2)-FIND(".",A2,1))))

After entering the formula, press Enter. The result in B2 will display the number of decimal places for the value in A2. For instance, if the original value in A2 is 18.25893, B2 will show 5. You can then copy and paste this formula down to other rows to identify decimal places for the entire column. Simply drag the fill handle down from B2 or double-click it to auto-fill adjacent cells.

apply a formula to count and identify the decimal place of a number

Tip: This method only works properly if your data is formatted as numbers, not as text. If you encounter formulas returning errors, check that decimal points are entered correctly and that numbers are not stored as text strings.

a screenshot of kutools for excel ai

Unlock Excel Magic with Kutools AI

  • Smart Execution: Perform cell operations, analyze data, and create charts—all driven by simple commands.
  • Custom Formulas: Generate tailored formulas to streamline your workflows.
  • VBA Coding: Write and implement VBA code effortlessly.
  • Formula Interpretation: Understand complex formulas with ease.
  • Text Translation: Break language barriers within your spreadsheets.
Enhance your Excel capabilities with AI-powered tools. Download Now and experience efficiency like never before!

Change the decimal place in a given range

When you need to standardize the number of decimal places for a selection of numbers, such as for reporting or calculation accuracy, the following methods allow you to adjust the display of decimal places within a selected cell range:

1. Select the numbers you intend to change (for example, the range A2:A6).

2. Next, go to the Home tab and locate the Number group. Click either the Decrease Decimal or Increase Decimal button as needed. This will adjust the displayed decimal places for all values in your selection.

Click the Decrease Decimal button or Increase Decimal button

Once clicked, the values in the selection will appear with the updated decimal places. The underlying values remain unchanged unless you use additional steps, such as rounding or pasting values. See below for illustration:

originla dataarrow rightthe decimal place of numbers are changed to same decimal place

Alternatively, you can use the Format Cells function to specify a consistent number of decimal places:

1. Select the desired range and right-click to open the context menu, then choose Format Cells.

2. In the Format Cells dialog box, select Number from the Category list and specify the desired number of decimal places in the Decimal places box. Click OK to complete the change.

denter the decimal places in the Format Cells diaog box

After confirming, the displayed values are now unified to your chosen precision:

original dataarrow-rightthe decimal place of numbers are changed to same decimal place

Note: Both approaches affect only how the numbers are displayed, not their stored values. 


Change the decimal place in the whole worksheet

You can also establish a default number of decimal places for all future entries in the worksheet. This is useful for preventing inconsistent decimal places during data input or when working in environments (such as accounting systems) where a fixed precision is required for all numbers.

1. First, open Excel’s options menu:  click File > Options

2. In the Excel Options dialog, select Advanced from the sidebar, then scroll to the Editing options section.

3. Enable Automatically insert a decimal point and specify your preferred number of decimal places in the Places box.

4. Click OK to apply the changes. Now, when you type numbers into the worksheet, Excel automatically includes the decimal point according to your specified setting. For example, if you enter the value "1234" and the decimal setting is 2, Excel converts this to "12.34" immediately.

Check the Automatically insert a decimal point option, and enter a number in the Places box in the Excel Options dialog box

However, this setting only affects new inputs. Existing numbers won't be reformatted automatically. Also, if you manually enter a number with a decimal point (such as16.25893), Excel will retain your original entry without rounding or truncating decimals. 


Excel Formula - Use ROUND, ROUNDUP, ROUNDDOWN functions to change actual decimal value

To programmatically alter stored values rather than just their format, Excel offers built-in formulas. These are beneficial for calculations requiring specific rounding behavior and allow for clear documentation via formula logic.

Applicable scenario: Calculating tax, financial figures, or scientific values which must follow precise rounding rules. Also useful when you want to easily audit or recalculate results.

1. Suppose you want to round a number in cell A2 to two decimal places. Enter the following formula in cell B2:

=ROUND(A2,2)

2. Press Enter, then copy the formula down to other rows as needed by dragging the fill handle or copying and pasting.

Parameter explanations: The first parameter (A2) is the reference to your number; the second parameter (2) sets the desired count of decimal places. To always round up or down, substitute ROUNDUP or ROUNDDOWN respectively:

=ROUNDUP(A2,2)
=ROUNDDOWN(A2,2)

After applying, you can copy the formula results and paste them back over the original values using Paste Special (Values), to overwrite the source data if needed.

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in