• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to add Vlookup with countif Function

Hi Mr.Chandoo,


Here is my Question, I need to identify the number of presents in my class as per their Class with Teacher name.


In Detail -


Sheet2 - Data looks like


Class,TeacherName,StudentName,PR,PR,SBL,PR


I need to find the out by the Class, Teacher Name, their number of presents & Absents
 
I'd use a sumproduct


Assuming your columns are like

Code:
A	B		C		D	E	F	G

Class	TeacherName	StudentName	PR	PR	SBL	PR


with something like

=SUMPRODUCT((A2:A15=ClassName)*(B2:B15=TeacherName)*(D2:D15=PresentValue))


adjust Columns and Range to suit
 
Back
Top