A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
In Excel 2019 and later, you can use the IFS function:
=IFS(condition_1, value_1, condition_2, value_2, ...)
And also the SWITCH function:
=SWITCH(expression, value_1, result_1, value_2, result_2, ..., default_result)