ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   1.23 return to 0.23 (https://www.excelbanter.com/excel-discussion-misc-queries/28873-1-23-return-0-23-a.html)

swwong

1.23 return to 0.23
 

Hello

I input 1.23 in A1
but I want B1 to return to 0.23

How can I do that? :confused:

Thanks!


--
swwong
------------------------------------------------------------------------
swwong's Profile: http://www.excelforum.com/member.php...o&userid=23963
View this thread: http://www.excelforum.com/showthread...hreadid=375861


wa284sj


enter in B1

=A1-1

Stuart


--
wa284sj
------------------------------------------------------------------------
wa284sj's Profile: http://www.excelforum.com/member.php...o&userid=22941
View this thread: http://www.excelforum.com/showthread...hreadid=375861


swwong


I mean 1.23 return to 0.23 or 2.12 return to 0.12. or 10000.1 return to
0.1


Thanks


--
swwong
------------------------------------------------------------------------
swwong's Profile: http://www.excelforum.com/member.php...o&userid=23963
View this thread: http://www.excelforum.com/showthread...hreadid=375861


Bryan Hessey


In B1

=a1-int(a1)


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=375861


Peo Sjoblom

=MOD(A1,1)

--
Regards,

Peo Sjoblom

(No private emails please)


"swwong" wrote in
message ...

I mean 1.23 return to 0.23 or 2.12 return to 0.12. or 10000.1 return to
0.1


Thanks


--
swwong
------------------------------------------------------------------------
swwong's Profile:
http://www.excelforum.com/member.php...o&userid=23963
View this thread: http://www.excelforum.com/showthread...hreadid=375861



Bryan Hessey


plus, if you wish to allow for negative numbers:

=IF(A1<0,A1+(INT(A1)*-1)-1,A1-INT(A1))

or

=IF(A1<0,MOD(A1,-1),MOD(A1,1))


--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=375861



All times are GMT +1. The time now is 11:46 AM.

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