View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GS[_6_] GS[_6_] is offline
external usenet poster
 
Posts: 1,182
Default Need formula to test if cell is a multiple of 28, but not including 28

I have successfully used =IF(MOD(G3,28)=0 to identify whether my cell
value is a multiple of 28, but I need for it to exclude 28 itself.

The very simple formula that I use thereafter =(E7/28)*$G$3 works
fine. I've tried all kinds of nested if statements and I can't seem
to find a solution here.

Any help much appreciated.

Waz'


Try...

IF(MOD(G3-28,28)=0,<then it's a multiple,<else it's not a multiple)

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus