Sum based on Text

yyasin

New Member
Joined
Dec 26, 2017
Messages
10
Hello,

I'm having a lot of trouble with this one so hoping someone can help.

I need a formula to sum a range of cells using the weighting below. I'd really appreciate any help with this.

[TABLE="class: outer_border, width: 200"]
<tbody>[TR]
[TD]1[/TD]
[TD]Needs Development[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Basic[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Intermediate[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Advanced[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Expert[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 900"]
<tbody>[TR]
[TD]Total Score[/TD]
[TD]Talent
Multiplier
[/TD]
[TD]Purpose
Driven
[/TD]
[TD]Principled
Agility
[/TD]
[TD]Results
Oriented
[/TD]
[TD]Strategic
Orientation
[/TD]
[TD]Managing
Complexity
[/TD]
[TD]Collaborative
Relationships
[/TD]
[TD]Risk
Mitigation
[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Needs Development[/TD]
[TD]Basic[/TD]
[TD]Basic[/TD]
[TD]Needs Development[/TD]
[TD]Intermediate[/TD]
[TD]Basic[/TD]
[TD]Needs Development[/TD]
[TD]Advanced[/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col span="4"></colgroup>[/TABLE]


- Younes
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello Younes, welcome to MrExcel

If text is in range B2:I2 then try this formula to include all the information in the formula

=SUM(COUNTIF(B2:I2,{"Needs Development","Basic","Intermediate","Advanced","Expert"})*{1,2,3,4,5})

.....or if you have that table in Y2:Z6, e.g. Z2:Z6 for text values and Y2:Y6 for numbers and then use this version

=SUMPRODUCT(COUNTIF(B2:I2,$Z$2:$Z$6),$Y$2:$Y$6)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,118
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top