spreadhseet processing without conditionals, as an exercise