
You might use
=CHAR(ROUND(SUMPRODUCT(CODE(D4:D10), {0.3;0.35;0.1;0.05;0.05;0.05;0.1}), 0))
or better, if the weights are entered in a range, say W4:W10:
=CHAR(ROUND(SUMPRODUCT(CODE(D4:D10), W4:W10), 0))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Community,
I have a scenario whereby I have a column of 7 Excel text cells (let's define them as D4: D10). Each cell is driven by an Excel formula that will generate an outcome of either "A", "B" or "C". Please note, the results in D4:D10 will change depending upon the source data for each matter that is the subject of the Excel spreadsheet.
With respect to D4:D10, each outcome of each text cell is "weighted" in the following manner: 30%, 35%, 10%, 5%, 5%, 5%, 10% . Understandably, these weightings add up to 100%.
I would like to know whether there is an Excel formula that will generate an "average" text cell value, based upon the weightings of D4:D10. For this scenario, the "average" text cell value will generate to, say, D12.
For example, due to D4 and D5 having a combined "weighting" of 65%, if both text cell values were "C" it is most likely the "average" text cell value will be "C".
Trust that this makes sense - thanks in advance for the Community's assistance.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
You might use
=CHAR(ROUND(SUMPRODUCT(CODE(D4:D10), {0.3;0.35;0.1;0.05;0.05;0.05;0.1}), 0))
or better, if the weights are entered in a range, say W4:W10:
=CHAR(ROUND(SUMPRODUCT(CODE(D4:D10), W4:W10), 0))
Hi HansV, the first Excel formula works for me. Thank you very much for your assistance.