extracting digits after decimal place

jazflyer

New Member
Joined
Oct 16, 2010
Messages
19
I'm trying to extract only the digits following a decimal place. The number of digits after the decimal place is variable up to 5

i.e. 1.2035 or 83.345 etc

I'm able to do it with the mid function but when the last digit after the decimal place is a zero it omits the zero. I need that zero.

i.e. 1.2030 returns 203 (I need 2030) or 1.0230 returns 023 etc.

Can anyone suggest a solution?

Thanks
Jaz
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hey firefly

I just need to exact numbers after the decimal place. I need to turn the value of the decimals into an integer so that I can subtract a similar number. For example
1.2030 - 1.2010 = 20

or

82.25 - 82.10 = 15

If all the values had the same decimal place I'd just multiply by the appropriate number but the decimal values differ.

Thanks
 
Last edited:
Upvote 0
From what you've stated, it seems to me that you just need to multily by 10000 (assuming you have a max of 4 digits after the decimal place).

=MOD(A1,1)*10000
 
Upvote 0
From what you've stated, it seems to me that you just need to multily by 10000 (assuming you have a max of 4 digits after the decimal place).

=MOD(A1,1)*10000

FF

Because of the variable decimal places ie .xxxx or .xxx etc, simply multiplying by 1000 or 10000 doesn't seem to work.

For example 82.87 should return 87 (not 8700) just as 1.360 should return 360

Thanks
 
Upvote 0
You seriously need to review your logic because it's going to come a cropper at some point. Based on what you said, what happens if you need to compare the decimals from:

1.025

and

1.25

How is the formula meant to know the second should return 250 or 25?
 
Upvote 0
Aloha Trevor,

Using 1.0850 as an example, your suggestion still only returns a value with the zero omitted. (085)



Thanks

From your statement above this means you are needing to use text for the cell value as you wouldn't see the 1.0850 if it was numeric? So my formula would be correct if they are formatted as numbers or as text.
 
Upvote 0

Forum statistics

Threads
1,223,277
Messages
6,171,147
Members
452,382
Latest member
RonChand

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top