I have a userform with several text boxes. Two are tied to select case statements. What I'm after is if the defect is "sheet metal (bent)" and the reason is "bent to long" I need it to put 01001 into a cell. That part is simple enough. The problem I have is that with each defect there are several reasons, and each has it's own unique number. Other then writing multiple if and else if statements, is there an easier way to do this?