I hv d excel sheet of students info there is one col called attendence i want to count no of prenet and absent students?
It depends on how your Excel workbook is structured. Can you post an example workbook?
Can you send some dummy excel , so that we can tell you the solutions.
it is saying new users cant upload attachmentsā¦
Name,Marks,Attendence
Aparna,88,Present
Shradha,67,Absent
Harsh,99,presentā¦like dat only
Use select query to get the count of Absent and Present
Datatable.Select(ā[Column_Name]=āAbsentāā).Count
Datatable.Select(ā[Column_Name]=āPresentāā).Count
Thanks
@aparna3010
Attached solution. It uses hasib08ās solution, but you use .Length
instead of .Count
.
Processusvierge.zip (20,7 Ko)
Actually the excel is like this
Student Name,1st feb,2nd feb,3 rd feb,4th feb,Total A,Total P
Aparna,A,A,P,P
Shradha,A.P,A,P
harsh,P.P.,P,A
Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.