• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Separating integer and decimal

I am separating the number 3.1 in cell A1 by integer and decimal. For the decimal, =MOD(A1,1) is returning “0.1” while I need to show “1” as the result.
 
I am separating the number 3.1 in cell A1 by integer and decimal. For the decimal, =MOD(A1,1) is returning “0.1” while I need to show “1” as the result.
Hi,

Please refer to attachment
B1:C1 if you use "."
B2:C2 if you use ","

Use accordingly

Hope it helps
 

Attachments

  • Test.xlsx
    8.6 KB · Views: 13
To extract decimal part as a whole number.

Try, one of :

=--MID(A1,FIND(".",A1)+1,99)

=--RIGHT(A1,LEN(A1)-FIND(".",A1))

=MOD(A1,1)*10^(LEN(A1)-FIND(".",A1))

Regards
Bosco
 
Back
Top