My intention is to capture Number of courses attended by an employee.List of courses are provided in Table called 'Index'.
Below mentioned formulea is not useful for me as Table names - MVC,php,Awasc,ruby - and 'Empl Name' needs to be picked dynamically.
=COUNTIFS(MVC!G:G,"Y",E:E,[@[Empl Name]])+
COUNTIFS(php!G:G,"Y",E:E,[@[Empl Name]])+
COUNTIFS(Awasc!G:G,"Y",E:E,[@[Empl Name]])+
COUNTIFS('ruby'!G:G,"Y",E:E,[@[Empl Name]])
I have attached the file . There are 2 tables in First tab named employee . I am working on table named 'Table 7' . I have commented my code as far as i can.Please feel free to make any change to the code as you please . But if you can stick to the logic i followed that would be great . Since i am in a learning mode , if you can make modifications in the code i wrote,it will help me improve.
Code is called on click event of button 'get emp data' in 'Employee' sheet
Following is my logic
1.Pick first employee from the list (Table7).
2.Pick first course from the list .(Table named 'Index')
3.check if employee name figures in course nominee list (It is a table with same name of the course which will be created each time an entry is made in 'Index' .I haven't included that macro in this sheet)
4.if name figures,add 1 else 0
5.Select next course and do 3,4 for next course.Continue this loop till all courses are checked
6.Write total courses attended against employee name in employee list(In Table7)
7.select next employee and follow the sequence from step 2 for next employee.continue this loop till all employees in the list is checked.
Below mentioned formulea is not useful for me as Table names - MVC,php,Awasc,ruby - and 'Empl Name' needs to be picked dynamically.
=COUNTIFS(MVC!G:G,"Y",E:E,[@[Empl Name]])+
COUNTIFS(php!G:G,"Y",E:E,[@[Empl Name]])+
COUNTIFS(Awasc!G:G,"Y",E:E,[@[Empl Name]])+
COUNTIFS('ruby'!G:G,"Y",E:E,[@[Empl Name]])
I have attached the file . There are 2 tables in First tab named employee . I am working on table named 'Table 7' . I have commented my code as far as i can.Please feel free to make any change to the code as you please . But if you can stick to the logic i followed that would be great . Since i am in a learning mode , if you can make modifications in the code i wrote,it will help me improve.
Code is called on click event of button 'get emp data' in 'Employee' sheet
Following is my logic
1.Pick first employee from the list (Table7).
2.Pick first course from the list .(Table named 'Index')
3.check if employee name figures in course nominee list (It is a table with same name of the course which will be created each time an entry is made in 'Index' .I haven't included that macro in this sheet)
4.if name figures,add 1 else 0
5.Select next course and do 3,4 for next course.Continue this loop till all courses are checked
6.Write total courses attended against employee name in employee list(In Table7)
7.select next employee and follow the sequence from step 2 for next employee.continue this loop till all employees in the list is checked.