# Use of "IF" formual to show correct answer

##### New Member
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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

Replies
2
Views
138
Replies
25
Views
2K
Replies
4
Views
663
Replies
10
Views
1K
Replies
1
Views
511

1,219,960
Messages
6,151,166
Members
451,012
Latest member
OH650R

### 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.

### Which adblocker are you using?

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

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