keep the average blank if one of the cells is empty

leazhbay

New Member
Joined
Apr 21, 2024
Messages
7
Office Version
  1. 365
Platform
  1. Windows
excel.png

Good day!

Is there a formula to keep the FINAL GRADE and ACTION TAKEN empty when the 2nd column is empty? both 1st and 2nd column has formula in it.

Thank you!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
What are the formulas in J and K ?
 
Upvote 0
What are the formulas in J and K ?
J : =IF(OR(H14="",I14=""),"",IF(ISERROR(ROUND(AVERAGE(H14,I14),0)),"",ROUND(AVERAGE(H14,I14),0)))
K : =IF(OR(H14="",I14=""),"",IF($D14="","",IF($D14>=75,"PASSED","FAILED")))

I just copied it from another template I had.

this is the original formula I copied for J : =IF(OR(F13="",J13="",N13="",R13=""),"",IF(ISERROR(ROUND(AVERAGE(F13,J13,N13,R13),0)),"",ROUND(AVERAGE(F13,J13,N13,R13),0)))
Picture for reference
 

Attachments

  • excel 2.png
    excel 2.png
    9.5 KB · Views: 8
Upvote 0
K : =IF(OR(H14="",I14=""),"",IF($D14="","",IF($D14>=75,"PASSED","FAILED")))
my mistake, formula for K i used originally is : =IF(OR($H14="",$I14="",$J14=""),"",IF($J14>=75,"PASSED","FAILED"))
 
Upvote 0
Try:
Book1
GHIJK
13SUBJECTS1st2ndFinal GradeAction Taken
14Practical Research861852FAILED
Sheet2
Cell Formulas
RangeFormula
J14J14=IF(COUNTA(H14:I14)<2,"",ROUND(AVERAGE(H14:I14),0))
K14K14=IF(J14="","",IF(J14>=75, "PASSED", "FAILED"))
 
Upvote 0
This version is better if your H and I are getting "" from formulas.
Book1
GHIJK
13SUBJECTS1st2ndFinal GradeAction Taken
14Practical Research862053FAILED
Sheet4
Cell Formulas
RangeFormula
J14J14=IF(SUM(--(H14:I14=""))>0,"",ROUND(AVERAGE(H14:I14),0))
K14K14=IF(J14="","",IF(J14>=75, "PASSED", "FAILED"))
 
Upvote 0
below is the effect that I want to achieve, but when I copy the formula and update it, it doesn't happen

sample.xlsx
FGHI
11THIRD QUARTERFOURTH QUARTERSECOND SEMESTER FINAL GRADESREMARK
12
1385   
14848585PASSED
Final Semestral Grade
Cell Formulas
RangeFormula
F11F11=IF('INPUT DATA'!S8="","",IF('INPUT DATA'!S8="1ST","FIRST QUARTER",IF('INPUT DATA'!S8="2ND","THIRD QUARTER")))
G11G11=IF('INPUT DATA'!S8="","",IF('INPUT DATA'!S8="1ST","SECOND QUARTER",IF('INPUT DATA'!S8="2ND","FOURTH QUARTER")))
H11H11=IF('INPUT DATA'!S8="","",IF('INPUT DATA'!S8="1ST","FIRST SEMESTER FINAL GRADES",IF('INPUT DATA'!S8="2ND","SECOND SEMESTER FINAL GRADES")))
F13:F14F13='1ST'!AJ13
G13:G14G13='2ND'!AJ13
H13:H14H13=IF(OR(F13="",G13=""),"",IF(ISERROR(ROUND(AVERAGE(F13,G13),0)),"",ROUND(AVERAGE(F13,G13),0)))
I13:I14I13=IF(OR($F13="",G13="",$H13=""),"",IF($H13>=75,"PASSED","FAILED"))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F13:G62,F64:G113Cell Value<75textNO
I13:I62Cell Valuecontains "FAILED"textNO
H13:H62Cell Value<75textNO
Cells with Data Validation
CellAllowCriteria
F11:I11Any value
F12:I113Any value
 
Upvote 0
I don't follow. Your formulas seem to be working, but the syntax could be more concise. My formulas give the same result as yours.
 
Upvote 0
I don't understand what I missed here. I want the final grades to be empty if the 2nd quarter is empty.
the table I posted above is my reference, but when I copied it to another sheet, this happens:



sample 2.xlsx
ABCDE
13SUBJECTS1st2ndFinal GradeAction Taken
14Reading And Writing94 47FAILED
CARD SLIP
Cell Formulas
RangeFormula
A14A14=PROPER('1ST Q (2)'!$C$10)
B14B14='1ST Q'!P13
C14C14='2ND Q'!P13
D14D14=IF(OR(B14="",C14=""),"",IF(ISERROR(ROUND(AVERAGE(B14,C14),0)),"",ROUND(AVERAGE(B14,C14),0)))
E14E14=IF(OR($B14="",C14="",$D14=""),"",IF($D14>=75,"PASSED","FAILED"))
 
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,135
Members
451,744
Latest member
outis_

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