#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Birthdays


I keep details of my members at my skate park in a worksheet. Dates o
birth are entered and then I am using the following formula t
calculate ages:

=DATEDIF(J252,NOW(),"y") & " years, " & DATEDIF(J252,NOW(),"ym") &
months, " & DATEDIF(J252,NOW(),"md") & " days"

so that my answer reads ? years ? months, ? days.

What I would like to do is have 1.) a formula which calculates th
average age and also 2.) one which can easily identify who's birthda
it is on todays date or better still a formulae which identifie
members who's birthday is due in 30 days time (so we can offer birthda
party options 30 days in advance)

Any help would be appreciated as I am now getting out of my depth.

As a reward, if you are ever in Dubai, United Arab Emirates, come skat
free!

Thanks

Chri

--
Platsk
-----------------------------------------------------------------------
Platski's Profile: http://www.excelforum.com/member.php...fo&userid=3307
View this thread: http://www.excelforum.com/showthread.php?threadid=52886

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Birthdays


It's difficult to do further calculations with the formula you quoted
because that returns a text result so to calculate the average age it's
best to calculate the average date of birth, e.g. if you have dates of
birth in J252:J300 then in *J302* use the formula

=AVERAGE(J252:J300)

then run your original formula on this average date of birth to give
the average age, i.e.

=DATEDIF(J302,NOW(),"y") & " years, " & DATEDIF(J302,NOW(),"ym") & "
months, " & DATEDIF(J302,NOW(),"md") & " days"


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=528866

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default Birthdays

Hi

You can calculate the birthday in current year from birth date as
=DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birthdate ))
, or to cope with cases when bith date was 29. February
=MIN(DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birth date)),DATE(YEAR(TODAY()),
MONTH(Birthdate)+1,0))

Now, when you have the table of park members, you can use conditional
formatting to display rows in different colors, when some estimated number
of days is left to person bithday. Something like:
Display entries in a row red, when
=(DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birthdat e))-TODAY()=0)
Display entries in a row violet, when
=(DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birthdat e))-TODAY()0 AND
DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birthdate) )-TODAY()<4)
Display entries green, when
=(DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birthdat e))-TODAY()3 AND
DATE(YEAR(TODAY()),MONTH(Birthdate),DAY(Birthdate) )-TODAY()<31)


Arvi Laanemets


"Platski" wrote in
message ...

I keep details of my members at my skate park in a worksheet. Dates of
birth are entered and then I am using the following formula to
calculate ages:

=DATEDIF(J252,NOW(),"y") & " years, " & DATEDIF(J252,NOW(),"ym") & "
months, " & DATEDIF(J252,NOW(),"md") & " days"

so that my answer reads ? years ? months, ? days.

What I would like to do is have 1.) a formula which calculates the
average age and also 2.) one which can easily identify who's birthday
it is on todays date or better still a formulae which identifies
members who's birthday is due in 30 days time (so we can offer birthday
party options 30 days in advance)

Any help would be appreciated as I am now getting out of my depth.

As a reward, if you are ever in Dubai, United Arab Emirates, come skate
free!

Thanks

Chris


--
Platski
------------------------------------------------------------------------
Platski's Profile:

http://www.excelforum.com/member.php...o&userid=33075
View this thread: http://www.excelforum.com/showthread...hreadid=528866



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Birthdays

1) I came up with the same answer as daddylonglegs for average age.
2) Conditional format the first cell where your DATEDIF formula is, and then
drag down to the last formula:
Select Formula is and put this in the edit box =MONTH(A1)-MONTH(TODAY())=1
and then choose a format. This is done for the month, not 30 days, so the
condition will trigger between 28 - 31 days before a birthday.
Close enough?

Mike F

"Platski" wrote in
message ...

I keep details of my members at my skate park in a worksheet. Dates of
birth are entered and then I am using the following formula to
calculate ages:

=DATEDIF(J252,NOW(),"y") & " years, " & DATEDIF(J252,NOW(),"ym") & "
months, " & DATEDIF(J252,NOW(),"md") & " days"

so that my answer reads ? years ? months, ? days.

What I would like to do is have 1.) a formula which calculates the
average age and also 2.) one which can easily identify who's birthday
it is on todays date or better still a formulae which identifies
members who's birthday is due in 30 days time (so we can offer birthday
party options 30 days in advance)

Any help would be appreciated as I am now getting out of my depth.

As a reward, if you are ever in Dubai, United Arab Emirates, come skate
free!

Thanks

Chris


--
Platski
------------------------------------------------------------------------
Platski's Profile:
http://www.excelforum.com/member.php...o&userid=33075
View this thread: http://www.excelforum.com/showthread...hreadid=528866



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
How do I sort birthdays? Lois Excel Discussion (Misc queries) 3 August 24th 06 08:09 PM
Highlight birthdays jocker Excel Worksheet Functions 9 January 3rd 06 04:42 PM
Excel & birthdays Norma Excel Discussion (Misc queries) 3 August 11th 05 03:10 AM
birthdays - determining when due mcraig Excel Discussion (Misc queries) 4 August 7th 05 03:50 PM
Birthdays database Doman[_2_] Excel Programming 2 August 5th 03 01:40 PM


All times are GMT +1. The time now is 11:02 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"