Formula to find out if a number is divisible by 7 but to 2 decimal places?

WILLIS28

New Member
Joined
Mar 7, 2023
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi,

I can work out if a number is exactly divisible by a number (7 in this instance), but would like to know if it's divisible by 2 decimal places.

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

Could you explain what you mean exactly by " divisible by 2 decimal places " ...
 
Upvote 0
Surely any number can be divisible by 7 to N decimal places
 
Upvote 0
Welcome to the Board!

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.
 
Upvote 0
Thanks all.

As an example I'm using =MOD(A1,7)=0. Ideally, I'd like the 7 to be 7.01, 7.02 etc up to 7.99 and still return a TRUE.

Hope that makes sense.
 
Upvote 0
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 ....
 
Upvote 0
As an example I'm using =MOD(A1,7)=0. Ideally, I'd like the 7 to be 7.01, 7.02 etc up to 7.99 and still return a TRUE.
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:
Excel Formula:
=IF(ROUND(MOD(A1,7),1)=0,"TRUE","FALSE")
 
Upvote 0
Hi,
Quite honestly ... I am very intrigued and curious to know the end of this story !! ;)
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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