Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Returning Least-Significant Digits.

# Returning Least-Significant Digits

by Allen Wyatt
(last updated December 1, 2020)

Glenn has a need to return the three least significant digits of a four-digit number and is wondering how this can best be done. As with many tasks in Excel, there are a number of ways you can derive the desired information. One way is to use the MOD function, in this manner:

```=MOD(A1,1000)
```

This function divides the value in cell A1 by 1000 and then returns what is left over. Provided that the value in A1 is a four-digit integer, then you'll get the result you desire.

Another similar method of determining the desired values is to use a function that is normally used with text values:

```=RIGHT(A1,3)
```

This returns the three right-most characters (digits) of whatever is in cell A1. If you think that it is possible that A1 could have some non-digit characters in it, then you should wrap the function in the VALUE function, like this:

```=VALUE(RIGHT(A1,3))
```

Of course, it is very possible that any of the approaches discussed so far will give undesired results. While they work well if the value in A1 is an integer value, they don't work that well if the value is a real number, such as 12.36 or 105.2, having four significant digits. In these cases, you may want to use a formula such as the following:

```=RIGHT(0.0001*A1,3)
```

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10785) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365. You can find a version of this tip for the older menu interface of Excel here: Returning Least-Significant Digits.

##### Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

##### MORE FROM ALLEN

Choosing What You See in the Equation Editor

Sometimes it can be helpful to see where non-printing characters are located. Here's how to view non-printing characters ...

Discover More

Changing Fonts for AutoText Entries

If you use AutoText entries a lot, you may wonder if you can change the formatting stored with your existing entries. The ...

Discover More

MAC addresses are used to uniquely identify devices on your network, such as a network adapter. Here's how you can modify ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

##### More ExcelTips (ribbon)

Segregating Numbers According to Their Sign

Remember your number line from your early years in school? Some numbers can be below zero (negative numbers) and others ...

Discover More

Randomly Assigning Names to Items

If you need to randomly match up items in two lists, there are a variety of techniques you can use. Here are a couple of ...

Discover More

Counting Names Based on Two Criteria

Need to figure out how many rows in a worksheet meet two criteria that you specify? Here's how to get the info you desire.

Discover More
##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. Youâ€™ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 6?

2020-11-02 10:51:21

Christopher Ohland

I present numeric values for science and engineering reports, which often requires data to be shown with the least significant value. Because the values range in magnitude, the formula must recognize those changes as well. The following is an adaptation I starting using in the Lotus 1-2-3 days, and several similar versions work. =FIXED(XXX,YYY-INT(LOG10(XXX))-1); where XXX is the location of the value and YYY is the number of significant figures needed.

Examples for 3 sig figs:

1234654 = 1,230,000
123.9 = 124
12.12 = 12.1
1.345 = 1.35
0.21344 = 0.213
0.012343654 = 0.0123
0.002341 = 0.00234
0.0002349 = 0.000235

##### This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.