Decimal value help

Damo10

Active Member
Joined
Dec 13, 2010
Messages
460
Hi,

I am looking for a formula that will give me the decimal value from a number. i.e. if cell A1 contains 10.2 then the formula result in cell B2 will be 0.2

Regards
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Besides the MOD method that Jeffrey showed you, there is also this old standby formula...

=A1-INT(A1)
 
Upvote 0
Thankyou both,

They both sort of give me what i need but sometimes the result end up being 1.0, I only require the number after the decimal point.

Regards
 
Upvote 0
Hi

Both formulas should give you just the decimals.

My guess is that you have something like 0.9999999999999... that is being displayed as 1.0 because it's rounding.

Try the following: format the cell as number with 15 decimals. What does the cell display?
 
Upvote 0
Hi,

Yes that worked when i changed the decimal places to 15, how can i then just get the first number after the decimal point as that is the only number i require?

Regards
 
Upvote 0
Try:

=MOD(INT(A1*10),10)/10

Remark: this assumes that in your previous calculations there are no rounding errors.
 
Upvote 0
Alternatively this should produce the same result:

=VALUE("0."&IFERROR(MID(A1,SEARCH(".",A1,1)+1,1),0))

Here, the number in bold can be toggled to the number of digits you want after the decimal point:

e.g.
=VALUE("0."&IFERROR(MID(A1,SEARCH(".",A1,1)+1,3),0))
and
=MOD(INT(A1*1000),1000)/1000
would be equivalent.

Note: IFERROR is available in Excel 2007 and above.

:-D
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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