Counting hidden numerical value to individual words

ANTHILL

New Member
Joined
Jun 23, 2015
Messages
17
Greetings to you all.

So I have a row of cells that have questions and their respective answers that contain a "yes" or "no" response.

I would like to assign a 'hidden' numerical value to each individual "yes" response. Then I would like to add up the total.

I am a beginner to Excel so would rather use formulas rather than VBA!

Any assistance would be greatly appreciated.

Many thanks.

Ant
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Will each "Yes" have the same value, or different values for different questions?
Can you post a simple example?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
See if this example helps

Suppose, for example, the points for "Yes" on Question1, Question2,..., Question5 are, respectively, 3, 2, 1, 4, 4.

Then go to Formulas > Names Manager and add a Name
New
Name: QuestionPoints
Refers to: ={3,2,1,4,4}

And try this
Pasta1
ABCDEFG
1NameQuestion1Question2Question3Question4Question5Total Points
2JohnNoYesYesNoYes7
3MikeYesYesNoNoYes9
4MaryYesNoNoYesYes11
Plan4
Cell Formulas
RangeFormula
G2:G4G2=SUMPRODUCT(--(B2:F2="Yes"),QuestionPoints)


M.
 
Upvote 0
Solution
See if this example helps

Suppose, for example, the points for "Yes" on Question1, Question2,..., Question5 are, respectively, 3, 2, 1, 4, 4.

Then go to Formulas > Names Manager and add a Name
New
Name: QuestionPoints
Refers to: ={3,2,1,4,4}

And try this
Pasta1
ABCDEFG
1NameQuestion1Question2Question3Question4Question5Total Points
2JohnNoYesYesNoYes7
3MikeYesYesNoNoYes9
4MaryYesNoNoYesYes11
Plan4
Cell Formulas
RangeFormula
G2:G4G2=SUMPRODUCT(--(B2:F2="Yes"),QuestionPoints)


M.
Many thanks Marcelo. Regards. Ant
 
Upvote 0
Will each "Yes" have the same value, or different values for different questions?
Can you post a simple example?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
Thanks Joe, sorry about the delayed response- I'm GMT plus three. The reply below has helped. Cheers. Ant
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,038
Latest member
apwr

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