How to get numbers after commas in Excel
A rational number consists of two parts, an integer and a decimal. The whole part is the part before the comma, the part after the comma is called a decimal. Excel does not have specialized tools or functions to get numbers after commas. However, you can use the built-in tools to calculate whole and decimal parts.
Use the TRUNC function to get the number before the comma
To get the part before the comma is very simple, you use the TRUNC function to truncate the part after the comma with the following syntax:
= TRUNC (number, [num_digits]).
Inside:
- TRUNC: is the name of the function used to round a number to an integer by removing its decimal part.
- Number: the original number.
- Num_digits: A number that identifies the precision of truncation. The default value for num_digits is 0 (zero).
Note that INT and TRUNC are also functions that take integers. However, the INT function rounds down to the nearest integer based on the value of the fractional part of that number. While the TRUNC function takes an integer part by removing its fractional part.
The INT and TRUNC functions differ only when the original number is negative. TRUNC (-10.25) = -10 while INT (-10.25) = -11.
Get the number after the comma
After you get the number before the comma (whole part) with the TRUNC function, you subtract the result of the TRUNC function and get the decimal.
Combining the steps above, you can always use the following formula:
= rational numbers - TRUNC (rational numbers) .
In which rational numbers can be a position of cells containing data or a number to round. With the above formula, you get the same result:
If you want the result to be a positive number, you use the ABS function to return the absolute value of the result by the formula = ABS (rational number - TRUNC (rational number)) .
Above Software Tips showed you how to take the number after the comma in Excel. Good luck!
You should read it
- Instructions for rounding decimal numbers after commas in Excel
- How to convert dots to commas in Excel on Windows 7
- How to convert commas into dots in Excel
- Convert commas to dots in Excel
- Instructions to stamp negative numbers in Excel
- How to Replace Comma with Period in Excel
- How to separate text strings by commas or spaces in Excel
- How to Change a Comma to Dot in Excel
- How to display thousands separator commas in Excel
- PI (PI Function) in Excel - How to use PI numbers in Excel
- Split numbers from strings in Excel
- How to extract numbers or text from Excel
Maybe you are interested
How to use the Round function in Excel to round numbers and process data
The Constant Pi (π): History of the Discovery and Application in Mathematics of the Mysterious Number Pi
How to generate random numbers in Excel
Instructions for converting numbers to words in Excel
How to calculate the number of days between two time points extremely quickly using Excel
Fix the error of not being able to hide phone numbers on Telegram