How to Extract Decimal Part in Excel
In this article
To extract the decimal part of a number in Excel, use the formula =A1-TRUNC(A1) (or =A1-INT(A1) for positive numbers). This returns only the fractional portion, such as 0.75 from 12.75. The result is a positive decimal between 0 and 1 for positive numbers; for negative numbers, the sign is preserved with TRUNC. No add-ins or special settings are required—just a standard worksheet and a cell containing a number.
What You'll Need
- Microsoft Excel (any modern version: Microsoft 365, Excel 2019, 2021, or Excel for Mac). The steps below apply to the desktop app; Excel for the web works the same for these formulas.
- A worksheet with at least one numeric value in a cell (for example, A1 contains 12.75).
- Basic familiarity with entering formulas (typing
=and pressing Enter).
Step-by-Step
- Enter your number. Type a number such as
12.75into cell A1. If you already have data, note the cell reference (e.g., B2). - Select an empty cell for the result. Click cell B1 (or any blank cell).
- Type the formula. Enter
=A1-TRUNC(A1)and press Enter. For positive numbers,=A1-INT(A1)gives the same result. The cell now shows0.75. - Format as needed. The result may display as
0.75automatically. If you want to show more or fewer decimal places, right-click the cell, choose Format Cells, select Number, and set the decimal places. This changes display only, not the underlying value. - Copy the formula down. Drag the fill handle (small square at the bottom-right of the cell) down to apply the formula to other rows. Excel adjusts the cell references automatically.
- Optional: extract as text. If you need the decimal part as text (e.g., to concatenate), use
=MID(A1,FIND(".",A1),LEN(A1))for numbers that contain a decimal point. This returns ".75" including the dot. For numbers without a decimal point, it returns an error; wrap with IFERROR to handle that. - Optional: get the decimal digits only (no leading zero). Use
=RIGHT(A1,LEN(A1)-FIND(".",A1))to return "75" as text. Again, this assumes a decimal point exists.
Note: Menu labels and dialog wording can differ slightly by Excel version, device, and region. The formulas themselves are consistent across versions.
Common Mistakes
- Using INT on negative numbers.
INT(-12.75)returns -13, so-12.75-INT(-12.75)gives 0.25, not -0.75. UseTRUNCinstead:=-12.75-TRUNC(-12.75)returns -0.75. - Forgetting that the result is a fraction, not a text string. The formula returns a numeric value. If you need text, convert it with TEXT or the text formulas above.
- Assuming the decimal part includes the decimal point. The numeric result (0.75) does not include a dot; the text method does.
- Applying the formula to cells that contain text. If A1 contains "12.75" as text (left-aligned), the formula may still work because Excel coerces text to numbers in arithmetic, but it can fail with non-numeric text. Ensure values are stored as numbers.
- Expecting the formula to round. It truncates; it does not round. For example, 12.759 returns 0.759, not 0.76.
Tips
- To extract the decimal part and keep the sign for negative numbers, always use
TRUNCrather thanINT. - If you want the decimal part as an integer (e.g., 75 from 12.75), multiply the result by 10 raised to the number of decimal places, then use INT:
=INT((A1-TRUNC(A1))*100)for two decimal places. - Use
MOD(A1,1)as a shorter alternative: it returns the same fractional part asA1-TRUNC(A1)for positive numbers, and for negative numbers it returns a positive fraction (e.g., MOD(-12.75,1) = 0.25). Choose based on whether you need the sign preserved. - When working with many rows, convert your data range to an Excel Table (Ctrl+T) so formulas auto-fill as you add rows.
- Remember that Excel stores numbers with finite precision; very long decimals may show tiny rounding differences. Format cells to a fixed number of decimal places to avoid confusion.
Troubleshooting
- Formula returns #VALUE!: The referenced cell likely contains text that cannot be converted to a number. Check for stray spaces or non-numeric characters; use TRIM or clean the data.
- Result is 0: The number may be an integer (no decimal part), or the cell reference is wrong. Verify the cell contains a decimal value.
- Result shows many decimal places: This is a display issue. Format the cell to the desired number of decimal places (right-click > Format Cells > Number).
- Negative numbers give unexpected results: Switch from INT to TRUNC as explained above.
- Text formula returns #VALUE!: The number has no decimal point. Use IFERROR to handle:
=IFERROR(MID(A1,FIND(".",A1),LEN(A1)),""). - Formula not calculating: Check that calculation is set to Automatic (Formulas > Calculation Options > Automatic). Also ensure the cell is formatted as General or Number, not Text.
Frequently Asked Questions
How do I get just the decimal digits without the leading zero?
Use =RIGHT(A1,LEN(A1)-FIND(".",A1)) if the number is stored as text or has a decimal point. For a numeric value, use =MID(TEXT(A1,"0.################"),FIND(".",TEXT(A1,"0.################"))+1,99) to return the digits as text.
Can I extract the decimal part without a formula?
You can use Text to Columns or Flash Fill, but these are manual and not dynamic. Formulas are the reliable, repeatable method.
Why does INT give a different result from TRUNC for negative numbers?
INT rounds down to the nearest integer (toward negative infinity), while TRUNC simply removes the fractional part (toward zero). For -12.75, INT gives -13, TRUNC gives -12.
Does the formula work in Excel for Mac and Excel for the web?
Yes, the functions TRUNC, INT, MOD, FIND, MID, and RIGHT are available in all modern Excel versions and platforms.
How do I extract the decimal part and then use it in another calculation?
The result is a number, so you can reference the cell directly in other formulas, e.g., =B1*100 to convert 0.75 to 75.
What if my number has a comma as the decimal separator?
Excel formulas use the decimal separator set in your system settings. If your system uses a comma, enter formulas with a comma as the decimal separator (e.g., =A1-TRUNC(A1) still works because TRUNC doesn't require a separator). The text formulas using FIND(".",A1) would need to search for "," instead.