Welcome to the board...
make a table on your sheet somwhere with your list of names and their respective values.
For example
column F = Names
column G = Respective Values
Then you can use this formula...where A1 is the cell you're testing..
=IF(A1="",0,IF(ISNUMBER(MATCH(A1,F:F,0)),VLOOKUP(A1,F:G,2,FALSE),40))