I think the fundamental question to answer is what does each row represent? If ItemCodes are static, you can create a lookup table, and place the associated score at the right index. If you provide more code/details, I can likely help you with this.