First thing come to mind is some lookup method, see attached first sheet, then I suspected there are more better way of doing it. So I came across this tip, it actually suggested 6 ways to do it. So I gave some tries, the result is quite some interesting learning experience. Pls. refer to each sheet of the attached excel file.
The other thing bugged me for quite a while was the last method using Boolean Multiplication, a natural improvement was sumproduct, however I could not get sumproduct(boolean array, score) work, it always returns 0 in Excel 2010, as confirmed in another blog post I found online. After some try and errors, only the 9th sumproduct works. (Sheet attached here)
It's very interesting to see how this method can be hacked to simulate typical select from where SQL query in Excel.