View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
www.exciter.gr: Custom Excel Applications! www.exciter.gr: Custom Excel Applications! is offline
Banned
 
Posts: 19
Default help with mod function

You should add one more parameter in your IF formula:

=IF(K2=180,MOD(K2,180),"")

this formula check if K2=180 and if it is, it returns the MOD's
result, if it not, it returns blank.

http://www.exciter.gr
Custom Excel Applications and Functions!





On Oct 31, 8:06 pm, "Tim" wrote:
I have a problem with the mod function...I need to make it conditional on
the related adjacent cell...here's what I have

=IF(K2=180,MOD(K2,180))

What I need is if K2 is equal to or greater than 180 then execute the mod
function in the appropriate adjacent cell
If K2 is less than 180 then do not execute the mode function in the adjacent
cell...leave the exiting number , if any, alone

The above executes the mod function ok if equal or greater than 180...but if
less than 180...it's returning a false statement ?

I'm sure this is simple but I can't come up with changes that give the above
desired results.

Thanks, Tim