WHEN command with Google Sheets

Advanced