Change remainder to whole number?

dkeith1977

New Member
Joined
Sep 4, 2017
Messages
2
I want to basically be able to use the remainder as a whole number.
So I may have a problem that is 277/10 = 27.7 So my remainder is .7 , I want to be left with only 7
I need to be able to take any remainder and subtract it from 10
So if my answer has a remainder of .7 I need to be able to do 10-7=3
If my answer has a remainder of .4 I need to be able to do 10-4=6 and so on.


I can not use RIGHT(A1,1) because it is a remainder so right goes to the end of the remainder which could be .699999999995 and it returns 5.


So I thought about trying to strip it somehow but have not been able to come up with anything. Any help would be greatly appreciated!


Thanks in advance.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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