TomMusto
6 years agoQrew Cadet
Re: Color code calendar events based on divisor of Record ID #
The Mod function will return the remainder of x/y, so when Mod(x,y) = 0 then x is evenly divisible by y. If you combine If and Mod, you could get the coloring down. Here's an example based on the exact situation presented in your post:
Hope this helps.
-Tom
------------------------------
Tom M
------------------------------
If(Mod( [Related Tech], 5 ) = 0, "green", Mod( [Related Tech], 4 ) = 0, "blue", Mod( [Related Tech], 3 ) = 0,"yellow", Mod( [Related Tech], 2 ) = 0, "purple", "orange")
Hope this helps.
-Tom
------------------------------
Tom M
------------------------------