Excel formula: Value exists in a range

Source: exceljet.net