Take a look at the case command. You can use to to choose which column to output.