RichKat
New Member
- Joined
- Nov 8, 2009
- Messages
- 39
- Office Version
- 365
- Platform
- Windows
Hello,
I have a sheet that has the words "test", "exam" or "lesson" in the cells in range C6:C47. Each of those words has a numeric value assigned in the range AA2:AB4. I would like my formula to convert the words in column "C" to the numeric values and then do a weighted average with SUMPRODUCT.
The weighted average is no problem with the following formula if I would have numeric values in Column C:
=SUMPRODUCT(C6:C47,AA2:AB4,2,1,E6:E47)/SUM(C6:C47,AA2:AB4,2,1)
But I need the text values to stay.
I tried this:
=SUMPRODUCT(VLOOKUP(C6:C47,AA2:AB4,2,1),E6:E47)/SUM(VLOOKUP(C6:C47,AA2:AB4,2,1))
But it gives a "VALUE" error.
Can you point me the right direction?
Thanks a bunch,
Richard
I have a sheet that has the words "test", "exam" or "lesson" in the cells in range C6:C47. Each of those words has a numeric value assigned in the range AA2:AB4. I would like my formula to convert the words in column "C" to the numeric values and then do a weighted average with SUMPRODUCT.
The weighted average is no problem with the following formula if I would have numeric values in Column C:
=SUMPRODUCT(C6:C47,AA2:AB4,2,1,E6:E47)/SUM(C6:C47,AA2:AB4,2,1)
But I need the text values to stay.
I tried this:
=SUMPRODUCT(VLOOKUP(C6:C47,AA2:AB4,2,1),E6:E47)/SUM(VLOOKUP(C6:C47,AA2:AB4,2,1))
But it gives a "VALUE" error.
Can you point me the right direction?
Thanks a bunch,
Richard