How can I get the digits left and/or right of the decimal point in a formula?

jamorin

New Member
Joined
Sep 27, 2008
Messages
33
Let's say I have a number such as 123.456 and I want to use 123 in one calculation and .456 in another. Is there a command that allows this?

I've tried to use =Left and =Right without much success since these are text commands. I just cannot figure out the corresponding number functions.

Thanks as always
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
take a number ie. 123.456 and show the whole numbers (123) in one cell and the decimal number (.456) in another cell, assuming said number is in cell A1.

In the cell you want the whole number value use:
=INT(A1)

for the mantissa part use:
=MOD(A1,1)
 
Upvote 0
Tom thanks!

While searching I also found the function =TRUNC which I found helpful as well in another area of the spreadhseet. Again thanks so much.:)
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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