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
- 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
May be interested
- PI (PI Function) in Excel - How to use PI numbers in Excelpi (pi function) in excel - how to use pi numbers in excel. pi number is a mathematical constant with an approximate value of 3,1415926535897 ... we can find pi numbers in many trigonometric and geometric formulas. especially the formulas related to circles, ellipses, and spheres:
- Split numbers from strings in Excelin the process of working with excel, i have encountered some cases that require separating only the fraction in a given string, now this post shares with you how to do this. the following article details how to separate numbers from a given string in excel.
- How to extract numbers or text from Excelmicrosoft excel is great for working with both numbers and text, but if you use both in the same cell, you may have some difficulties. fortunately, you can extract numbers or text from cells to work with your data more efficiently.
- How to format numbers in Excelhow to format numbers in excel in the process of working, processing data in excel sometimes you need to format numbers in excel so that data can display the number format in accordance with the requirements to be processed. you do not know how to format numbers in ex
- How to convert negative numbers to positive numbers Excelto convert negative numbers to positive numbers and vice versa on excel, you only need to perform a very simple operation.
- How to convert Apple Numbers documents to Microsoft Excelnumbers is spreadsheet software specifically for apple devices both on phones and on computers. basically, apple numbers works similar to microsoft excel, so you can completely convert documents between these two toolkits to serve each specific working situation.
- Instructions for converting numbers to words in Excelto convert numbers to words in excel, you will use a support tool, instead of typing by hand, which is not accurate and takes a lot of time to do. below are some ways to convert numbers to words in excel.
- How to convert numbers into words in Excel?in excel, entering and typing amounts is very tiring, sometimes confusing. so why do this work faster but still have to ensure accuracy? tipsmake.com will introduce you to a support tool, or more accurately, an additional add-in for microsoft excel, very convenient for accounting, finance, people who have to work with big amounts ...
- How to round whole numbers in Excelhow to round whole numbers in excel in excel there are many mathematical functions used to round numbers. today software tips will guide you some functions that can be used to round whole numbers in excel.
- Do not round numbers in Excel, turn off rounding in Excelrounding numbers in excel is a handy function for calculating data, but sometimes it also makes you feel unnecessary troubles. to turn off the function of rounding in excel you can follow the following instructions