=MOD(A2,15)<>0
How to conditional format a cell if NOT divisible by certain number in Excel?
I need to be alerted when certain cells are NOT divisible by 15 - either by changing text color or cell color.
I am manually inputting numbers provided by staff and certain columns need to be divisible by 15 or I get errors in other places. These numbers pull into formulas on a different tab, but do not have any other formatting on the cell they are entered. I understand how to use conditional formatting but all of the formulas I have tried or found online are not working.
Example : 310 would be flagged as not divisible by 15, 315 would not be flagged as it is divisible by 15.
Microsoft 365 and Office | Excel | For business | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
-
Anonymous
2024-03-04T15:33:01+00:00
1 additional answer
Sort by: Most helpful
-
Anonymous
2024-03-04T16:55:33+00:00 That was so simple. I don't know why all the other answers were making it so complicated. Thank you!