Converting 'YES' / 'NO' text into numerical values

sclayden

New Member
Joined
Feb 19, 2004
Messages
23
Help!!!!

I have set up a sheet with questions and have got it to work so that if you enter 'YES' a score of 1 is given and if you enter 'NO' a score a zero is given. The formula I have used is "IF (D7>=1,1,0)

From this a potential score is given (e.g. 10 questions all with a potential score of 1 = 10), an actual score (e.g. 7 questions answered 'YES' = 7) and from this a percentage result (e.g. 7 out of 10 = 70%)

However, if I want to mark a question 'NOT APPLICABLE' how do I get it to not give that question a score and for it not to affect the overall potential score?

Thanks (I hope!!)
 
sclayden said:
If I want to give question one a score of '1' i'm using the formula =IF(D7="NA","",IF(D7>=1,1,0))

If I want to give question two a score of '3' i'm using the formula =IF(D7="NA","",IF(D7>=1,3,0))

etc. etc.

What would be the total points possible be for the 10 questions? Or what would you base your percentage on? Answering 7 of 10 questions for %70 or 70 points out of a possible 100?
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
sclayden said:
If I want to give question one a score of '1' i'm using the formula =IF(D7="NA","",IF(D7>=1,1,0))

If I want to give question two a score of '3' i'm using the formula =IF(D7="NA","",IF(D7>=1,3,0))

etc. etc.

Construct a 2-column table consisting of questions and scores that indicate what they are worth when the answers are yes. Do a lookup to get the asscociated score when a question has been answered with YES. You can do any computation you desire on the scores you fetched with lookup.
 
Upvote 0
OK - In reality there is a total of 39 questions on my form. The potential total number of points that can be scored if all the questions are marked 'YES' is 103.

My calculations are based on points, rather than 30 answered 'YES' out of 39.
 
Upvote 0
sclayden said:
OK - In reality there is a total of 39 questions on my form. The potential total number of points that can be scored if all the questions are marked 'YES' is 103.

My calculations are based on points, rather than 30 answered 'YES' out of 39.

Read my last reply. That answers a fundamental issue Brian has rised.
 
Upvote 0
Ok!
There are 39 questions =103 points
How are the points distributed?
it is at random or are there any guidelines to come up with
this distibution!
CAre to post your sheet?
 
Upvote 0
sclayden said:
Thanks Sixth Sense

I have a question about the potential scores in column E on your example.

You've answered cell 10 as 'not applicable'. If the original value of the question in cell 10 was '4' if answered 'YES' how do you get it to change to '0' if answered 'not applicable'?
hi sclayden
The potential score was manually calculated.
In that post, if you look at the sumproduct, it
wont affect any score given to the NA. the sumproduct will only
look for those with answers = "yes" and "No" other than this, it will ignore!
 
Upvote 0
Sixth Sense

My questions are becoming more and more basic! How do I post my sheet with all the formulas so you can see it?
 
Upvote 0
hi!
This must be what you are looking for. A thing that you may see visually.
Sumproduct ignore everything that is not "yes" or "no" including NA
Book1
ABCDE
1AnswerWeightedAverageScore
2yes163.16%Automatic1
3yes22
4no04
5yes33
6yes44
7no02
8yes11
9yes11
10not?applicable0100
11no01
12totalscore1219
13WeightedAverage63.16%
Sheet3
 
Upvote 0

Forum statistics

Threads
1,214,998
Messages
6,122,643
Members
449,093
Latest member
Ahmad123098

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