Getting items to add up and average

sws2k42

New Member
Joined
Mar 29, 2002
Messages
4
I have two colunms in a form. The first one is suspected and the second is confirmed results:

A B
Predicted Result Confirmed Result
============ =============
Ckbox 1 Ckbox2
Ckbox 3 Ckbox4
Ckbox 5 Ckbox6

Each row of Ckboxes is one classification
If both boxes are checked then that is a 100% prediction
If neither box in a classification is checked that too is 100% prediction
If one box (either A or B) then that is wrong and should be 0%

Ok, now how can I get a total result in terms of a percentage for all classificatons. Example:
"X" means ckbox checked blank = not checked
A B
Predicted Result Confirmed Result
============ =============
Ckbox 1 X Ckbox2 X 100%
Ckbox 3 X Ckbox4 0%
Ckbox 5 Ckbox6 100%
Ckbox 7 Ckbox8 X 0%
-------------
TOTAL 50% overall acurate

I cannot get a TOTAL for all 4 classification. Here is how I am getting the single classification result

=IIf([SusDepr]=Yes And [PosDepr]=Yes,100,IIf([SusDepr]=Yes And [PosDepr]=No,0,IIf([SusDepr]=No And [PosDepr]=Yes,0)))

where SusDepr is ckbox 1 and PosDepr is ckbox 2

Any suggestions,
 
It appears that it is 100 if both checkboxes are the same (both "Yes" or both "No"). Otherwise, it should be 0. So why not just one one, non-imbedded IIF statement?

=IIf([SusDepr]=[PosDepr],100,0)
 
Upvote 0
Extending on from jmiskey's formula you could have

=(([a1]=[b1])+([a2]=[b2])+([a3]=[b3])+([a4]=[b4]))*-25

where [a1],[b1]... etc. represent your pairs of checkboxes.

HTH

Peter
 
Upvote 0

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