But what if they are absent? SUMIFS

Carvell

New Member
Joined
May 21, 2016
Messages
17
OK I have a class of three students and a test of 4 questions. Questions 1 and 3 test skill A and questions 2 and 4 test skill B.

Skill A B A B
Question 1 2 3 4
Student A 1 1 1 1
Student B 0 0 0 0
Student C

I'm using SUMIFs and they work perfectly to show

So Student A, 2 marks for skill A and 2 marks for skill B
Student B, 0 marks for skill A and 0 marks for skill B

However student C was absent but the SUMIFS says they scored 0 and 0. I want it to report "Not tested yet" where there is a blank.

Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Can you post the SUMIFS formulas that you currently have, and we will try to help you amend them?
 
Upvote 0
=SUMIFS($J$7:M$7,$J$6:$M$6,S7)
S7 contains A

=SUMIFS($J$7:M$7,$J$6:$M$6,S8)
S8 contains B

Thank you
 
Upvote 0
Hmm...

I am having trouble matching up your data grid to your formulas.
What exactly is in J6:M6 and then J7:M7?
 
Upvote 0
Row 6 is the Skill so A or B (J6:M6)
Row 7 is the mark Student A got so 1 or 0 (J7:M7)
Row 8 is the mark Student B got so 1 or 0 (J8:M8)
Row 9 is the mark Student C got so 1 or 0 (J9:M9)
Thanks
 
Last edited:
Upvote 0
SUMIFS is always going to return a number.
If you want it to return a blank if all four columns in that row are blank, you can do so like this:
=IF(COUNTBLANK($J7:$M7)=4,"",SUMIFS($J7:$M7,$J$6:$M$6,$S$7))
=IF(COUNTBLANK($J7:$M7)=4,"",SUMIFS($J7:$M7,$J$6:$M$6,$S$8))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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