Monique Albrecht
New Member
Hello Everyone, I've been trying for weeks to solve this problem using the SUMPRODUCT function for weighted averages. Basically, I'm trying to create a tool that allows me to evaluate a list of products by criteria in 3 categories using High (H), Medium (M) and Low (L). The H,M or L values need to be converted to numbers, say 1, 2 and 3 in order to use the SUMPRODUCT function to get the weighted averages. I'm trying to use the MATCH function to convert the letters to numbers but if fails if I have a blank value and I get a #NA error. I need to accommodate blank cells in case the criteria does not apply to the product in the list. So if I have 6 criteria and only 4 of them apply, then only four are used in the calculation.
Here's what kind of seemed to work: =SUMPRODUCT(MATCH(AK4:AS4,{"H","M","L"},0),AK2:AS2)/SUM(AK2:AS2)
This kind of works, but fails if I have a blank or "N/A" value. Can anyone help me or offer an amazing template ?
Here's what kind of seemed to work: =SUMPRODUCT(MATCH(AK4:AS4,{"H","M","L"},0),AK2:AS2)/SUM(AK2:AS2)
This kind of works, but fails if I have a blank or "N/A" value. Can anyone help me or offer an amazing template ?