Use of "IF" formual to show correct answer

adillard

New Member
Joined
Jul 11, 2006
Messages
26
I am using a SUM formual in a gradebook that must have a value in order for the next quarter in grade to have a correct value.

Example: If the sutdent starts in the second quarter and has no grade in the first quater then his/her grade shows lower for the first quarter was "0" and the actual grade is incorrect.

If the student get 100 in the second quarter then it should show actual 70% of the grade, but if there is "0" or no grade in the first quarter. It will not show correct. It must not count the blank grade or "0" grade in the first quarter.

The formual: =SUM(E2*0.7+M2+N2+O2+P2) for first quarter.
The formual: =SUM(E2+J2)/2*0.7+Q2+R2+S2+T2 for second quarter.

Where E2 is the first quarter grade and J2 is the secons quarter grade.

How can I change it to +If to show 0,0. and get a correct answer.

The *0.7 is for 70 percent of the grade olny.
And the +M, N, O, P are for caluated grade the equal the other 30 percent.

I have tried several ways without success.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi
Rather than SUM(E2+J2)/2 try AVERAGE(E2,J2) but leave E2 blank. If the student scored zero in the first term put zero in E2, but if there is no result (e.g. started in term 2) then leave E2 blank and my formula will give the correct average.
Andrew
 
Upvote 0

Forum statistics

Threads
1,215,028
Messages
6,122,749
Members
449,094
Latest member
dsharae57

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