What would the proper function for this be? I thought I could use sumproduct but I'm not getting what I expected.