Formula for calculating

John 4348

Board Regular
Joined
Apr 21, 2022
Messages
81
Office Version
  1. 2010
Platform
  1. Mobile
I want to calculate students'scores in excel form. Who can help me?
Formula is: (A2+2*B2+C2+4*D2)/8
Scores are from 0 to 20,but for absent students score is 97 but not calculated for them.
If A2=97 is or B2=97 or C2=97or D2, how I can formulate so that 97 is not calculated?
 
Last edited by a moderator:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Welcome to Mr. Excel
Please use XL2BB to illustrate your data and expected results.
 
Upvote 0
IMG_20220422_054649.jpg

Welcome to Mr. Excel
Please use XL2BB to illustrate your data and expected results.
 
Upvote 0
Hi
I wrote this Formula but doesn't work correctly.
= If(counting(A2:C2,97)=2,0,if(countif(A2:C2,97)=1, averageifs (A2:C2,A2:C2,"<>97"),(A2+2*B2+C2)/4))
 
Upvote 0
Hi John

Just want to check the first formula =(A2+2*B2+C2+4*D2)/8 as my results are coming out completely different from what you are getting on your demo.
Your second formula needs counting changed to countif.
 
Upvote 0
Hi John

Just want to check the first formula =(A2+2*B2+C2+4*D2)/8 as my results are coming out completely different from what you are getting on your demo.
Your second formula needs counting changed to countif.
Hi Scoudny
Yes, the first formula works correctly.
But I need to correct the second formula. When 97 is one of the scores.
Could you please correct it?
Thanks a lot
 
Upvote 0
Hi John

Just want to check the first formula =(A2+2*B2+C2+4*D2)/8 as my results are coming out completely different from what you are getting on your demo.
Your second formula needs counting changed to countif.
Hi Scoudny
Yes, the first formula works correctly.
But I need to correct the second formula. When 97 is one of the scores.
Could you please correct it?
I changed to "countif", but doesn't work correctly.
Thanks a lot
 
Upvote 0
Is this what you want
+Fluff 1.xlsm
ABCDE
1
29716.51814.513.625
31997181612.625
41714971613.625
Lists
Cell Formulas
RangeFormula
E2:E4E2=(A2*(A2<>97)+(2*B2)*(B2<>97)+C2*(C2<>97)+(4*D2)*(D2<>97))/8
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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