Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Attendance Spreadsheet

I created a drop down list of children's names and plaeced the list under
every month of the school year. I need a formula that will discern a child's
name from the drop down list and count the number of present days ("P") and
the number of absent days ("A") for each month. From there I can sum the
months to get the total for the year.

Hope someone can help!

--
-PigFox
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Attendance Spreadsheet

Assuming you have this drop-down selector box in A2, names listed in A5:A100,
Ps or As from B5:AF100 (to accommodate 31 days), and you want the count of Ps
in B2 and As in C2, then
in B2 use this formula
=SUMPRODUCT((A5:A100=A2)*(B5:AF100="P"))
then in C2 use
=SUMPRODUCT((A5:A100=A2)*(B5:AF100="A"))

Honestly, it's just as easy to insert a total directly beside the name
instead. So say the first student is in A5 and you start recording your
attendance in column D (instead of B), then in B5 you could use this formula:
=COUNTIF(D5:AH5,"=P")
and in C5 you could use
=COUNTIF(D5:AH5,"=A")
then just copy B5:C5 down to row 100 and you'll see any student's total Ps
and As for the month in an instant (no drop-down selector required, just scan
your alphabetical list of names and there's the 2 totals you want).

And you definitely should not have to manually add each month's total Ps and
As for a student. I would recommend you setup a totals worksheet which
provides the total Ps and As for each student for each month and a grand
total for the year. You could put the students in column A, total Ps for the
year in column B and total As for the year in column C, then January Ps in
column D and January As in column E, etc. The formulas would be
B2=SUM(D2,F2,H2,J2,L2,N2,P2,R2,T2,V2,X2,Z2)
C2=SUM(E2,G2,I2,K2,M2,O2,Q2,S2,U2,W2,Y2,AA2)
D2=SUMPRODUCT((Jan!A5:A100=A2)*(Jan!B5:AF100="P"))
E2=SUMPRODUCT((Jan!A5:A100=A2)*(Jan!B5:AF100="A"))
F2=SUMPRODUCT((Feb!A5:A100=A2)*(Feb!B5:AF100="P"))
and so on...
These were assuming you want to stick with your drop-down selector idea. If
you wind up making each month's column B have each student's total Ps and
column C have each student's total As, then just modify the sumproduct
formulas above from Month!B5:AF100="P" to instead be Month!B5:B100 and change
Month!B5:AF100="A" to instead be Month!C5:C100
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"PigFox" wrote:

I created a drop down list of children's names and plaeced the list under
every month of the school year. I need a formula that will discern a child's
name from the drop down list and count the number of present days ("P") and
the number of absent days ("A") for each month. From there I can sum the
months to get the total for the year.

Hope someone can help!

--
-PigFox

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTENDANCE SPREADSHEET Chris Excel Discussion (Misc queries) 5 July 8th 08 04:13 PM
attendance log gloria's day care New Users to Excel 1 February 5th 07 05:05 PM
how do i set up a time and attendance database/spreadsheet? gviele Excel Discussion (Misc queries) 0 March 18th 06 12:51 AM
Attendance spreadsheet Tammy Excel Worksheet Functions 1 February 16th 06 09:46 PM
Taking Attendance L.Paul Excel Discussion (Misc queries) 2 April 19th 05 08:27 PM


All times are GMT +1. The time now is 07:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"