Divide any value with divide number and return either zero if fully divided or show value which is remaining but less than divided number

mba_110

Board Regular
Joined
Nov 28, 2012
Messages
72
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have total value (it can be any value) but here is 1896 i want to divide it with (it can be any divide amount) but here is 3 i want formula to show me either zero if its fully divided or show me the value which is remaining but less than the dividing value.

A1 - In above example the Divide value is 3
B1 - The Total value is 1896

So, the formula should show Zero because it's fully divided, but incase there is remaining 1 or 2 then formula should show what is remaining and it should not be greater than 2 since we are dividing it with 3, the both value is not fixed so, need flexible formula to work with any total value and divide value.

I hope its clear to understand.

Many thanks in advance.
MBA
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try this formula...
=MOD(A1,3)
No its not a correct formula for my query, if i use 1508 and divide it with 3 it gives me answer in decimals which is 1.667, but i want the single digit number should remain it has to be less then divide amount you can say in this particular scenario the remaining will be 1 or 2 if divided completely than Zero 0.
 
Upvote 0
That is the correct formula as can be seen below
Fluff.xlsm
AB
115082
Data
Cell Formulas
RangeFormula
B1B1=MOD(A1,3)
 
Upvote 0
That is the correct formula as can be seen below
Fluff.xlsm
AB
115082
Data
Cell Formulas
RangeFormula
B1B1=MOD(A1,3)
[/RAN
Cell Formulas
RangeFormula
Sorry, it was my mistake i have overlooked the value coming from a another formula that causing wrong answer. its working fine thanks all.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

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