sdetwiler19
New Member
- Joined
- Jan 30, 2016
- Messages
- 3
I'm trying to perform a SUMPRODUCT of 2 columns where each value is text, but those text values correspond to numbers in a lookup table. There's an easy way to do this using hidden columns that perform the VLOOKUP part, but I'm trying to avoid any hidden columns.
I know that the following formula doesn't work, but it best illustrates what I'm trying to do:
=SUMPRODUCT(VLOOKUP($C$10:$C$24,PRIORITY_SCORE,2,FALSE)*VLOOKUP($E$10:$E$24,RATING_SCORE,2,FALSE))
Here's an example of the data:
[TABLE="width: 205"]
<tbody>[TR]
[TD]C[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Critical[/TD]
[TD]Exceeds[/TD]
[/TR]
[TR]
[TD]Critical[/TD]
[TD]Meets[/TD]
[/TR]
[TR]
[TD]High[/TD]
[TD]Limited[/TD]
[/TR]
[TR]
[TD]Medium[/TD]
[TD]None[/TD]
[/TR]
</tbody>[/TABLE]
The PRIORITY_SCORE reference looks like this:
[TABLE="width: 150"]
<tbody>[TR]
[TD]Low[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Medium[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]High[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Critical[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
The RATING_SCORE reference looks like this:
[TABLE="width: 150"]
<tbody>[TR]
[TD]None[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Limited[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Meets[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Exceeds[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
So the expected output would be as follows:
[TABLE="width: 350"]
<tbody>[TR]
[TD]C[/TD]
[TD]E[/TD]
[TD]product[/TD]
[/TR]
[TR]
[TD]Critical = 4[/TD]
[TD]Exceeds = 3[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Critical = 4[/TD]
[TD]Meets = 2[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]High = 3[/TD]
[TD]Limited = 1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Medium =2[/TD]
[TD]None =0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Formula output = 23
Any thoughts or suggestions would be much appreciated!
I know that the following formula doesn't work, but it best illustrates what I'm trying to do:
=SUMPRODUCT(VLOOKUP($C$10:$C$24,PRIORITY_SCORE,2,FALSE)*VLOOKUP($E$10:$E$24,RATING_SCORE,2,FALSE))
Here's an example of the data:
[TABLE="width: 205"]
<tbody>[TR]
[TD]C[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Critical[/TD]
[TD]Exceeds[/TD]
[/TR]
[TR]
[TD]Critical[/TD]
[TD]Meets[/TD]
[/TR]
[TR]
[TD]High[/TD]
[TD]Limited[/TD]
[/TR]
[TR]
[TD]Medium[/TD]
[TD]None[/TD]
[/TR]
</tbody>[/TABLE]
The PRIORITY_SCORE reference looks like this:
[TABLE="width: 150"]
<tbody>[TR]
[TD]Low[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Medium[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]High[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Critical[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
The RATING_SCORE reference looks like this:
[TABLE="width: 150"]
<tbody>[TR]
[TD]None[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Limited[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Meets[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Exceeds[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
So the expected output would be as follows:
[TABLE="width: 350"]
<tbody>[TR]
[TD]C[/TD]
[TD]E[/TD]
[TD]product[/TD]
[/TR]
[TR]
[TD]Critical = 4[/TD]
[TD]Exceeds = 3[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Critical = 4[/TD]
[TD]Meets = 2[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]High = 3[/TD]
[TD]Limited = 1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Medium =2[/TD]
[TD]None =0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
Formula output = 23
Any thoughts or suggestions would be much appreciated!