EXL Service Interview Question

Sql stats case based excel