ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can I reduce (101.25) to only what's *right* of decimal? (25) (https://www.excelbanter.com/excel-worksheet-functions/203069-can-i-reduce-101-25-only-whats-%2Aright%2A-decimal-25-a.html)

jay45940

Can I reduce (101.25) to only what's *right* of decimal? (25)
 
Can I reduce (101.25) to only what's *right* of decimal? (25)
Is there a function or a series of steps to accomplish this within an excel
spreadsheet?

FSt1

Can I reduce (101.25) to only what's *right* of decimal? (25)
 
hi
=MOD(A1,1)

this will get you what is right of the decimal which is .25. however your
example was 25 so just multiply by 100.

=MOD(A1,1)*100

adjust cell reference to suit.
regards
FSt1

"jay45940" wrote:

Can I reduce (101.25) to only what's *right* of decimal? (25)
Is there a function or a series of steps to accomplish this within an excel
spreadsheet?


Harlan Grove[_2_]

Can I reduce (101.25) to only what's *right* of decimal? (25)
 
FSt1 wrote...
hi
=MOD(A1,1)

this will get you what is right of the decimal which is .25. however your
example was 25 so just multiply by 100.

=MOD(A1,1)*100

....

Probably OK, but MOD will fail when A1 2^29. Safer to use

=A1-TRUNC(A1)

or

=SUBSTITUTE(A1-TRUNC(A1),"0.","")

The latter returns a text string which would retain leading zeros.


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com