Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Accumulating Attendance Base upon Age Group

Okay, now I know how to calculate a person age using datedif, but I need to
know how to accumulate the attendance of a person.

I've set up 30 columns for a month and blank cell represent attending, "A"
as absent unexcused and "AE" as excused absent. Previously, I calculate the
attendance by taking 30 minus the appearance of A, and AE, ( I used countif
function to add up A and AE). But now that I have to categorize each
person's attendance by their age group, how can I ACCUMULATE each person
attendance?

WHAT IF, for example, one person birth date fall into the middle of the
month and need to move to the next age group, can Excel handle this type of
variable situation?

Is there anyone interested in solving this problem?

Thanks a millions for any clue?

GU
P.S. I'm really frustrated!!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Accumulating Attendance Base upon Age Group

=SUMPRODUCT((age_group_range=test_age_group)*(abse nce_range<"A")*(absence_range<"AE"))



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neon520" wrote in message
...
Okay, now I know how to calculate a person age using datedif, but I need
to
know how to accumulate the attendance of a person.

I've set up 30 columns for a month and blank cell represent attending, "A"
as absent unexcused and "AE" as excused absent. Previously, I calculate
the
attendance by taking 30 minus the appearance of A, and AE, ( I used
countif
function to add up A and AE). But now that I have to categorize each
person's attendance by their age group, how can I ACCUMULATE each person
attendance?

WHAT IF, for example, one person birth date fall into the middle of the
month and need to move to the next age group, can Excel handle this type
of
variable situation?

Is there anyone interested in solving this problem?

Thanks a millions for any clue?

GU
P.S. I'm really frustrated!!!!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Accumulating Attendance Base upon Age Group

Hi Bob,

Can you give a little more detail on your function? I don't get what do you
mean in the function... What is test_age_group?

Probably I'm too vague, let me give more detail on the age group part:
Let's say there are 3 age group, 0-18 years, 19-35, and 36+. And each of
these age group columns is the sum of the attendance of each person. And
let's say the perfect attendance is 30 days for April, if Johny has perfect
attendance but he turn 19 on the April 16th, then he should have 15
attendance under 0-18 age group and 15 attendance under 19-35 age group.

I hope this will clear up some uncertain point.
Thanks,
GU


"Bob Phillips" wrote:

=SUMPRODUCT((age_group_range=test_age_group)*(abse nce_range<"A")*(absence_range<"AE"))



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neon520" wrote in message
...
Okay, now I know how to calculate a person age using datedif, but I need
to
know how to accumulate the attendance of a person.

I've set up 30 columns for a month and blank cell represent attending, "A"
as absent unexcused and "AE" as excused absent. Previously, I calculate
the
attendance by taking 30 minus the appearance of A, and AE, ( I used
countif
function to add up A and AE). But now that I have to categorize each
person's attendance by their age group, how can I ACCUMULATE each person
attendance?

WHAT IF, for example, one person birth date fall into the middle of the
month and need to move to the next age group, can Excel handle this type
of
variable situation?

Is there anyone interested in solving this problem?

Thanks a millions for any clue?

GU
P.S. I'm really frustrated!!!!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Accumulating Attendance Base upon Age Group

I think you need to give an example of your data and expected results.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neon520" wrote in message
...
Hi Bob,

Can you give a little more detail on your function? I don't get what do
you
mean in the function... What is test_age_group?

Probably I'm too vague, let me give more detail on the age group part:
Let's say there are 3 age group, 0-18 years, 19-35, and 36+. And each of
these age group columns is the sum of the attendance of each person. And
let's say the perfect attendance is 30 days for April, if Johny has
perfect
attendance but he turn 19 on the April 16th, then he should have 15
attendance under 0-18 age group and 15 attendance under 19-35 age group.

I hope this will clear up some uncertain point.
Thanks,
GU


"Bob Phillips" wrote:

=SUMPRODUCT((age_group_range=test_age_group)*(abse nce_range<"A")*(absence_range<"AE"))



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Neon520" wrote in message
...
Okay, now I know how to calculate a person age using datedif, but I
need
to
know how to accumulate the attendance of a person.

I've set up 30 columns for a month and blank cell represent attending,
"A"
as absent unexcused and "AE" as excused absent. Previously, I
calculate
the
attendance by taking 30 minus the appearance of A, and AE, ( I used
countif
function to add up A and AE). But now that I have to categorize each
person's attendance by their age group, how can I ACCUMULATE each
person
attendance?

WHAT IF, for example, one person birth date fall into the middle of the
month and need to move to the next age group, can Excel handle this
type
of
variable situation?

Is there anyone interested in solving this problem?

Thanks a millions for any clue?

GU
P.S. I'm really frustrated!!!!






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Accumulating Attendance Base upon Age Group

Okay, Bob, here's what I got.

Column A is the NAME.
Column B-AE is the 30 across the month.
Column AF is 0-18 age group.
Column AG is 19-35 age group.
Column AH is 36+ age group.
Column AI is the birth date of each record.

Row 1 is the column heading.
Across B-AE, I validate the data with drop-down list with different letters
representing different attendance status, ie. A for absent, AE for Absent
Excused, blank cell for regular attendance. (There are more status, but let's
just deal with these for now)
Let's say for example, row #2 is the first record with the person named
Johny. What I did before (without dividing up different age group) I use 30
(which the days of the month) MINUS the letter (A, AE) that are found in
B2-AE2, using COUNTIF function.

But now that I have to deal with the AGE GROUP. I need to find a away to
accumulate/count each person attendance according to their age group.
In Johnny case, if he turn 19 at some point in the month, let's just say the
16 of the month, from 1st-15th of the month would belong to 0-18 age group,
and 16th-30th of that same month would belong to 19-35 age group. This is to
be done because of the funding reason, it doesn't matter if it is the same
person, his/her attendance will need to be split once the age change to a
different age group.

I know how to calculate a person age at any one point of time, but I can't
figure out a way to route the attendance of each day to the right age group,
because of the variable situation that one person might turn to the upper age
group at any one point of time, and I need to have my spreadsheet handled
this type of situation.

I am more than happy to provide more info, if this is still not clear.

Thanks for your help.
GU


"Bob Phillips" wrote:

I think you need to give an example of your data and expected results.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neon520" wrote in message
...
Hi Bob,

Can you give a little more detail on your function? I don't get what do
you
mean in the function... What is test_age_group?

Probably I'm too vague, let me give more detail on the age group part:
Let's say there are 3 age group, 0-18 years, 19-35, and 36+. And each of
these age group columns is the sum of the attendance of each person. And
let's say the perfect attendance is 30 days for April, if Johny has
perfect
attendance but he turn 19 on the April 16th, then he should have 15
attendance under 0-18 age group and 15 attendance under 19-35 age group.

I hope this will clear up some uncertain point.
Thanks,
GU


"Bob Phillips" wrote:

=SUMPRODUCT((age_group_range=test_age_group)*(abse nce_range<"A")*(absence_range<"AE"))



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Neon520" wrote in message
...
Okay, now I know how to calculate a person age using datedif, but I
need
to
know how to accumulate the attendance of a person.

I've set up 30 columns for a month and blank cell represent attending,
"A"
as absent unexcused and "AE" as excused absent. Previously, I
calculate
the
attendance by taking 30 minus the appearance of A, and AE, ( I used
countif
function to add up A and AE). But now that I have to categorize each
person's attendance by their age group, how can I ACCUMULATE each
person
attendance?

WHAT IF, for example, one person birth date fall into the middle of the
month and need to move to the next age group, can Excel handle this
type
of
variable situation?

Is there anyone interested in solving this problem?

Thanks a millions for any clue?

GU
P.S. I'm really frustrated!!!!








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Accumulating Attendance Base upon Age Group

Okay, a few changes to your spreadsheet.

Change AF1 to 18, AG1 to 35 and AH1 to 99

Then in AE2 add

=SUMPRODUCT((DATEDIF($AI2,DATE(YEAR(TODAY()),MONTH (TODAY()),$B$1:$AE$1),"Y")<=AF$1)*($B$2:$AE2<"A") )

and in AF2 add

=SUMPRODUCT((DATEDIF($AI2,DATE(YEAR(TODAY()),MONTH (TODAY()),$B$1:$AE$1),"Y")<=AF$1)*($B$2:$AE2<"A") )-SUM($AF2:AF2)

copy AF2 over to AG2

BTW, what happened to the 31st?


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Neon520" wrote in message
...
Okay, Bob, here's what I got.

Column A is the NAME.
Column B-AE is the 30 across the month.
Column AF is 0-18 age group.
Column AG is 19-35 age group.
Column AH is 36+ age group.
Column AI is the birth date of each record.

Row 1 is the column heading.
Across B-AE, I validate the data with drop-down list with different
letters
representing different attendance status, ie. A for absent, AE for Absent
Excused, blank cell for regular attendance. (There are more status, but
let's
just deal with these for now)
Let's say for example, row #2 is the first record with the person named
Johny. What I did before (without dividing up different age group) I use
30
(which the days of the month) MINUS the letter (A, AE) that are found in
B2-AE2, using COUNTIF function.

But now that I have to deal with the AGE GROUP. I need to find a away to
accumulate/count each person attendance according to their age group.
In Johnny case, if he turn 19 at some point in the month, let's just say
the
16 of the month, from 1st-15th of the month would belong to 0-18 age
group,
and 16th-30th of that same month would belong to 19-35 age group. This is
to
be done because of the funding reason, it doesn't matter if it is the same
person, his/her attendance will need to be split once the age change to a
different age group.

I know how to calculate a person age at any one point of time, but I can't
figure out a way to route the attendance of each day to the right age
group,
because of the variable situation that one person might turn to the upper
age
group at any one point of time, and I need to have my spreadsheet handled
this type of situation.

I am more than happy to provide more info, if this is still not clear.

Thanks for your help.
GU


"Bob Phillips" wrote:

I think you need to give an example of your data and expected results.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Neon520" wrote in message
...
Hi Bob,

Can you give a little more detail on your function? I don't get what
do
you
mean in the function... What is test_age_group?

Probably I'm too vague, let me give more detail on the age group part:
Let's say there are 3 age group, 0-18 years, 19-35, and 36+. And each
of
these age group columns is the sum of the attendance of each person.
And
let's say the perfect attendance is 30 days for April, if Johny has
perfect
attendance but he turn 19 on the April 16th, then he should have 15
attendance under 0-18 age group and 15 attendance under 19-35 age
group.

I hope this will clear up some uncertain point.
Thanks,
GU


"Bob Phillips" wrote:

=SUMPRODUCT((age_group_range=test_age_group)*(abse nce_range<"A")*(absence_range<"AE"))



--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Neon520" wrote in message
...
Okay, now I know how to calculate a person age using datedif, but I
need
to
know how to accumulate the attendance of a person.

I've set up 30 columns for a month and blank cell represent
attending,
"A"
as absent unexcused and "AE" as excused absent. Previously, I
calculate
the
attendance by taking 30 minus the appearance of A, and AE, ( I used
countif
function to add up A and AE). But now that I have to categorize
each
person's attendance by their age group, how can I ACCUMULATE each
person
attendance?

WHAT IF, for example, one person birth date fall into the middle of
the
month and need to move to the next age group, can Excel handle this
type
of
variable situation?

Is there anyone interested in solving this problem?

Thanks a millions for any clue?

GU
P.S. I'm really frustrated!!!!








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
Accumulating numbers Jem Excel Worksheet Functions 1 July 30th 07 09:14 AM
Accumulating cells RR Dunn Excel Discussion (Misc queries) 3 April 18th 07 01:40 PM
Accumulating elapsed times. John Excel Discussion (Misc queries) 3 September 8th 06 03:05 PM
accumulating total exhausted everything Excel Discussion (Misc queries) 1 March 15th 06 12:24 AM
need help with compounding and accumulating formula... rebeat Excel Discussion (Misc queries) 0 June 14th 05 05:13 PM


All times are GMT +1. The time now is 03:40 PM.

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"