[mso] Re: want to select dates
- From: "David Smart" <smartware@xxxxxxxxxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 09:10:35 +1100
Ann
The use of one sum subtracted from another is a perfectly reasonable way of
doing it.
It could also be done with a couple of SumProduct calls, but that wouldn't
be significantly smaller.
Regards, Dave S
----- Original Message -----
From: "Fitzmaurice, Ann E." <a.e.fitzmaurice@xxxxxxxxxx>
To: <mso@xxxxxxxxxxxxx>
Sent: Thursday, March 27, 2008 2:45 AM
Subject: [mso] Re: want to select dates
> Dear all
>
> Sorry my post was not clear, I have now managed to solve the problem but
> will clarify the original request
>
> Col 1 =3D dates ranging from january1 to dec 31=20
> Col 2 =3D 1 next t0 date if a person attended a meeting
> Col2 =3D 1 if a meeting took place on that date
>
> What I want to do was to calculate a percentage of meetings attended , a
> complication being that not everyone started on kan 1st , some started
> for example on march 1st , so to overcome this problem (i.e. did not
> want to count any meeting January / February in the denominator) needed
> to select a date range
>
> My solution was
> =3D(SUMIF($B5:$B32,"<=3D"&DATE(2007,12,31),Q5:Q32)-SUMIF($B5:$B32,"<"&DAT=
> E(2
> 007,3,31),Q5:Q32))/(SUMIF($B5:$B32,"<=3D"&DATE(2007,12,31),D5:D32)-SUMIF(=
> $
> B5:$B32,"<"&DATE(2007,3,31),D5:D32))*100
>
> Bit unwieldy but works,=20
>
> If anyone has a neater solution would be interested
>
> Ann
>
>
> Ann E Fitzmaurice
> Email: a.e.fitzmaurice@xxxxxxxxxx
> =20
> -----Original Message-----
> From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
> Behalf Of David Smart
> Sent: 26 March 2008 14:36
> To: mso@xxxxxxxxxxxxx
> Subject: [mso] Re: want to select dates
>
> Ann
>
> Please give a more precise indication of what's where. For instance,
> you=20
> say there's a column (singular) with dates, but then you talk about date
> 1=20
> and date 2.
>
> Give specific column and row ranges for each of the things you want to
> check=20
> and each of the things you want to sum or manipulate.
>
> However, if you are talking about a range summation with more than one
> test,=20
> then SumProduct is perhaps the best way to go.
>
> Regards, Dave S
>
> ----- Original Message -----=20
> From: "Fitzmaurice, Ann E." <a.e.fitzmaurice@xxxxxxxxxx>
> To: <mso@xxxxxxxxxxxxx>
> Sent: Wednesday, March 26, 2008 8:22 PM
> Subject: [mso] want to select dates
>
>
>> Hi using excel 2003
>>
>>
>> Have a column with dates , and two additional columns with a 1 next to
>> date if in attendance
>>
>>
>>
>> Max no of attendances are recorded in a different column
>>
>>
>>
>> What I want to do is write a formula like
>>
>>
>>
>> If (date 1 >=3D 01/12/2007 and date 2 <=3D 03/04-2008, sum (column th
>> attendances in) / max no of attendances expressed as a percentage
>>
>>
>>
>> Not sure how to do the if statement
>>
>>
>>
>> ann
>>
>>
>>
>> Ann E Fitzmaurice
>>
>> Medical Statistician
>>
>> Immpact University of Aberdeen
>>
>> Health Sciences Building
>>
>> Foresterhill
>>
>> Aberdeen, AB25 2ZD
>>
>> Scotland
>>
>> Tel: +44 (0)1224 553876
>>
>> Fax: +44 (0)1224 555704
>>
>> Email: a.e.fitzmaurice@xxxxxxxxxx <mailto:a.e.fitzmaurice@xxxxxxxxxx>
>>
>>
>>
>>
>>
>>
>>
>> The University of Aberdeen is a charity registered in Scotland, No=20
>> SC013683.
>>
>> *************************************************************
>> You are receiving this mail because you subscribed to
> mso@xxxxxxxxxxxxx or=20
>> MicrosoftOffice@xxxxxxxxxxxxxxxx
>>
>> To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
>>
>> To Unsubscribe from this group, visit the group's homepage and use the
>
>> dropdown menu at the top. This will allow you to unsubscribe your
> email=20
>> address or change your email settings to digest or vacation (no mail).
>> http://www.freelists.org/webpage/mso
>>
>> To be able to share files with the group, you must join our Yahoo
> sister=20
>> group. This group will not allow for posting of emails, but will
> allow=20
>> you to join and share problem files, templates, etc.:=20
>> http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for
>
>> FILE SHARING ONLY.
>>
>> If you are using Outlook and you see a lot of unnecessary code in your
>
>> email messages, read these instructions that explain why and how to
> fix=20
>> it:
>> http://personal-computer-tutor.com/abc3/v28/greg28.htm
>> *************************************************************=20
>
> *************************************************************
> You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx
> or MicrosoftOffice@xxxxxxxxxxxxxxxx
>
> To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
>
> To Unsubscribe from this group, visit the group's homepage and use the
> dropdown menu at the top. This will allow you to unsubscribe your email
> address or change your email settings to digest or vacation (no mail).
> http://www.freelists.org/webpage/mso
>
> To be able to share files with the group, you must join our Yahoo sister
> group. This group will not allow for posting of emails, but will allow
> you to join and share problem files, templates, etc.:
> http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for
> FILE SHARING ONLY.
>
> If you are using Outlook and you see a lot of unnecessary code in your
> email messages, read these instructions that explain why and how to fix
> it:
> http://personal-computer-tutor.com/abc3/v28/greg28.htm
> *************************************************************
>
>
> The University of Aberdeen is a charity registered in Scotland, No =
> SC013683.
> *************************************************************
> You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
> MicrosoftOffice@xxxxxxxxxxxxxxxx
>
> To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
>
> To Unsubscribe from this group, visit the group's homepage and use the
> dropdown menu at the top. This will allow you to unsubscribe your email
> address or change your email settings to digest or vacation (no mail).
> http://www.freelists.org/webpage/mso
>
> To be able to share files with the group, you must join our Yahoo sister
> group. This group will not allow for posting of emails, but will allow
> you to join and share problem files, templates, etc.:
> http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for
> FILE SHARING ONLY.
>
> If you are using Outlook and you see a lot of unnecessary code in your
> email messages, read these instructions that explain why and how to fix
> it:
> http://personal-computer-tutor.com/abc3/v28/greg28.htm
> *************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister group.
This group will not allow for posting of emails, but will allow you to join
and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
- References:
- [mso] want to select dates
- From: Fitzmaurice, Ann E.
- [mso] Re: want to select dates
- From: David Smart
- [mso] Re: want to select dates
- From: Fitzmaurice, Ann E.
Other related posts:
- » [mso] want to select dates
- » [mso] Re: want to select dates
- » [mso] Re: want to select dates
- » [mso] Re: want to select dates
- [mso] want to select dates
- From: Fitzmaurice, Ann E.
- [mso] Re: want to select dates
- From: David Smart
- [mso] Re: want to select dates
- From: Fitzmaurice, Ann E.