Can you show us some example of what you mean?
Every whole number when divided by 7 will either have no decimal, or a never-ending decimal.
Or does the number you are dividing by 7 possibly containing decimals, i.e.
dividing 1.4 by 7 would give you 0.2.
Quite difficult to guess the context which is leading you to consider this solution to your problem ... !!!
Mod 7 will generate the remainder of the division of cell A1 by 7 ...
From 0.1 to 0.99 as you are stating it ... means you are extremely close to the next Integer ...
Could you explain the situation you are facing and the complication you need to solve ...?
May be the solution you are anticipating is not precisely the one to consider ....
What do the numbers in column A look like?
Are they whole numbers or decimal numbers?
If they are whole numbers, it is impossible to have a decimal like .01 or .99.
All the decimal options for whole numbers divided by 7 would be (up to 4 decimals)
0
.1429
.2857
.4286
.5714
.7143
.8571
So I am assuming the numbers in column A might have decimals (or else you wouldn't be asking this question).
See if this does what you want:
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.