PC Review


Reply
Thread Tools Rate Thread

counting consecutive days

 
 
=?Utf-8?B?TWVs?=
Guest
Posts: n/a
 
      9th Apr 2004
I work at a school and need some help in creating a formula and/or program for the following problem

Our school drops students from enrollment if they have CONSECUTIVELY missed 15 or more days. I need to create a formula that would "mark" any student who has reached 15 days. Here is an example of the spreadsheet

A B C D E F G H
1 Student #12 U R S
2 Student #13 X X X R
3 Student #14 R J
4 Student #15 U U J R
5 Student #16 R
6 Student #17 U U U R U J

The codes are
U = unexcused absenc
X = was not enrolle
R = release day (students do not report
J = excused absenc
S = suspende
<blank> = presen

The formula needs to
1) count the following codes as consecutive days:
2) start counting again when the following codes are recognized in the sequence: J or <blank
3) ignore the following codes when counting (treat as if were not there):

For example
Student #17 would have 4 consecutive days (Columns B thru F), but since she was excused in Column G, her consecutive days start again, when the next U is recognized (in this case, in Column H)

Any help in figuring this out would be greatly appreciated. If anyone needs more information or more clarification, just let me know

Thank for your help.
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      9th Apr 2004
If you are looking for a "flag" to show when there are 15
consectutive "U", you might try to use conditional
formatting and set the evaluation formula to look at the
previous columns and if they are all "U" then turn the
cell red. Here is the formula I used:

=COUNTIF(S7:AG7,"U")>14
>-----Original Message-----
>I work at a school and need some help in creating a

formula and/or program for the following problem:
>
>Our school drops students from enrollment if they have

CONSECUTIVELY missed 15 or more days. I need to create a
formula that would "mark" any student who has reached 15
days. Here is an example of the spreadsheet:
>
>
> A B C D E

F G H
>1 Student #12 U R S S
>2 Student #13 X X X

R U
>3 Student #14 R J

U
>4 Student #15 U U J R
>5 Student #16 R U
>6 Student #17 U U U R U

J U
>
>
>The codes are:
>U = unexcused absence
>X = was not enrolled
>R = release day (students do not report)
>J = excused absence
>S = suspended
><blank> = present
>
>
>The formula needs to:
>1) count the following codes as consecutive days: U
>2) start counting again when the following codes are

recognized in the sequence: J or <blank>
>3) ignore the following codes when counting (treat as if

were not there): R
>
>
>For example:
>Student #17 would have 4 consecutive days (Columns B thru

F), but since she was excused in Column G, her consecutive
days start again, when the next U is recognized (in this
case, in Column H).
>
>
>Any help in figuring this out would be greatly

appreciated. If anyone needs more information or more
clarification, just let me know.
>
>Thank for your help.
>.
>

 
Reply With Quote
 
=?Utf-8?B?TWVs?=
Guest
Posts: n/a
 
      9th Apr 2004
The formula you gave works for "U"'s, but not consecutively.

Like I stated before, if a student misses 13 days, but on the 14th day, she is here (which would = <blank> in the spreadsheet) and then missed the 15th day, she would not be dropped, because she was here within the 15 day drop. Likewise, if she missed 13 days, but had an excused absence ("J") on the 14th day, and then missed again on the 15th day, she would not be dropped, because she was excused on the 14th day. In this example, her consecutive "drop" days would start over (from 1) on the 15th day

Any suggestions


 
Reply With Quote
 
Jeff
Guest
Posts: n/a
 
      9th Apr 2004
Mel,

If you send me your email address, I'll send you
a spreadsheet with a macro to do what you want I
believe. (I'll send after work - remove NOSPAM
from my email address below)

Jeff

(E-Mail Removed)

>-----Original Message-----
>The formula you gave works for "U"'s, but not

consecutively.
>
>Like I stated before, if a student misses 13 days, but

on the 14th day, she is here (which would = <blank> in
the spreadsheet) and then missed the 15th day, she would
not be dropped, because she was here within the 15 day
drop. Likewise, if she missed 13 days, but had an
excused absence ("J") on the 14th day, and then missed
again on the 15th day, she would not be dropped, because
she was excused on the 14th day. In this example, her
consecutive "drop" days would start over (from 1) on the
15th day.
>
>Any suggestions?
>
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting the number of consecutive days 12-17-09 LEG Microsoft Excel Worksheet Functions 2 18th Dec 2009 06:02 PM
Two or more consecutive days dreamsoul620 via AccessMonster.com Microsoft Access Queries 5 23rd Jan 2007 03:41 PM
Counting Consecutive Improvements =?Utf-8?B?U3RldmVD?= Microsoft Excel Misc 0 13th Jun 2006 01:35 AM
Re: Counting Consecutive Days Anders S Microsoft Excel Worksheet Functions 0 28th Apr 2004 11:13 PM
Consecutive Days Gary Thomson Microsoft Excel Worksheet Functions 4 10th Feb 2004 05:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:08 PM.