mod(3 - mod(Input, 3), 3)
Outer mod is unnecessary.
=3 - mod(Input, 3)
should do it.
But then for input 12 (e.g.), you get 3 instead of 0.
Good point!
(Sums up my day, trying to do too much and getting most of it wrong.)
@SwissChap started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Outer mod is unnecessary.
=3 - mod(Input, 3)
should do it.