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.

How to get numbers after commas in Excel Picture 1

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:

  1. TRUNC: is the name of the function used to round a number to an integer by removing its decimal part.
  2. Number: the original number.
  3. 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.

How to get numbers after commas in Excel Picture 2

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.

How to get numbers after commas in Excel Picture 3

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:

How to get numbers after commas in Excel Picture 4

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)) .

How to get numbers after commas in Excel Picture 5

Above Software Tips showed you how to take the number after the comma in Excel. Good luck!

4 ★ | 52 Vote

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 (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 ExcelSplit numbers from strings in Excel
    in 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 ExcelHow to extract numbers or text from Excel
    microsoft 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
    how 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 ExcelHow to convert negative numbers to positive numbers Excel
    to 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 ExcelHow to convert Apple Numbers documents to Microsoft Excel
    numbers 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 ExcelInstructions for converting numbers to words in Excel
    to 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?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
    how 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 ExcelDo not round numbers in Excel, turn off rounding in Excel
    rounding 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