I believe that what Uncle Gizmo meant was that how you do it with a computer is directly related to how you would do it on paper.
You will need a multiple Case Operation, so use google to look up IIf, Switch, and Select Caseand determine on your own if either of those options is able to complete your task.