You need a table of options, then use VLOOKUP