छोटी class या personal study tracker में present और absent entries से attendance percentage निकालना हो तो sheet कैसे बनाएं? Total working days, blank cells और अलग-अलग महीनों को formula में कैसे संभालें?
गलत percentage से बचने के लिए एक छोटे sample पर calculation verify करने का तरीका क्या है?
English
How can I set up a sheet to calculate attendance percentage from present and absent entries for a small class or personal study tracker? How should the formula handle total working days, blank cells and different months?
How can I verify the calculation on a small sample to avoid an incorrect percentage?
Google Sheets में attendance percentage auto निकालने के लिए सबसे आसान setup ये है:
1) Data structure बनाइए
मान लीजिए कॉलम A में Date, B में Name, C में Status रखें. Status में सिर्फ P, A, या blank use करें.
Example:
A2 = 01/07/2026
B2 = Rahul
C2 = P
2) Total working days निकालना
अगर आप एक महीने के लिए count करना चाहते हैं, तो Date range से working days निकाल सकते हैं. Simple case में, अगर holidays अलग list में नहीं हैं, तो:
=COUNTIFS(A:A,">="&DATE(2026,7,1),A:A,"<="&DATE(2026,7,31))
अगर सिर्फ weekdays चाहिए और weekends exclude करने हैं, तो NETWORKDAYS use करें:
=NETWORKDAYS(DATE(2026,7,1),DATE(2026,7,31))
Agar holidays की list हो, जैसे F2:F10, तो:
=NETWORKDAYS(DATE(2026,7,1),DATE(2026,7,31),F2:F10)
3) Present count निकालना
अगर एक student का नाम column B में है और status column C में है, तो:
=COUNTIFS(B:B,"Rahul",C:C,"P")
4) Attendance percentage formula
Basic formula:
=IFERROR(Present_Count/Total_Working_Days,0)
Example combined:
=IFERROR(COUNTIFS(B:B,"Rahul",C:C,"P")/NETWORKDAYS(DATE(2026,7,1),DATE(2026,7,31)),0)
Cell को Percentage format में set कर दें.
5) Blank cells कैसे handle करें
अगर blank status entries हैं, उन्हें absent न मानें जब तक आप चाहें. Blank को ignore करने के लिए COUNTIFS सिर्फ P count करे. Total working days में blanks automatically नहीं जुड़ते, क्योंकि denominator fixed working days होगा.
अगर आप entered rows के basis पर percentage चाहते हैं, तो total entries count करें:
=IFERROR(COUNTIFS(B:B,"Rahul",C:C,"P")/(COUNTIFS(B:B,"Rahul",C:C,"P")+COUNTIFS(B:B,"Rahul",C:C,"A")),0)
इसमें blanks ignore होंगे.
6) अलग-अलग months के लिए
Best तरीका: हर month के लिए start date और end date अलग cells में रखें, जैसे E1 और F1.
E1 = 01/07/2026
F1 = 31/07/2026
फिर formula:
=IFERROR(COUNTIFS(B:B,"Rahul",C:C,"P",A:A,">="&E1,A:A,"<="&F1)/NETWORKDAYS(E1,F1),0)
इससे month बदलना आसान हो जाएगा.
7) Small sample से verify कैसे करें
3-4 rows का test बनाइए:
Date | Name | Status
1 Jul | Rahul | P
2 Jul | Rahul | A
3 Jul | Rahul | P
4 Jul | Rahul | blank
अगर July के 4 working days हैं, तो present = 2, total = 4, percentage = 50%.
Formula result manually check करके देखिए कि वही आ रहा है या नहीं.
Practical tip: पहले एक tiny sample पर formula test करें, फिर full sheet पर apply करें. अगर चाहें, मैं आपके लिए exact Google Sheets template formula ready करके भी दे सकता हूँ.
English
The easiest setup to automatically calculate attendance percentage in Google Sheets is this:
1) Create the data structure
Let’s say keep Date in column A, Name in B, and Status in C. Use only P, A, or blank in Status.
Example:
A2 = 01/07/2026
B2 = Rahul
C2 = P
2) Calculate total working days
If you want to count for a month, you can calculate working days from the date range. In the simple case, if holidays are not in a separate list, then:
=COUNTIFS(A:A,">="&DATE(2026,7,1),A:A,"<="&DATE(2026,7,31))
If you want only weekdays and want to exclude weekends, use NETWORKDAYS:
=NETWORKDAYS(DATE(2026,7,1),DATE(2026,7,31))
If there is a holiday list, such as F2:F10, then:
=NETWORKDAYS(DATE(2026,7,1),DATE(2026,7,31),F2:F10)
3) Calculate present count
If one student’s name is in column B and status is in column C, then:
=COUNTIFS(B:B,"Rahul",C:C,"P")
4) Attendance percentage formula
Basic formula:
=IFERROR(Present_Count/Total_Working_Days,0)
5) How to handle blank cells
If there are blank status entries, do not count them as absent unless you want to. To ignore blanks, COUNTIFS should count only P. Blanks are not automatically included in total working days, because the denominator will be fixed working days.
If you want percentage on the basis of entered rows, count total entries:
=IFERROR(COUNTIFS(B:B,"Rahul",C:C,"P")/(COUNTIFS(B:B,"Rahul",C:C,"P")+COUNTIFS(B:B,"Rahul",C:C,"A")),0)
This will ignore blanks.
6) For different months
The best way: keep separate start date and end date in cells for each month, such as E1 and F1.
E1 = 01/07/2026
F1 = 31/07/2026
Then formula:
=IFERROR(COUNTIFS(B:B,"Rahul",C:C,"P",A:A,">="&E1,A:A,"<="&F1)/NETWORKDAYS(E1,F1),0)
This will make it easy to change the month.
7) How to verify with a small sample
Create a test with 3-4 rows:
Date | Name | Status
1 Jul | Rahul | P
2 Jul | Rahul | A
3 Jul | Rahul | P
4 Jul | Rahul | blank
If there are 4 working days in July, then present = 2, total = 4, percentage = 50%.
Check the formula result manually to see whether it matches.
Practical tip: First test the formula on a tiny sample, then apply it to the full sheet. If you want, I can also make the exact Google Sheets template formula ready for you.
0 उपयोगी वोट
अपना जवाब दें
जवाब देने, बातचीत में शामिल होने और उपयोगी वोट के लिए अपने खाते में प्रवेश करें।